API keys were added to OpenSearch 3.7. To use them, currently one must do this:
cfg := opensearch.Config{
Header: make(http.Header),
}
cfg.Header.Set("Authorization", "ApiKey "+apikey)
It would be great if opensearch.Config would grow an APIKey field to make this seamless. I would be willing to attempt a PR for this.
API keys were added to OpenSearch 3.7. To use them, currently one must do this:
It would be great if
opensearch.Configwould grow anAPIKeyfield to make this seamless. I would be willing to attempt a PR for this.