You can run SonarQube over HTTPS either:
- building a standard reverse proxy infrastructure
- configuring the SonarQube server that natively support SSL
SonarQube can run over HTTPS with both signed or unsigned certificates. The configuration is pretty standard. The information to access the certificate must be declared in the configuation of the web server. JVMs used by the analyzers must know the certificate.
You'll find below a complete example: from the generation of an SSL Certificate to the configuration of the SonarQube web server and analyzers.
Generating the SSL Certificate
Run the following command:
For test purpose, here's an example for a local SonarQube server:
Configuring the SonarQube Web Server
Open the SONARQUBE_HOME/conf/sonar.properties file and update it as below:
Restart the web server. You should only be able to access the SonarQube server over HTTPS on port 9000.
Configuring the Analyzers