Root User
We recommend rotating the AppCenter root user password periodically for increased security. You can rotate the root user password using the User Service API in Swagger.
When rotating the root user password, consider the following password requirements:
- Minimum of 8 characters
- At least one lowercase character
- At least one uppercase character
- At least one number
- At least one special character
- No username in the password
Only the root user can change the root user password.
-
Go to the User API Swagger URL.
For example, replace base-domain with your domain as shown here:
https://base-domain/api/user/swagger-ui.html
-
Under Token Controller, next to /token Authentice a User, select Post.
The Parameters and Responses panes appear.
- Select Try it out.
-
In the Example Value code box, enter the existing root user credentials.
For example:
{ “password”: “PasswordNow1!”, “username”: “root” }
- Select Execute.
- From the Response headers, locate and copy access_token.
-
Under User, next to /Updates a User, select Patch.
The Parameters and Responses panes appear.
- Select Try it out.
-
Next to Authorization, in the string (header) code box, type Bearer, followed by a space, then paste the authorization token.
For example:
- Next to username, in the string (path) code box, type root.
-
In the Example Value code box, enter a new root user password that meets password requirements.
For example:
{ "username": "root", "password": "PasswordNew1!" }
-
Select Execute.
If the root user password has been updated successfully, response 200 appears.
- Log in to AppCenter using the new credentials.