Skip to content

[FEATURE] API key auth support #907

Description

@merlinz01

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.

Metadata

Metadata

Labels

enhancementNew feature or requestv5opensearch-go/v5

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions