My organization is running version 8.4.2 of SonarQube Developer Edition in a Container and version 2.7.1 of the SonarScanner for Bamboo (trial).
We wish to configure LDAP authentication for our SQ DE Container. I am trying to encrypt the LDAP password as well as a other sensitive data for inclusion in sonar.properties. I am following the steps in https://docs.sonarqube.org/latest/instance-administration/security/. I do the following:
- generate the secret key
- save the key to /root/.sonar/sonar-secret.txt on the container
- change file ownership to sonarqube:sonarqube, ensure read only
- restart the SonarQube Server by clicking “Restart Server” button under Administration > System (I also tried
docker stop sonarqube && docker start sonarqube).
After logging in again to SonarQube and returning to Administration > Configuration > Encryption, the UI does not display the “Secret key is registered. You can encrypt any propery value…” message. Instead, the UI again displays “Generate secret key”.
Can someone share with me which step(s) I am missing?