Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Bitbucket seach without disabling xpack security Edited


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 ] false

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!

1 answer

0 votes

Hi Elton,

Step 3 on 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>( ~[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. 



Bitbucket search always fails when true

 ERROR [http-nio-8082-exec-115] "POST /rest/search/latest/search HTTP/1.0" Unexpected response code from Elasticsearch: 403

Did you found solution for this problem?

No solution. The only way forward is to disable search till bitbucket supports ES 7

Hi Elton/All,

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?



Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

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 ...

1,926 views 0 7
Read article

Community Events

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

Events near you