mrweiland
(Tobias Larsson)
May 6, 2022, 10:28am
1
Must-share information (formatted with Markdown ):
which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
Version 9.3 (build 51899) - Developer Edition
what are you trying to achieve
DevOps Platform Integrations - Azure DevOps connection
what have you tried so far to achieve this
Added our root cert to java and see that its there - we use self signed certificates
Verifed url and PAT token
Checked logs of issues
Checked firewalls
We have this working in 8.X LTS version and when we updated we noticed that this functions stopped working after upgrade.
I can see this in developer tools that it is trying to access this url [Preformatted text](https://XXXX/api/alm_settings/validate?key=adosproduktion)
mrweiland
(Tobias Larsson)
May 6, 2022, 10:42am
2
mrweiland
(Tobias Larsson)
May 6, 2022, 10:46am
3
ganncamp
(G Ann Campbell)
May 6, 2022, 1:29pm
4
Hi,
Welcome to the community!
Could this be relevant?
So I worked on this from a different point of view. I pulled down the SonarQube source code and ran the test for the checkPat under the AzureDevOpsHttpClient. Come to find out, the cacerts keystore was not being updated, even though Java indicated that the alias wasn’t properly in there, see below:
"C:\Program Files\java\bin\keytool" -importcert -file C:\mycert.cer -alias enterprise-ca -keystore -cacerts -storepass "secret_password"
...
Trust this certificate? [no]: yes
Certificate was added t…
Ann
mrweiland
(Tobias Larsson)
May 6, 2022, 1:42pm
5
We are running on Linux environment but i have verified that our root cert are installed so i dont think this is the issue.
I thinking if Sonarqube itself have some special place to look for certs - if we are updating wrong place with cert?
mrweiland
(Tobias Larsson)
May 9, 2022, 6:43am
6
I added certificate and verified - i really think there is a bug in Sonarqube software regarding this. I have seen so many others that have same.
ldl
(ldl)
May 9, 2022, 8:02am
7
@mrweiland You’ve added it and it started to work?
mrweiland
(Tobias Larsson)
May 11, 2022, 2:03pm
9
mrweiland
(Tobias Larsson)
May 17, 2022, 11:54am
10
Tested to update to 9.4 but same problem
ledetj
(Jerry Ledet)
August 19, 2022, 5:16pm
13
We were having issue connecting to DevOps server from SonarQube
Solution: it seems that if basis authentication is turn on in IIS it breaks the use of PATs
We are now able to connect to our DevOps server in SonarQube after turning off basic authentication in IIS on the DevOps server
1 Like