How CEN works with RAM

Updated at:

Cloud Enterprise Network (CEN) integrates with Resource Access Management (RAM) to control who can access and manage CEN resources. RAM is an Alibaba Cloud service that manages user identities and access permissions for cloud resources. Use RAM to grant fine-grained permissions to RAM users, RAM user groups, and RAM roles so that each identity gets only the access it needs.

RAM access control concepts

RAM controls access to CEN resources through permissions, policies, and policy attachment. Permissions define the resources that RAM users, RAM user groups, and RAM roles can access.

Default permissions

Alibaba Cloud accounts, RAM users, and resource creators start with different default permissions:

  • Resource ownership: The Alibaba Cloud account owns all resources and has full control. Even if a RAM user creates a resource, ownership belongs to the account, not the user.

  • Principal permissions: RAM principals (users and roles) have no permissions by default. They can only perform actions explicitly allowed by attached policies.

Policies

A policy is a set of permissions. Each policy specifies which resources can be accessed, which operations are allowed, and under what conditions.

RAM supports two types of policies:

  • System policy: Created and maintained by Alibaba Cloud. You can use system policies, but you cannot modify them. Alibaba Cloud maintains policy version updates. Use system policies for standard access control scenarios. For CEN system policies, see System policies for CEN.

  • Custom policy: If system policies do not meet your requirements, create a custom policy for fine-grained permission management. For information about creating custom policies, see CEN custom policies.

Policy attachment

A policy takes effect only after it is attached to a RAM user, RAM user group, or RAM role. The identity then obtains the permissions specified in the policy.

  • You can attach one or more policies to a RAM user, RAM user group, or RAM role.

  • Attached policies can be system policies or custom policies.

  • If an attached policy is updated, the update automatically takes effect. You do not need to attach the policy again.

Service-linked roles

A service-linked role is a RAM role whose trusted entity is a specific Alibaba Cloud service. Only the linked service can assume the role. The policy of a service-linked role is defined and used by the linked service. You cannot modify or delete the policy, add or remove permissions, or attach or detach policies for a service-linked role.

In most cases, the linked service automatically creates or deletes the service-linked role if needed. You do not need to create or delete it. Service-linked roles reduce the risk of unintended operations.

Important

Service-linked roles count against your RAM role quota. If you exceed the RAM role quota, you can still create service-linked roles, but you cannot create other types of roles. For information about the number of RAM roles that are supported, see Limits.

AliyunServiceRoleForCEN

To let CEN access other cloud resources, you must first authorize CEN to create the corresponding service-linked role. CEN then assumes AliyunServiceRoleForCEN to access those resources. The following table describes this role.

Attribute

Value

Role name

AliyunServiceRoleForCEN

Created when

CEN automatically creates this role when you first create a virtual private cloud (VPC) connection on an Enterprise Edition transit router.

Attached policy

AliyunServiceRolePolicyForCEN. For details, see AliyunServiceRolePolicyForCEN.

What the policy allows

The Enterprise Edition transit router to create elastic network interfaces (ENIs) in VPCs. The ENIs serve as traffic ingress points from VPCs to the Enterprise Edition transit router.