Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disallow anonymous users to access Sonar

Tags:

sonarqube

I have installed Sonar 3.5.1 and want to disable anonymous users access to the web console. I went to Security page and deleted Anyone from users and codeviewers roles. However, when I visit the web console without authentication I am still able to see "Welcome to Sonar Dashboard" page, whereas I expected to be redirected to the login page.

Is it possible to completely disallow unauthenticated users to see any content except the login page?

like image 684
Roman Kh Avatar asked May 29 '13 23:05

Roman Kh


People also ask

What is the default user group for sonar?

When installing SonarQube, a default user with Administer System permission is created automatically: Login: admin. Password: admin.

How do I add an admin user to SonarQube?

directory your admin can create a new user under Administration → Security → Users → Create User . after that your admin need to add this user to the group sonar-administrators (Administration → Security → Groups) and the user is now an additional admin as well.


1 Answers

You can set the "sonar.forceAuthentication" to "true" in the web admin interface:

 Administration > Configuration > General Settings > Security

See http://docs.sonarqube.org/display/SONAR/Authentication for more details.

like image 104
Fabrice - SonarSource Team Avatar answered Sep 21 '22 15:09

Fabrice - SonarSource Team