We use elastic's xpack security to lock down our elastic and kibana instances.
Bitbucket DC uses elastic search for its code search feature. However, setting up bitbucket to use elastic search requires that we turn off xpack security
My question is how do i get code search to work with xpack security enabled?
I should mention that turning off xpack security is the only way to get code search to work ATM. Bitbucket search fails if it's turned on.
Thank you for your help!
Step 3 on https://confluence.atlassian.com/bitbucketserver/install-and-configure-a-remote-elasticsearch-instance-815577748.html outlines how to do authenticated requests from BB using buckler.
Thank you for responding Craig. The problem is (and I'm sure other folks with a similar setup will run into ), Our elastic stack relies on the xpack plugin for everything (kibana, apm-server, logstash and so many more). if we disable xpack security and enable buckler, all other elastic stack apps fail to start or do not work as expected.
Would be nice to have bitbucket work with the xpack security.
Edit: Trying to enable xpack security and buckler causes the following error.
Caused by: java.lang.IllegalArgumentException: Cannot have more than one plugin implementing a REST wrapper
at org.elasticsearch.action.ActionModule.<init>(ActionModule.java:382) ~[elasticsearch-6.5.3.jar:6.5.3]
While I haven’t tried this for this specific combination, I would expect the following to work.If you leave xpack enabled - add a user with the required permissions that BB will need, give it a password and then put those details in to Bitbucket authentication configuration.
I understand BB Data centre search functionality does not work when xpack security is enabled in remote elastic search node. However can someone please tell me if you were atleast able to make a connection to elastic search from your BB cluster with the xpack security enabled?
Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster ! While we’re all excited about the new improvements to Bitbucket ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events