0

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
  • 7,875
  • 3
  • 25
  • 61
Danilo Piazzalunga
  • 7,241
  • 5
  • 48
  • 70

1 Answers1

2

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
  • 7,875
  • 3
  • 25
  • 61