RAM identity management
To keep your Alibaba Cloud account and cloud resources secure, avoid using your Alibaba Cloud account (also known as the root account) to access Lingque unless absolutely necessary. Instead, use RAM identities—such as RAM users and RAM roles—to access resources.
RAM users
An Alibaba Cloud account (root account), or a RAM user or RAM role with administrative permission, must create a RAM user. The RAM user must be granted permission before it can log on to the console or use APIs to access resources under the Alibaba Cloud account.
When using RAM users, do the following:
Create a RAM user with your Alibaba Cloud account and grant it administrative permission. Then, use this RAM user to create and manage other RAM users.
Separate human users from programmatic users.
When creating a RAM user, you can enable two access methods: console access and OpenAPI access. Console users access cloud product consoles with a username and password. API users access cloud resources by calling APIs with an AccessKey pair (AccessKey). Separate these two usage scenarios to prevent accidental operations that could affect your services. For users who access the console, enable multi-factor authentication (MFA).
Grant each RAM user the least privilege needed.
Least privilege means giving a user only the permissions required to perform a specific task—no more. This approach reduces the risk of permission abuse and improves data security.
Do not store a RAM user’s AccessKey ID and AccessKey secret in your application code. Doing so may expose your AccessKey and compromise all resources under your account. Instead, use Security Token Service (STS) tokens or environment variables to obtain temporary credentials.
If eligible, enable single sign-on (SSO) for RAM users so they can use your organization’s existing identity system to log on and access Alibaba Cloud resources directly.
Related operations for RAM users
RAM user groups
If your Alibaba Cloud account has multiple RAM users, create user groups to manage RAM users with similar responsibilities together and assign permissions in bulk. This method simplifies managing RAM users and their permissions. When using RAM user groups, do the following:
Follow the principle of least privilege when granting permissions to user groups.
Remove a RAM user from a group if their responsibilities change and no longer align with the group’s purpose. This prevents permission abuse.
Revoke permissions from a user group when those permissions are no longer needed.
Related operations for RAM user groups
RAM roles
Follow these security recommendations when using RAM roles:
After creating a RAM role, do not change its trusted entity unnecessarily. Modifying the trusted entity in the role’s trust policy might revoke access for previously authorized entities, disrupting your business. It might also grant excessive permissions if new trusted entities are added. If you must make changes, test them thoroughly in a test account first. Only apply the changes to your production account after confirming they work correctly.
Once a RAM user is authorized as a trusted entity, it can call the AssumeRole - Obtain temporary credentials for a role API to get a Security Token Service (STS) token for the RAM role. STS tokens are valid for a limited time after issuance. Set a reasonable token expiration period to reduce security risks from overly long validity.
NoteThe maximum STS token duration equals the role’s maximum session duration. For security, set the role’s maximum session duration to a reasonable value.
If eligible, enable single sign-on (SSO) for RAM roles so users can log on and access Alibaba Cloud resources directly using your organization’s existing identity system.