4

I'm working on transitioning from ES 1.7 to 5.x and I'm having a problem with the elasticsearch-transport-couchbase plugin. It did work with ES 1.7 with Shield, and the credentials it used were specified in the elasticsearch.yml file:

shield.user: "username:password"

The shield.user parameter is no longer supported in ES 5.x and I can't find anywhere on the documentation how to set this up. Has anyone done a Couchbase XDCR to ES 5.x with X-Pack security? Anyone knows how to set this up?

Thanks, Yosi

yosi1984
  • 352
  • 1
  • 16

2 Answers2

1

Support for X-Pack security was added in version 4.0 of the Couchbase Elasticsearch Connector.

Disclaimer: I am a Couchbase employee developing the Elasticsearch connector.

dnault
  • 8,340
  • 1
  • 34
  • 53
  • so if we are on elasticsearch 5.6.7 and plugin 3.0.1 we are out of luck? – Kalpesh Soni Sep 05 '19 at 20:06
  • and why cant I see this github issue? it give 404 https://github.com/couchbase/couchbase-elasticsearch-connector/issues/170 – Kalpesh Soni Sep 05 '19 at 23:24
  • 1
    @KalpeshSoni Unfortunately that's correct; the architecture of plugin 3.x is not compatible with ES security. – dnault Sep 06 '19 at 21:00
  • @KalpeshSoni Sorry about that broken issue link. When the connector was promoted from the `couchbaselabs` incubator organization over to `couchbase`, all of the open issues were migrated to the [Couchbase Jira](https://issues.couchbase.com/projects/CBES/) and the GitHub issue tracker was disabled. I did a quick search and didn't see a reference to GitHub issue 150 in Jira, so maybe it got closed before the migration? Feel free to file a new issue in Jira if necessary. – dnault Sep 06 '19 at 21:16
0

that parameter moved to xpack.security.user - I have no idea however, if the couchbase plugin is compatible with ES 5.x (you need to have a specific version of the plugin)

alr
  • 1,744
  • 1
  • 10
  • 11
  • I was not aware of this option. When adding it in, it seems like it "disabling" xpack security (any simple GET requests succeeds without authentication). I assume the couchbase plugin would also work but I'm not even testing it because that solution would still not be good as it defeats the purpose of having xpack security. Regarding the plugin version, I got the one relevant to my ES version (plus it works when xpack security is disabled). I'm hoping someone who already has that configured would see this and share the correct config... – yosi1984 Aug 12 '17 at 09:43
  • I think you cant just add one line, either you have no xpack config or full in yml – Kalpesh Soni Sep 06 '19 at 15:33