Permissions
CCE allows you to assign permissions to IAM users and user groups under your tenant accounts. CCE combines the advantages of IAM and RBAC to provide a variety of authorization methods, including IAM fine-grained/token authorization and cluster-/namespace-scoped authorization.
- Cluster-level permissions: Cluster-level permissions management evolves out of the system policy authorization feature of IAM. IAM users in the same user group have the same permissions. On IAM, you can configure system policies to describe which IAM user groups can perform which operations on cluster resources. For example, you can grant user group A to create and delete cluster X, add a node, or install an add-on, while granting user group B to view information about cluster X.
Cluster-level permissions involve CCE non-Kubernetes APIs and support fine-grained IAM policies and enterprise project management capabilities.
- Namespace-level permissions: You can regulate users' or user groups' access to Kubernetes resources, such as workloads, jobs, and Services, in a single namespace based on their Kubernetes RBAC roles. CCE has also been enhanced based on open-source capabilities. It supports RBAC authorization based on IAM user or user group, and RBAC authentication on access to APIs using IAM tokens.
Namespace-level permissions involve CCE Kubernetes APIs and are enhanced based on the Kubernetes RBAC capabilities. Namespace-level permissions can be granted to IAM users or user groups for authentication and authorization, but are independent of fine-grained IAM policies. For details, see Using RBAC Authorization.
- Cluster-level permissions are configured only for cluster-related resources (such as clusters and nodes). You must also configure namespace permissions to operate Kubernetes resources (such as workloads, jobs, and Services).
- After you create a cluster, CCE automatically assigns the cluster-admin permission to you, which means you have full control on all resources in all namespaces in the cluster.
- When viewing CCE resources on the console, the resources displayed depend on the namespace permissions. If no namespace permissions are granted, the console will not show you the resources.
Cluster-level Permissions (Assigned by Using IAM System Policies)
By default, new IAM users do not have permissions assigned. Add a user to one or more groups, and attach permissions policies or roles to these groups. Users inherit permissions from the groups to which they are added and can perform specified operations on cloud services based on the permissions.
CCE is a project-level service deployed and accessed in specific physical regions. To assign CCE permissions to a user group, specify the scope as region-specific projects and select projects for the permissions to take effect. If All projects is selected, the permissions will take effect for the user group in all region-specific projects. When accessing CCE, the users need to switch to a region where they have been authorized to use the CCE service.
- Roles: A type of coarse-grained authorization mechanism that defines permissions related to user responsibilities. This mechanism provides only a limited number of service-level roles for authorization. When using roles to assign permissions, assign other roles on which the permissions depend to take effect. However, roles are not an ideal choice 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 assign users only the permissions for managing a certain type of clusters and nodes. Most policies define permissions based on APIs. For the API actions supported by CCE, see Permissions Policies and Supported Actions.
Table 1 lists all the system permissions supported by CCE.
Role/Policy Name |
Description |
Type |
Dependency |
---|---|---|---|
CCE Administrator |
Read and write permissions for CCE clusters and all resources (including workloads, nodes, jobs, and Services) in the clusters |
System-defined roles |
Users granted permissions of this policy must also be granted permissions of the following policies: Global service project: OBS Buckets Viewer and OBS Administrator Region-specific projects: Tenant Guest, Server Administrator, ELB Administrator, SFS Administrator, SWR Admin, and APM FullAccess
NOTE:
|
CCE FullAccess |
Common operation permissions on CCE cluster resources, excluding the namespace-level permissions for the clusters (with Kubernetes RBAC enabled) and the privileged administrator operations, such as agency configuration and cluster certificate generation |
Policy |
None |
CCE ReadOnlyAccess |
Permissions to view CCE cluster resources, excluding the namespace-level permissions of the clusters (with Kubernetes RBAC enabled) |
Policy |
None |
Operation |
CCE ReadOnlyAccess |
CCE FullAccess |
CCE Administrator |
---|---|---|---|
Creating a cluster |
x |
√ |
√ |
Deleting a cluster |
x |
√ |
√ |
Updating a cluster, for example, updating cluster node scheduling parameters and providing RBAC support to clusters |
x |
√ |
√ |
Upgrading a cluster |
x |
√ |
√ |
Waking up a cluster |
x |
√ |
√ |
Hibernating a cluster |
x |
√ |
√ |
Listing all clusters |
√ |
√ |
√ |
Querying cluster details |
√ |
√ |
√ |
Adding a node |
x |
√ |
√ |
Deleting one or more nodes |
x |
√ |
√ |
Updating a cluster node, for example, updating the node name |
x |
√ |
√ |
Querying node details |
√ |
√ |
√ |
Listing all nodes |
√ |
√ |
√ |
Listing all jobs |
√ |
√ |
√ |
Deleting one or more cluster jobs |
x |
√ |
√ |
Querying job details |
√ |
√ |
√ |
Creating a storage volume |
x |
√ |
√ |
Deleting a storage volume |
x |
√ |
√ |
Performing operations on all Kubernetes resources |
√ (Kubernetes RBAC required) |
√ (Kubernetes RBAC required) |
√ |
Viewing all CIA resources |
√ |
√ |
√ |
Performing operations on all CIA resources |
x |
√ |
√ |
Performing all operations on ECSs |
x |
√ |
√ |
Performing all operations on EVS disks EVS disks can be attached to cloud servers and scaled to a higher capacity whenever needed. |
x |
√ |
√ |
Performing all operations on VPC A cluster must run in a VPC. When creating a namespace, create or associate a VPC for the namespace so that all containers in the namespace will run in the VPC. |
x |
√ |
√ |
Viewing details of all resources on an ECS In CCE, a node is an ECS with multiple EVS disks. |
√ |
√ |
√ |
Listing all resources on an ECS |
√ |
√ |
√ |
Viewing details about all EVS disk resources EVS disks can be attached to cloud servers and scaled to a higher capacity whenever needed. |
√ |
√ |
√ |
Listing all EVS resources |
√ |
√ |
√ |
Viewing details about all VPC resources A cluster must run in a VPC. When creating a namespace, create or associate a VPC for the namespace so that all containers in the namespace will run in the VPC. |
√ |
√ |
√ |
Listing all VPC resources |
√ |
√ |
√ |
Viewing details about all ELB resources |
x |
x |
√ |
Listing all ELB resources |
x |
x |
√ |
Viewing details about all SFS resources |
√ |
√ |
√ |
Listing all SFS resources |
√ |
√ |
√ |
Viewing details about all AOM resources |
√ |
√ |
√ |
Listing AOM resources |
√ |
√ |
√ |
Performing all operations on AOM auto scaling rules |
√ |
√ |
√ |
Namespace-level Permissions (Assigned by Using Kubernetes RBAC)
You can regulate users' or user groups' access to Kubernetes resources in a single namespace based on their Kubernetes RBAC roles. The RBAC API declares four kinds of Kubernetes objects: Role, ClusterRole, RoleBinding, and ClusterRoleBinding, which are described as follows:
- Role: defines a set of rules for accessing Kubernetes resources in a namespace.
- RoleBinding: defines the relationship between users and roles.
- ClusterRole: defines a set of rules for accessing Kubernetes resources in a cluster (including all namespaces).
- ClusterRoleBinding: defines the relationship between users and cluster roles.
Role and ClusterRole specify actions that can be performed on specific resources. RoleBinding and ClusterRoleBinding bind roles to specific users, user groups, or ServiceAccounts. See the following figure.
- view (read-only): read-only permission on most resources in all or selected namespaces.
- edit (development): read and write permissions on most resources in all or selected namespaces. If this ClusterRole is configured for all namespaces, its capability is the same as the O&M permission.
- admin (O&M): read and write permissions on most resources in all namespaces, and read-only permission on nodes, storage volumes, namespaces, and quota management.
- cluster-admin (administrator): read and write permissions on all resources in all namespaces.
- drainage-editor: drain a node.
- drainage-viewer: view the nodal drainage status but cannot drain a node.
In addition to the preceding typical ClusterRoles, you can define Role and RoleBinding to grant the permissions to add, delete, modify, and obtain global resources (such as nodes, PVs, and CustomResourceDefinitions) and different resources (such as pods, Deployments, and Services) in namespaces for refined permission control.
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