[ https://issues.apache.org/jira/browse/CAMEL-11597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16106393#comment-16106393 ]
ASF GitHub Bot commented on CAMEL-11597: ---------------------------------------- Github user asfgit closed the pull request at: https://github.com/apache/camel/pull/1857 > Adding support for setting authentication client properties for elasticsearch > ----------------------------------------------------------------------------- > > Key: CAMEL-11597 > URL: https://issues.apache.org/jira/browse/CAMEL-11597 > Project: Camel > Issue Type: Improvement > Components: camel-elasticsearch5 > Affects Versions: 2.20.0 > Reporter: Flemming Harms > Priority: Minor > > The current implementation does not allow to override the client instance or > setup client authentication. > Adding following additional properties for support authentication > {code:java} > final Settings.Builder settings = Settings.builder() > .put("cluster.name", configuration.getClusterName()) > .put("client.transport.ignore_cluster_name", false) > .put("client.transport.sniff", configuration.getClientTransportSniff()) > .put("transport.ping_schedule", configuration.getPingSchedule()) > .put("client.transport.ping_timeout", configuration.getPingTimeout()) > .put("client.transport.sniff", configuration.getClientTransportSniff()) > .put("xpack.security.transport.ssl.enabled", configuration.getEnabledSSL()) > .put("request.headers.X-Found-Cluster", configuration.getClusterName()); > if (configuration.getUser() != null && configuration.getPassword() != null) > { > settings.put("xpack.security.user", configuration.getUser() +":"+ > configuration.getPassword()); > } > return settings.build(); > } > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)