[ https://issues.apache.org/jira/browse/CAMEL-11597?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-11597: -------------------------------- Affects Version/s: (was: 2.20.0) > 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 > Reporter: Flemming Harms > Priority: Minor > Fix For: 2.20.0 > > > 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)