camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CAMEL-11597) Adding support for setting authentication client properties for elasticsearch
Date Sun, 30 Jul 2017 09:06:00 GMT

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

Claus Ibsen resolved CAMEL-11597.
---------------------------------
       Resolution: Fixed
         Assignee: Claus Ibsen
    Fix Version/s: 2.20.0

Thanks for the PR

> 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
>            Assignee: Claus Ibsen
>            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)

Mime
View raw message