Changing internal passwords
EDA uses internal passwords to communicate between its internal services. These passwords are either hard-coded or are set before system installation.
After the system has been installed, administrators with cluster role privileges can update internal passwords for the following services using the applicable UI or scripts:
- Git passwords, Go Git server (Gogs) passwords
- Keycloak passwords and secrets
- PostgreSQL passwords
-
reset-01-gogs-user-pass.sh: resets the Gogs user password
-
reset-02-k8s-secret.sh: resets the Kubernetes secret
-
reset-03-keycloak-admin-user.sh: resets the Keycloak admin user password
-
reset-04-pgdb-password.sh: resets the PostgreSQL database password
Updating the Git server password
-
Change the Git server password using the UI or the CLI script.
- Using the UI:
-
Log in to the Git UI. If you are using the git-server provided cluster, you can reach the UI using the following URLs:
- `<eda-url>/core/httpproxy/v1/gogs/`
- `<eda-url>/core/httpproxy/v1/gogs-replica/`
-
Click the user icon, then from the navigation bar on the right, go to .
- Change your password.
- Log out and then log back in.
-
- Using the CLI script:
- Generate a token for the admin user.
- Log in to the Git UI.
- Navigate to Your Settings.
- From the right sidebar, select . This token is required to access some admin-level REST endpoints.
- Change the user password.Open a shell to the EDA toolbox pod. The following example resets the user password for eda-git and eda-git-replica.Where:
/eda/tools/reset-01-gogs-user-pass.sh \ -u eda \ -p oranges \ -g http://eda-git:3000 \ -t 79b6e0ada8dc74bf60751a0e56683d6377792070 /eda/tools//reset-01-gogs-user-pass.sh \ -u eda \ -p oranges \ -g http://eda-git-replica:3000 \ -t 70dd66f925678f35eb02d5073ce3b051b1bb640d-u <username> is the username of the account
-p <password> is the new password for the user
-g <git server url> is the URL to reach the Gogs server
-t <access token> is the access token from an admin user
- Generate a token for the admin user.
- Using the UI:
-
Update the Gogs initialization secret.
-
Update the secret used by ConfigEngine.
-
Restart the EDA cluster.
Updating the Keycloak password
-
Change the Git server password using the UI or the CLI script.
- Using the UI:
- Go to the admin panel at https://<domain:ip>/core/httpproxy/v1/keycloak.
- Ensure that the Keycloak realm is selected from the upper left.
- Click Users from the left navigation bar
- Click the admin account.
- Click the Credentials tab, then click Reset password Follow the prompts to update the password.
- Using the CLI script:
- Open a shell to the EDA toolbox pod.
- Set a temporary Keycloak password. For example:Where:
/eda/tools/reset-03-keycloak-admin-user.sh -e https://eda-api -r admin -t temporary -a admin -p admin-r <username> is the user for which to trigger a password reset
-t <password> is the temporary password for the user
-a <username> is the admin user to fetch an API token
-p <password> is the admin user password to fetch an API token
-
Log in to the Keycloak UI with the temporary password. Follow the prompts to update the password.
- Using the UI:
-
Update the keycloak-admin-secret secret in Kubernetes
- Open a shell to the EDA toolbox pod
- The following example changes the keycloak-admin-secret
secret:
/eda/tools/reset-02-k8s-secret.sh -n eda-system -s keycloak-admin-secret -p oranges
Where:-n <namespace> is the base namespace where EDA is deployed
-p <password> is the new password for the user
Update the PostgreSQL database using the script
- Open a shell to the EDA toolbox pod.
-
Update the database password.
Use the following command:
Where:/eda/tools/reset-04-pgdb-password.sh -n <namespace> -p <password>-n <namespace>is the base namespace where EDA is deployed-p <password>is the new password for the user
/eda/tools/reset-04-pgdb-password.sh -n eda-system -p oranges -
Update the Kubernetes secret password.
/eda/tools/reset-02-k8s-secret.sh -n eda-system -s postgres-db-secret -p oranges -
Restart the Postgres and Keycloak deployments.
kubectl rollout restart deployment eda-postgres eda-keycloak