camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pulkit Chhabra (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-11597) Adding support for setting authentication client properties for elasticsearch
Date Thu, 27 Jul 2017 13:36:00 GMT

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

Pulkit Chhabra commented on CAMEL-11597:
----------------------------------------

Hi Flemming,

Do you have any test case for this?


Regards
Pulkit




> 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)

Mime
View raw message