You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2026/10/16 14:59:00 UTC
[jira] [Commented] (CAMEL-25707) camel-elasticsearch-rest-client - bind the basic authentication credentials to the cluster nodes
[ https://issues.apache.org/jira/browse/CAMEL-25707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18127865#comment-18127865 ]
Claus Ibsen commented on CAMEL-25707:
-------------------------------------
Merged to main via https://github.com/apache/camel/pull/27949 (4.24.0). Fix versions 4.18.6, 4.22.2 still need their backports, so the issue stays open.
_Claude Code on behalf of Claus Ibsen_
> camel-elasticsearch-rest-client - bind the basic authentication credentials to the cluster nodes
> ------------------------------------------------------------------------------------------------
>
> Key: CAMEL-25707
> URL: https://issues.apache.org/jira/browse/CAMEL-25707
> Project: Camel
> Issue Type: Bug
> Components: camel-elasticsearch-rest
> Reporter: Andrea Cosentino
> Assignee: Andrea Cosentino
> Priority: Major
> Fix For: 4.18.6, 4.22.2, 4.24.0
>
>
> {{ElasticsearchRestClientProducer.createClient()}} registers the configured {{user}} and {{password}} with {{AuthScope.ANY}}, so the credentials are not tied to any host.
> Register them for the nodes the client talks to instead: the hosts in {{hostAddressesList}} 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.
> Every node of a multi-host cluster must keep receiving the credentials. Add tests for a multi-host configuration and for a host that is not one of the nodes. A client supplied through the {{restClient}} option is not affected.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)