Search code examples
authenticationsonarqube

Allow anonymous authentication on SonarQube 8.6


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.

Solution

  • 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