camel-issues mailing list archives

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

     [ https://issues.apache.org/jira/browse/CAMEL-11597?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dmitry Volodin reassigned CAMEL-11597:
--------------------------------------

    Assignee: Dmitry Volodin

> 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
>            Assignee: Dmitry Volodin
>            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