We are not able to set up SSO in the Kubernetes cluster

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension) : SonarQube server vesion :
  • how is SonarQube deployed: zip, Docker, Helm : Helm
  • what are you trying to achieve : we are trying to set up the SSO. since our cluster is behind a reverse Proxy we are getting the error.
    You’re not authorized to access this page. Please contact the administrator.

Reason: The response was received at https://sonarqube-origin..com/oauth2/callback/saml instead of https://sonarqube..com/oauth2/callback/saml

note : We are using istio as the ingress

  • what have you tried so far to achieve this : We have checked the callback setting int he Azure AD as per the documentation.

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

Hey there.

In whatever reverse proxy you’re using, you’ll want to make sure that host headers are preserved so that SonarQube can be sure the response is being safely received.

For NGINX this might look like this:

proxy_set_header Host $host;