Managing Passwords for OCI Cache Users

Learn how to set up and manage passwords for cache users.

OCI Cache allows each cache user to configure up to two passwords:

  • Password: The primary password used for authentication. This password is always required.
  • Secondary password: An optional secondary password that you can also use for authentication.

You can update your passwords without immediately removing the existing one, but only the most recent set remains active. If you provide only one password during an update, the secondary password (if previously set) is removed.

The following tables shows different scenarios for using the passwords.

Scenario 1: Creating a User with One Password (pwd1)
Input Passwords Password Secondary Password Effect
[pwd1] pwd1 Not Set User is created with pwd1.
[pwd2] pwd2 Not Set pwd1 is removed, pwd2 becomes the new login password.
[pwd1, pwd2] pwd1 pwd2 pwd1 remainsthe password, pwd2 is added as the secondary password.
[pwd3, pwd4] pwd3 pwd4 pwd1 and pwd2 are removed. pwd3 is the new password, pwd4 is the new secondary password.

Scenario 2: Creating a User with Two Passwords (pwd1, pwd2)
Action Input Passwords Password Secondary Password Effect
Create [pwd1, pwd2] pwd1 pwd2 User is created with pwd1 as password and pwd2 as the secondary password. Both can be used to authenticate.
Update [pwd1, pwd3] pwd1 pwd3 pwd1 remains the password, pwd3 replaces pwd2 as the secondary password.
Update [pwd3, pwd2] pwd3 pwd2 pwd3 becomes the password, pwd2 remains as the secondary password.
Update [pwd3, pwd4] pwd3 pwd4 pwd1 and pwd2 are removed. pwd3 is the new password, pwd4 is the new secondary password.
Update [pwd1] pwd1 Not Set pwd2 is removed. Only pwd1 is active.
Update [pwd3] pwd3 Not Set pwd1 and pwd2 are removed. Only pwd3 is active.