Change Verrazzano Passwords
Change the Verrazzano password
To change the Verrazzano password, first change the user password in Keycloak and then update the Verrazzano secret.
Change the user in Keycloak
-
Navigate to the Keycloak admin console.
a. Obtain the Keycloak admin console URL, as described here.
b. Obtain the Keycloak admin console credentials, as described here.
-
In the left pane, select the
verrazzano-systemrealm from the drop-down menu. -
In the left pane, under
Manage, selectUsers. -
In the
Userspane, search forverrazzanoor clickView all users. -
Select the
verrazzanouser. -
At the top, select the
Credentialstab. -
Click
Reset Password. -
Specify the new password and confirm.
-
Specify whether the new password is a temporary password. A temporary password must be reset on next login.
-
Save and confirm the password reset by clicking
Reset passwordin the confirmation dialog.
Update the Verrazzano secret
Get the base64 encoding for your new password.
$ echo -n '<new password of verrazzano user>' | base64
Update the password in the secret to replace the existing password value with the new base64 encoded value.
$ kubectl patch secret verrazzano -n verrazzano-system -p '{"data": {"password": "<base64 password of verrazzano user>"}}'
Change the Keycloak administrator password
To change the Keycloak administrator password, first change the user password in Keycloak and then update the Keycloak secret.
Change the administrator user in Keycloak
-
Navigate to the Keycloak admin console.
a. Obtain the Keycloak admin console URL, as described here.
b. Obtain the Keycloak admin console credentials, as described here.
-
In the left pane, select the
masterrealm from the drop-down menu. -
In the left pane, under
Manage, selectUsers. -
In the
Userspane, select thekeycloakadminuser. -
At the top, select the
Credentialstab. -
Click
Reset password. -
Specify the new password and confirm.
-
Specify whether the new password is a temporary password. A temporary password must be reset on next login.
-
Save and confirm the password reset by clicking
Reset passwordin the confirmation dialog.
Update the Keycloak secret
Get the base64 encoding for your new password.
$ echo -n '<new password for keycloakadmin user>' | base64
Update the password in the secret to replace the existing password value with the new base64 encoded value.
$ kubectl patch secret keycloak-http -n keycloak -p '{"data": {"password": "<base64 password of keycloakadmin user>"}}'
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.