GitHub user fharms opened a pull request:
https://github.com/apache/camel/pull/1857
CAMEL-11597 Support for ElasticSearch Client Authentication
Adding properties for setting the username and password for client
authentication to the ElasticSearch cluster.
- Properties for adjust timeouts etc. Useful when connecting to the
ElasticSearch cloud.
- Allow to override the client from the component for advanced use cases,
eg like using truststore
- Upgrade ELK to 5.5
Unfortunately I have not found a good way to unittest with XPACK client
because it require it can be found on the classpath. Adding XPACK client as a
test artifact require we add a new remote repository, so that could be a way to
make it testable.
```xml
<repository>
<id>elasticsearch-releases</id>
<url>https://artifacts.elastic.co/maven</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
```
However I did run manual tests, but I'm open for suggestions. But before
using a lot of time you may consider replace the client with the new REST High
level API in the near future.
https://discuss.elastic.co/t/can-use-xpack-transporter-client-to-access-a-basic-elasticsearch-server/94815
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/fharms/camel CAMEL-11597-elk-auth-properties
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/camel/pull/1857.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1857
----
commit cab690658ac88f92df87bb2b0c5e108688ad2315
Author: fharms <[email protected]>
Date: 2017-07-26T18:16:26Z
[CAMEL-11597] Adding support for authentication with x-pack
- Upgrade ElasticSearch to 5.5
- Adding support for overriding the client for advance use cases
commit 04e3875ae626e21b514fd0159ed049dc0d57220a
Author: fharms <[email protected]>
Date: 2017-07-27T08:53:34Z
[CAMEL-11597] Disable sniffing by default.
-Remove client.transport.ignore_cluster_name setting
-Rename property
commit 1bbf42a094e41fdf94abde82d3452fb96ae49242
Author: fharms <[email protected]>
Date: 2017-07-29T13:18:18Z
[CAMEL-11597] Remove hard dependency on XPack client
If the XPack client exist on the classpath it use the
PreBuiltXPackTransportClient for connection to the instance, otherwise
the PreBuiltTransportClient
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---