Updated on 2022-02-21 GMT+08:00

DCS Instance Passwords

Passwords can be configured to control access to your DCS instances, ensuring the security of your data.

The password must meet the following requirements:

  • Cannot be left blank.
  • Cannot be the username or the username spelled backwards.
  • Can be 8 to 32 characters long.
  • Must contain at least three of the following character types:
    • Lowercase letters
    • Uppercase letters
    • Digits
    • special characters (`~!@#$^&*()-_=+\|{}:,<.>/?)

Using Passwords Securely

  1. Hide the password when using redis-cli.

    If the -a <password> option is used in redis-cli in Linux, the password is prone to leakage because it is logged and kept in the history. You are advised not to use -a <password> when running commands in redis-cli. After connecting to Redis, run the auth command to complete authentication as shown in the following example:

    $ redis-cli -h 192.168.0.148 -p 6379
    redis 192.168.0.148:6379>auth yourPassword
    OK
    redis 192.168.0.148:6379>
  2. Use interactive password authentication or switch between users with different permissions.

    If the script involves DCS instance access, use interactive password authentication. To enable automatic script execution, manage the script as another user and authorize execution using sudo.

  3. Use an encryption module in your application to encrypt the password.