Programmatic way to generate a token or update login credentials

I’m using the helm chart from helm-chart-sonarqube/charts/sonarqube at master · SonarSource/helm-chart-sonarqube · GitHub

is there a way to update login credentials, either the token or password, programmatically? I don’t want to need to manually log in sonarqube web console to create a new token or change the password.

Is there a way to do it?

Hi Zack.

Yes, you can do these things programmatically, via the SonarQube RESTful application programming interface.

The web services composing the web API are documented within SonarQube. Look into the Web API api/user_tokens where you will find ways to search, revoke, and generate tokens, and api/users where you will find how to change the password.


Hi Monty thanks for the answer. Is it possible to do so with Terraform??

Hi Zack,

Sure. Any scripting or shell language that permits you to make API calls should be capable.