eSurfing Cloud DCS Redis instances must be accessed with passwords for your data security. The password can be set when creating the instance or after the creation; by resetting the password, you can set the password for access to your instance. For detailed operations, see Resetting Instance Passwords.
After you set the password, you can access your instance with a client. See Accessing the Instance with Clients.
Scenarios
l Based on the principle of information security, it is recommended to use password access by default.
l For production environment systems, it is recommended to enable passwords to control access to your instances.
l For instances with Internet access enabled, it is recommended to use password access to enhance instance data security.
Using Passwords Securely
l It is recommended not to specify a password directly in the command line when using redis-cli to access an instance, because this can cause password information to appear in the system log and historical records, posing certain security risks. In contrast, a more secure approach is to use the auth command for authentication after using redis-cli to access the Redis instance. Example:
l
./redis-cli -p 24555
127.0.0.1:24555> auth yourpassword
OK
127.0.0.1:24555>
l It is recommended to use interactive password authentication for scripts, 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.
l Use an encryption module in your application to encrypt the Redis password.