Claus Ibsen created CAMEL-27480:
-----------------------------------

             Summary: camel-opensearch - add an apiKey option to log in with an 
OpenSearch API key
                 Key: CAMEL-27480
                 URL: https://issues.apache.org/jira/browse/CAMEL-27480
             Project: Camel
          Issue Type: New Feature
          Components: camel-opensearch
            Reporter: Claus Ibsen
            Assignee: Claus Ibsen
             Fix For: 4.24.0


Today camel-opensearch only supports basic authentication (user/password), plus 
certificatePath and sslContextParameters for TLS. OpenSearch 3.7 added API keys 
to the Security plugin, sent as {{Authorization: ApiKey os_...}}.

Add an {{apiKey}} component option (label security, secret), sent as is:
* 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-25708
* setting both {{apiKey}} and {{user}} fails at startup with a clear message
* a client set with the {{client}} option is not changed

Same option as the camel-elasticsearch one.

_Claude Code on behalf of davsclaus_



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to