You can change the DAML index database password on deployed Client nodes to secure the DAML ledger and DAML index database connection.
Prerequisites
Identify the Client node IP addresses and the existing DAML index database password that you want to change.
Procedure
- SSH to the Client node using the root password.
- Connect to the DAML index database and change the password for the indexdb user.
- Get the DAML index database container ID and note down the port number.
- Retrieve the DAML index database IP address.
docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' <daml_index_db container ID>
- Log in to the DAML index database.
psql -h <the-db-ip> -p <port> -U indexdb
- Enter the DAML index database's existing password.
- Change the existing DAML index database password at the prompt.
- Enter the new password.
- Exit the DAML index database.
- Update the Client node configuration files with the new password using a text editor.
-
Update the DAML ledger API configuration file- /config/daml-ledger-api/environment-vars.
-
Update the DAML Index DB configuration file- /config/daml-index-db/environment-vars.
-
Update the Telegraf configuration file- /config/telegraf/telegraf.conf.
- Restart the Docker containers with the new password.
docker restart <daml_ledger_api ID> <daml_index_db ID> <telegraf ID>
- Update the VMware Blockchain Orchestrator output file with the new Client node password.
- Open the VMware Blockchain Orchestrator output file.
- Search for the Client node IP address you updated with a new password.
- Add the new password to the corresponding Client node in the suggested pattern to the output file.
Node Id: <node id>,
name: <location, sddc>,
key: DAML_DB_PASSWORD,
value: <new password>