Changing default passwords

Passwords are encrypted by default and stored in a number of environment (.env) files.

About this task

Passwords are stored in the .env files located in the $ASM_HOME directory.

Tip: These passwords are encrypted (by default), which is indicated by the _ENCRYPTED postfix appended to them.

Procedure

To change a password

  1. Use the $ASM_HOME/bin/change_passwords.sh script to change the passwords.
    ./bin/change_passwords.sh --help
    
    This script can be used to reset the default passwords and also to change individual passwords
    
    It accepts the following arguments:
      -h, --help                                    - Show this help message
      -a, --all                                     - All passwords are reset to auto generated passwords
      -v, --verbose                                 - If the first argument will display the auto generated passwords
      --asm-swagger=<password>  | --asm-swagger     - Change or auto generate password of asm swagger
      --dash=<password>         | --dash            - Change or auto generate password of dash
      --kafka-client=<password> | --kafka-client    - Change or auto generate password of kafka client
      --kafka-admin=<password>  | --kafka-admin     - Change or auto generate password of kafka admin
      --cassandra=<password>    | --cassandra       - Change or auto generate password of cassandra
      --zookeeper=<password>    | --zookeeper       - Change or auto generate password of zookeeper
      --couchdb=<password>      | --couchdb         - Change or auto generate password of couchdb
      --redis=<password>        | --redis           - Change or auto generate password of redis
    
    
    The following example resets all passwords to auto generated values, and the ASM Swagger password to 'asm':
    $ASM_HOME/bin/change_passwords.sh --all --asm-swagger=asm
    
    Note: If you do not provide a password on the command line, the script prompts you to enter the new password. When you do, it updates the appropriate .env file with an encrypted password.
  2. Restart Agile Service Manager using the $ASM_HOME/bin/asm_start.sh script.