SonarQube Config - SAML properties

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube 9.7)
  • how is SonarQube deployed: Helm
  • what are you trying to achieve: Enable SAML
  • what have you tried so far to achieve this

SAML is setup. However trying to determine if there is any other option than hardcoding the private key in SonarQube config. We are using below two properties atm and hardcoding the values in the property.

sonar.auth.saml.certificate.secured
sonar.auth.saml.sp.privateKey.secured

Hey there.

Those properties need to be stored in SonarQube, in the database. Configuring them via a Helm chart won’t work.

Thanks Colin.

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube 2025.02)
  • how is SonarQube deployed: Helm
  • what are you trying to achieve: Enable SAML via IAC
  • what have you tried so far to achieve this: Added keys related to SAML under sonarProperties section in values.yaml of HELM.
    [/quote]

Hi Colin,

I have successfully installed Sonar Developer 2025.02 version using Helm chart. Even SAML with keycloak is working fine. But I have done all the SAML configuration via UI. I want to configure it as IAC. I am not sure how can I do that? Would you please guide?

I went through few other community threads. It seems it is not possible. But I am confused that why below properties exist then:

@dkumar85.net They cannot be configured in a conf/sonar.properties file. They can be used by POST api/settings/set to set them programatically.

In the future, please raise new threads instead of bumping very old ones. I will close this one. Please open a new one if you need to continue the discussion.