Help Center> Data Admin Service> Service Overview> Permissions Management

Permissions Management

If you need to assign different permissions to employees in your enterprise to access your DAS 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 secure access to your HUAWEI CLOUD resources.

With IAM, you can use your HUAWEI CLOUD account to create IAM users for your employees, and assign permissions to the users to control their access to specific resource types. For example, some software developers in your enterprise need to use DAS but must not delete DAS resources or perform any high-risk operations. To achieve this result, you can create IAM users for the software developers and grant them only the permissions required for using DAS resources.

If your HUAWEI CLOUD account does not need individual IAM users for permissions management, you may skip over this topic.

IAM can be used free of charge. You pay only for the resources in your account. For more information about IAM, see What Is IAM?

DAS Permissions

A policy is a set of permissions defined in JSON format. By default, a new IAM user does not have any permissions assigned. You need to add the user to one or more groups, and assign permission policies to these groups. The user then inherits permissions from the groups. This process is called authorization. After authorization, the user can perform specified operations on DAS based on the permissions. IAM provides system policies that define the common permissions for different services, such as administrator and read-only permissions. You can directly use these system policies to assign permissions.

DAS is a project-level service deployed in specific physical regions. Therefore, DAS permissions are assigned to users in specific regions and only take effect for these regions. If you want the permissions to take effect for all regions, you need to assign the permissions to users in each region. When accessing DAS, users need to switch to a region where they have been authorized to use DAS.

You can grant users permissions by using roles and policies.

Roles: A coarse-grained authorization mechanism provided by IAM to define permissions based on users' job responsibilities. This mechanism provides only a limited number of service-level roles for authorization. When using roles to grant permissions, you need to also assign other roles on which the permissions depend to take effect. However, roles are not ideal for fine-grained authorization and secure access control.

Policies: A type of fine-grained authorization mechanism that defines permissions required to perform operations on specific cloud resources under certain conditions. This mechanism allows for more flexible policy-based authorization, meeting requirements for secure access control. For example, you can grant IAM users only the permissions for managing a certain type of database resources. In addition, if you want to use DAS to manage database resources, add the required DAS system policies. Then, you can log in to DAS to manage these resources.

Table 1 lists all the DAS system permissions.

Table 1 DAS system permissions

Policy Name

Description

Type

Dependency

DAS Administrator

DAS administrator who has all the DAS permissions.

System-defined role

This role depends on the Tenant Guest role.

The DAS Administrator and Tenant Guest roles must be assigned in the same project.

DAS FullAccess

All DAS permissions.

System policy

None

DAS depends on other services to implement the management and O&M of databases.

If you authorize IAM users in fine-grained mode and want to use DAS to manage DB instances, add the DAS FullAccess system policy during authorization.

With DAS, IAM users can view and manage the DB instances configured in the corresponding services.

By default, users with fine-grained authorization have the permissions to view the database login list, delete database login information, and access CloudDBA on DAS. The instances viewed by these users are the same as those configured in the corresponding services.

Table 2 describes the common operations supported by each system-defined policy or role of DAS.

Table 2 Common operations supported by each system-defined policy or role of DAS

Operation

DAS Administrator

DAS FullAccess

Logging in to a database

Supported

Supported

Adding a login

Supported

Supported

Modifying login information

Supported

Supported

Deleting a login

Supported

Supported

Viewing the login list

Supported

Supported

Accessing CloudDBA

Supported

Supported

Table 3 Common DAS operations and supported actions

Operation

Action

Remarks

Logging in to a database

das:connections:login

Configure the permissions for other services to query instances based on the type of the instance to be logged in to.

  • rds:instance:list;
  • dds:instance:list;
  • gaussdb:instance:list;

Adding a login

das:connections:create

Configure the permissions for other services to query instances based on the instance type.

  • rds:instance:list;
  • dds:instance:list;
  • gaussdb:instance:list;

Modifying a login

das:connections:modify

Configure the permissions for other services to query instances based on the instance type.

  • rds:instance:list;
  • dds:instance:list;
  • gaussdb:instance:list;
Table 4 Others permissions DAS depends on

Policy Name

Description

Type

Dependency

Tenant Administrator

Operation permissions:

  • All permissions on the account center, billing center, and resource center
  • All permissions on all cloud resources owned by the account

Configure the OBS policies globally.

System role

None

OBS OperateAccess

Operation permissions: Users with this permission can view buckets, obtain basic bucket information, obtain bucket metadata, view objects, upload objects, download objects, delete objects, and obtain object ACLs.

Configure the OBS policies globally.

System policy

None

DAS import and export features require the usage of OBS buckets. You need to obtain required OBS policies before using these features.

  • Typically, it is recommended that you configure the Tenant Administrator policy that allows you to perform operations on OBS resources.
  • If you do not want employees to have the high-risk permission for creating and deleting buckets, you can configure the OBS OperateAccess policy for the employees so that they can use the DAS features but cannot create and delete OBS buckets.