1

SonarQube 8.6+ enforces user authentication by default.

How do I allow anonymous access since the first startup?

I am running SonarQube on a local Docker Container and I would like to automate this step. That is, I am looking for a solution not involving:

  1. Log on to SonarQube with the default credentials (login: admin, password: admin).
  2. Change the default password.
  3. Manually disable the Force user authentication property from Administration > Configuration > General Settings > Security.
agabrys
  • 8,728
  • 3
  • 35
  • 73
Danilo Piazzalunga
  • 7,590
  • 5
  • 49
  • 75

1 Answers1

3

You could enable the anonymous access by adding the following property to the $SONARQUBE-HOME/conf/sonar.properties file:

sonar.forceAuthentication=false

How to modify the file in Docker you can find here: https://stackoverflow.com/a/27714071/4944847

agabrys
  • 8,728
  • 3
  • 35
  • 73