what are you trying to achieve
Setting up DevOps Platform Integrations with Bitbucket DC
Sonarqube received 401 from Bitbucket. (Bitbucket logs the 401 in the access log)
Curl is working: curl -H "Authorization: Bearer <token>" https://192.168.4.145/re st/api/1.0/repos
what have you tried so far to achieve this
Started nc -kl 8080 to debug headers und connected Sonarqube to it.
The Request received is missing the auth tocken:
It is a Bitbucket DC (Server with Data Center Licence) and configured according to the docs but the configured API Key isn’t sent by the Sonarqube Server
As I mention this in the first post, I opened a Socket with nc -kl 8080 and changed the URL in Sonarqube to send its requests there.
nc logs all received headers.
Curl has the required Authorization header, Sonarqube didn’t.
@Ruby_Paasche What version of Bitbucket Data Center are you using? I’m wondering if it’s the same issue described in this post. If so, I believe this issue can be a simple one line change to the endpoint SonarQube uses to test the provided Bitbucket URL.