Password migration of Cloud Automation Manager

You can change the database passwords and encryption secrets of Cloud Automation Manager by using a password migration script.

Before you begin

About the task

If you want to move to a different encryption password or change your bundled mongodb password or mariadb password, use the passwordMigration tool. To change the encryption password, you re-encrypt encrypted data in the database with the new encryption password.

Procedure

Run the following script:

./passwordMigration.sh [ -e ] [ -d ] [ -m ] [ -s ] [ -n ] [ -r ] [ -c ]

Flags to run the password migration: Usage:

Other flags can be left as default unless you changed values, such as cam secret name or namespace Cloud Automation Manager is installed into.

Here is an example usage to change encryption password, bundled mongodb password and bundled mariadb password:

./changePassword.sh -e newencpass -d newmongopass -m newmariapass 2>&1 | tee changePassword.log

When they run the password migration script, it stops Cloud Automation Manager. If Cloud Automation Manager is already running, it restarts Cloud Automation Manager after the script is successful. If password migration fails, you must restore your database(s).