[ 
https://issues.apache.org/jira/browse/CAMEL-25708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18128523#comment-18128523
 ] 

Claus Ibsen commented on CAMEL-25708:
-------------------------------------

Merged to camel-4.18.x in https://github.com/apache/camel/pull/28051 (commit 
8b0806e4c0bf), fix version 4.18.6.

_Claude Code on behalf of Claus Ibsen_

> camel-opensearch - bind the basic authentication credentials to the cluster 
> nodes
> ---------------------------------------------------------------------------------
>
>                 Key: CAMEL-25708
>                 URL: https://issues.apache.org/jira/browse/CAMEL-25708
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-opensearch
>            Reporter: Andrea Cosentino
>            Assignee: Andrea Cosentino
>            Priority: Major
>             Fix For: 4.18.6, 4.22.3, 4.24.0
>
>
> {{OpensearchProducer.createClient()}} registers the configured {{user}} and 
> {{password}} with {{new AuthScope(null, null, -1, null, null)}}, which 
> matches any host. CAMEL-24815 switched to it so that every node of a 
> multi-host cluster receives the credentials, not only the first configured 
> host.
> Keep that, but register the credentials for the nodes the client talks to 
> instead of for any host: the hosts in {{hostAddresses}} and, when 
> {{enableSniffer}} is set, the nodes the sniffer discovers. Match scheme, host 
> and port, in line with how camel-http and camel-graphql register credentials.
> Add tests for a multi-host configuration and for a host that is not one of 
> the nodes. A client supplied through the component's client option is not 
> affected.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to