[
https://issues.apache.org/jira/browse/CAMEL-27479?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-27479.
---------------------------------
Resolution: Fixed
Done in https://github.com/apache/camel/pull/30684 (merged as ae2cb5cfb0fa) for
4.24.0.
_Claude Code on behalf of davsclaus_
> camel-elasticsearch - add an apiKey option to log in with an Elasticsearch
> API key
> ----------------------------------------------------------------------------------
>
> Key: CAMEL-27479
> URL: https://issues.apache.org/jira/browse/CAMEL-27479
> Project: Camel
> Issue Type: New Feature
> Components: camel-elasticsearch
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Major
> Fix For: 4.24.0
>
>
> Today camel-elasticsearch only supports basic authentication (user/password),
> plus certificatePath and sslContextParameters for TLS. Elastic recommends API
> keys, also on Elastic Cloud, where a client sends {{Authorization: ApiKey
> <base64 of id:key>}}.
> Add an {{apiKey}} component option (label security, secret):
> * accepts the encoded key as Elastic shows it, or {{id:key}} (then base64
> encoded by Camel)
> * the header is sent only to the cluster nodes (hostAddresses and the nodes
> the sniffer finds), never to a redirect target, the same way the basic
> authentication credentials are scoped since CAMEL-25706
> * setting both {{apiKey}} and {{user}} fails at startup with a clear message
> * a client set with the {{client}} option is not changed
> Test against a real Elasticsearch container with security on.
> Needed by the Kamelets elasticsearch-index-sink and
> elasticsearch-search-action.
> _Claude Code on behalf of davsclaus_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)