Moin, moin (Dear) community,
I’m running
- SonarQube Community Build Version: v25.10.0.114319
- Deployment: ZIP on RHEL 9.5 air-gapped (no internet connection)
- Service runs as systemd service behind a nginx proxy
Properties set in the sonar.properties:
sonar.web.host=0.0.0.0
sonar.web.context=/qa
sonar.web.port=9000
To avoid maintaining multiple user registry I tried to use our gitlab server as oauth2 services. Unfortunately the sonarqube-server re-writes the callback uri, which obviously does not work and I could not figured out how to solve the problem.
GitLab-Server URL: https://repo-server.zlo-uedem.internal/
Sonarqube URL: https://ci-cd-02.zlo-uedem.internal/qa
The sonarqube service is running on http://localhost:9000 where the location /qa is redirected from the nginx-proxy. The proxy listens on https://ci-cd-02.zlo-uedem.internal/ and redirect the location /qa to the sonaqube service . That works very well with users defined in the sonarqube
The oauth-application within the gitlab-server is configured and the test configuration button shows “Configuration is valid for Just-In-Time provisioning”. The Redirect URI in the gitlab application is:
https://ci-cd-02.zlo-uedem.internal/qa/oauth2/callback/gitlab
If I try to “Log in with GitLab” I get the error “The redirect URI included is not valid.” In the URL of this error page I can see that the URI is now:
http://localhost:9000/qa/oauth2/callback/gitlab
I have no idea where the rewriting occurs. Where do I miss something
Any help is appreciated
Mischa