Hello,
I’m reaching out to you with a problem regarding JDBC, Postres passwords. I started to add some projects to SonarQube but I haven’t changed the default passwords to the databases.
Is there a way to change SONAR_JDBC_PASSWORD
, POSTGRES_PASSWORD
afterwards, just to get it more secure?
-
which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
SonarQube - 8.9
Docker compose yml -
what are you trying to achieve
ChangeSONAR_JDBC_PASSWORD
,POSTGRES_PASSWORD
default passwords after I already analysed projects inside SonarQube. -
what have you tried so far to achieve this
Trying to change JDBC, Postgres passwords
For Postgres
- Access postgres db container & connect to the database with user
sonar
- Change username password using
\password sonar
- Update docker .yml with the new password and restart SonarQube
Result: db connection failed
For JDBC
- Open h2 shell using
java -cp h2-1.3.176.jar org.h2.tools.Shell
and update Driver, URL, user, password - Update docker .yml with the new password and restart SonarQube
Result: db connection failed
I will appreciate any help to change these passwords.