Skip to content

Instantly share code, notes, and snippets.

@lpsm-dev
Created April 20, 2023 14:18
Show Gist options
  • Save lpsm-dev/014238bde33b6f094a836aac0b197ca0 to your computer and use it in GitHub Desktop.
Save lpsm-dev/014238bde33b6f094a836aac0b197ca0 to your computer and use it in GitHub Desktop.
Update sonarqube 8.5 - 8.9 admin password
kubectl exec -it <pod-name> -- sh
psql -h localhost -p 5432 -U sonarUser sonarDB
select * from users;
update users 
set crypted_password = '$2a$12$uCkkXmhW5ThVK8mpBvnXOOJRLd64LJeHTeCkSuB3lfaR2N0AYBaSi', 
    salt=null, 
    hash_method='BCRYPT' 
where login = 'admin'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment