Updated on 2024-12-19 GMT+08:00

Permissions Management

If you need to assign different permissions to personnel in your enterprise to access your CBR resources, Identity and Access Management (IAM) is a good choice for fine-grained permissions management. IAM provides identity authentication, permissions management, and access control, helping you to securely access your Huawei Cloud resources.

With IAM, you can create IAM users and assign permissions to control their access to specific resources. For example, if you want some software developers in your enterprise to use CBR resources but do not want them to delete CBR resource or perform any other high-risk operations, you can create IAM users and grant permission to use CBR resources but not permission to delete them.

If your Huawei Cloud account does not require individual IAM users for permissions management, you can skip this section.

IAM is a free service. You only pay for the resources in your account. For more information about IAM, see IAM Service Overview.

CBR Permissions

New IAM users do not have any permissions assigned by default. You need to first add them to one or more groups and attach policies or roles to these groups. The users then inherit permissions from the groups and can perform specified operations on cloud services based on the permissions they have been assigned.

CBR is a project-level service deployed for specific regions. When you set Scope to Region-specific projects and select the specified projects in the specified regions, the users only have permissions for CBR resources in the selected projects. If you set Scope to All resources, the users have permissions for CBR resources in all region-specific projects. When accessing CBR resources, the users need to switch to the authorized region.

You can grant permissions by using roles and policies.

  • Roles: A coarse-grained authorization strategy provided by IAM to assign permissions based on users' job responsibilities. Only a limited number of service-level roles are available for authorization. Huawei Cloud services depend on each other. When you grant permissions using roles, you also need to attach any existing role dependencies. Roles are not ideal for fine-grained authorization and least privilege access.
  • Policies: A fine-grained authorization strategy that defines permissions required to perform operations on specific cloud resources under certain conditions. This type of authorization is more flexible and is ideal for least privilege access. For example, you can grant users only permission to manage ECSs of a certain type. A majority of fine-grained policies contain permissions for specific APIs, and permissions are defined using API actions. For the API actions supported by CBR, see Permissions Policies and Supported Actions.
Table 1 lists all the system-defined permissions for CBR.
Table 1 System-defined permissions for CBR

Policy Name

Description

Type

CBR FullAccess

Administrator permissions for CBR. Users with these permissions can operate and use all vaults, backups, and policies.

System-defined policy

CBR BackupsAndVaultsFullAccess

Common user permissions for CBR. Users with these permissions can create, view, and delete vaults and backups, but cannot create, update, or delete policies.

System-defined policy

CBR ReadOnlyAccess

Read-only permissions for CBR. Users with these permissions can only view CBR data.

System-defined policy

Table 2 lists the common operations supported by system-defined permissions of CBR.

Table 2 Common operations supported by system-defined permissions of CBR

Operation

CBR FullAccess

CBR BackupsAndVaultsFullAccess

CBR ReadOnlyAccess

Querying vaults

Supported

Supported

Supported

Creating vaults

Supported

Supported

Not supported

Listing vaults

Supported

Supported

Supported

Updating vaults

Supported

Supported

Not supported

Deleting vaults

Supported

Supported

Not supported

Associating resources

Supported

Supported

Not supported

Dissociating resources

Supported

Supported

Not supported

Creating policies

Supported

Not supported

Not supported

Updating policies

Supported

Not supported

Not supported

Applying policies to vaults

Supported

Supported

Not supported

Removing policies from vaults

Supported

Supported

Not supported

Deleting policies

Supported

Not supported

Not supported

Synchronizing backups

Supported

Supported

Not supported

Replicating vaults

Supported

Supported

Not supported

Performing backups

Supported

Supported

Not supported

Updating subscriptions

Supported

Supported

Not supported

Querying the Agent status

Supported

Supported

Not supported

Deleting backups

Supported

Supported

Not supported

Restoring data from backups

Supported

Supported

Not supported

Replicating backups

Supported

Supported

Not supported

Associating vaults

Supported

Supported

Not supported

Batch adding or deleting vault tags

Supported

Supported

Not supported

Adding vault tags

Supported

Supported

Not supported

Editing tags

Supported

Supported

Not supported

Roles or Policies that the CBR Console Depends on

Table 3 Roles or policies that the CBR console depends on

Console Function

Dependent Services

Roles or Policies Required

Associating ECSs with a vault

ECS

When an IAM user associates ECSs with a vault on the CBR console, the permissions of querying the ECS list and details are required. The user can either use the CBRFullAccessPolicy policy or add the required actions to a custom policy.

Required actions:

ecs:cloudServers:listServerVolumeAttachments

ecs:cloudServers:list

ecs:cloudServers:showServer

Associating EVS disks with a vault

EVS

When an IAM user associates EVS disks with a vault on the CBR console, the permissions of querying the EVS disk list and details are required. The user can either use the CBRFullAccessPolicy policy or add the required actions to a custom policy.

Required actions:

evs:volumes:list

Associating SFS Turbo file systems with a vault

SFS Turbo

When an IAM user associates SFS Turbo file systems with a vault on the CBR console, the permissions of querying the SFS Turbo file system list and details are required. The user can either use the CBRFullAccessPolicy policy or add the required actions to a custom policy.

Required actions:

sfsturbo:shares:getAllShares

Associating Workspace desktops with a vault

WorkSpace

When an IAM user associates Workspace desktops with a vault on the CBR console, the permissions of querying the Workspace desktop list and details are required.

The user can either use the CBR FullAccess policy or add the following actions to a custom policy:

workspace:desktops:listDetail

vpc:securityGroups:get

vpc:publicIps:list

vpc:ports:get

Querying a backup and registering an image

IMS

When an IAM user uses a cloud server backup to create a private image on the CBR console, the permission of querying the image list is required.

The user can either use the CBRFullAccessPolicy policy or add the required actions to a custom policy.

Required actions:

ims:images:list