A Resource Access Management (RAM) secret stores an AccessKey pair of a RAM user, including the AccessKey ID and AccessKey secret. The AccessKey pair is used to authenticate the RAM user when the RAM user calls Alibaba Cloud APIs. Secrets Manager can regularly and automatically rotate RAM secrets to make the RAM secrets dynamic. This reduces the risks of RAM secret leaks. In addition to periodic rotation, Secrets Manager allows you to immediately rotate a RAM secret to change the AccessKey pair in use. This is useful when a RAM secret leak has occurred.
Use dynamic RAM secrets
If you use a dynamic RAM secret in your application, no AccessKey pairs need to be configured in the application. After an administrator creates a dynamic RAM secret in Secrets Manager and configures the automatic rotation interval, your application can call the GetSecretValue operation to obtain a valid AccessKey pair. Then, your application can use the AccessKey pair to call Alibaba Cloud APIs.
After a dynamic RAM secret is rotated, the AccessKey pair of the RAM user associated with the secret is synchronously updated. Do not delete RAM users that are associated with dynamic RAM secrets. If you do so, the secrets fail to be rotated.
Use a dynamic RAM secret in the following process:
- Authorize Secrets Manager to manage AccessKey pairs of RAM users.
- Create a dynamic RAM secret.
- Connect an application to Secrets Manager.
- Use the dynamic RAM secret to access Alibaba Cloud services.
Secrets Manager can manage only the AccessKey pairs of RAM users, but not AccessKey pairs of Alibaba Cloud accounts.