Description
Library name
Azure.AI.OpenAI
Please describe the feature.
When using the Azure OpenAI library with search on custom data, it’s currently possible to specify Elasticsearch as a data source. At the moment, the only supported authentication types are key_and_key_id
and encoded_api_key
.
However, a commonly used method for authenticating with Elasticsearch—especially when the service is hosted in the cloud—is via a combination of CloudId
, username
, and password
.
Request:
Please add support for specifying the following authentication parameters when connecting to Elasticsearch:
CloudId
username
password
This authentication method is widely used in Elastic Cloud deployments and would significantly improve compatibility and ease of use for many cloud-hosted Elasticsearch users.
References:
- CloudId parsing and usage in the Elastic .NET client:
🔗 https://github.com/elastic/elastic-transport-net/blob/1242db8cdeda49e8d982b70e714815ccf29fb79f/src/Elastic.Transport/Components/NodePool/CloudNodePool.cs#L39 - How CloudId is used to construct the URL:
🔗 https://github.com/elastic/elastic-transport-net/blob/main/src/Elastic.Transport/Components/NodePool/CloudNodePool.cs#L64-L93
Thank you for considering this enhancement! Let me know if you need additional context or implementation suggestions.