Permissions
If you need to assign different permissions to personnel in your enterprise to access your RDS 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. If your Huawei Cloud account does not require IAM for permissions management, you can skip this section.
IAM is a free service. You only pay for the resources in your account.
With IAM, you can control access to specific Huawei Cloud resources. For example, if you want some software developers in your enterprise to use RDS resources but do not want them to delete RDS instances or perform any other high-risk operations, you can grant permission to use RDS instances but not permission to delete them.
IAM supports role/policy-based authorization and identity policy-based authorization.
The following table describes the differences between these two authorization models.
|
Authorization Model |
Authorization Using |
Permissions |
Authorization Method |
Scenarios |
|---|---|---|---|---|
|
Role/Policy |
User-permission-authorization scope |
|
Assigning roles or policies to principals |
To authorize a user, you need to add it to a user group first and then specify the scope of authorization. It provides a limited number of condition keys and cannot meet the requirements of fine-grained permissions control. This method is suitable for small- and medium-sized enterprises. |
|
Identity policy |
User-policy |
|
|
You can authorize a user by attaching an identity policy to it. User-specific authorization and a variety of key conditions allow for more fine-grained permissions control. However, this model can be hard to set up. It requires a certain amount of expertise and is suitable for medium- and large-sized enterprises. |
Assume that you want to grant IAM users the permissions needed to create RDS instances in CN North-Beijing4 and OBS buckets in CN South-Guangzhou. With role/policy-based authorization, the administrator needs to create two custom policies and attach both to the IAM users. With identity policy-based authorization, the administrator only needs to create one custom policy, configure the condition key g:RequestedRegion for the policy, and then attach the policy to the users or grant the users the access permissions to the specified regions. Identity policy-based authorization is more flexible than role/policy-based authorization.
Policies/identity policies and actions in the two authorization models are not interoperable. You are advised to use the identity policy-based authorization model. Role/Policy-based Permissions Management and Identity Policy-based Permissions Management describe system-defined permissions in the two authorization models.
For more information about IAM, see IAM Service Overview.
Role/Policy-based Permissions Management
RDS supports role/policy-based permissions management. 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.
RDS is a project-level service deployed for specific regions. When you set Scope to Region-specific projects and select the specified projects (for example, ap-southeast-2) in the specified regions(for example, AP-Bangkok), the users only have permissions for RDS instances in the selected projects. If you set Scope to All resources, the users have permissions for RDS instances in all region-specific projects. When accessing RDS instances, the users need to switch to the authorized region.
Table 2 lists all the system-defined permissions for RDS. System-defined policies in role/policy-based authorization are not interoperable with those in identity policy-based authorization.
|
Role/Policy Name |
Description |
Type |
Dependencies |
|---|---|---|---|
|
RDS FullAccess |
Full permissions for Relational Database Service. |
System-defined policy |
None |
|
RDS ReadOnlyAccess |
Read-only permissions for Relational Database Service. |
System-defined policy |
None |
|
RDS ManageAccess |
Database administrator permissions for all operations except deleting RDS resources. |
System-defined policy |
None |
|
RDS Administrator |
Administrator permissions for Relational Database Service. |
System-defined role |
Tenant Guest and Server Administrator roles, which must be attached in the same project as the RDS Administrator role |
Table 3 lists the common operations supported by system-defined permissions for RDS.
Role/Policy Dependencies of the RDS Console
Identity Policy-based Permissions Management
RDS supports identity policy-based authorization. Table 5 lists all the system-defined identity policies for RDS. System-defined policies in identity policy-based authorization are not interoperable with those in role/policy-based authorization.
|
Identity Policy Name |
Description |
Type |
|---|---|---|
|
RDSReadOnlyPolicy |
Read-only permissions for RDS. |
System-defined identity policies |
|
RDSFullAccessPolicy |
Full permissions for RDS |
System-defined identity policies |
Table 6 lists the common operations supported by system-defined identity policies for RDS.
Identity Policy Dependencies of the RDS Console
|
Console Function |
Role/Policy Required |
|---|---|
|
Creating an RDS instance |
For a yearly/monthly DB instance: BILLINGFullAccessPolicy |
|
Changing a DB instance type from single-node to primary/standby |
For a yearly/monthly DB instance: BILLINGFullAccessPolicy |
|
Restoring data to a new DB instance |
For a yearly/monthly DB instance: BILLINGFullAccessPolicy |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot