- Documentation
Volcengine Kubernetes Engine
Volcengine Kubernetes Engine
User guide
Authorization management
IAM user permissions
Service-specific condition keys and user-defined policies
IAM user permissions
Service-specific condition keys and user-defined policies
Service-specific condition keys and user-defined policies
This topic mainly introduces service-specific condition keys related to Volcengine Kubernetes Engine (VKE) in common business scenarios and the examples of user-defined policy syntax.
Background information
If the system predefined policies provided by Volcano Engine do not meet your requirements, you can create custom policies to control access from IAM identities to resources under your Volcano Engine account (root user), following the principle of least privilege. Within custom policies, service-level condition keys can be configured to enable more granular permission control.
Service-level condition keys are authorization condition keys specific to individual cloud services. They only take effect on a part of the interface resources within that service. Their names typically begin with the prefix ${ServiceCode}: (for example, vke:xxxxx) and are used to perform granular access control based on request context information. For details, see Condition. Service-specific condition keys
The service condition keys provided by VKE are listed in the following table.
User-defined policy examples
The following content introduces user-defined policy examples related to public access to the API server, public access through NAT Gateway, and Elastic IP Addresses (EIPs) of node pools. For more examples, see Custom policy examples.
Example 1: Refuse to enable public access to the API server
- A Volcano Engine root user or an IAM user/role with the required permissions needs to configure a custom policy based on the following example to refuse ("Effect": "Deny") to enable public access (creating an EIP) to the API server of a cluster. For detailed operations, see Creating user-defined policies.
- After you create the policy, attach it to a specified IAM identity.
- If an authorized IAM identity sets a parameter to a restricted value when creating a cluster or updating cluster configurations, the API call will fail due to insufficient permissions. For example, the IAM identity tries to enable public access to the API server.
Example 2: Refuse to enable public access through NAT Gateway when a cluster is being created
- A Volcano Engine root user or an IAM user/role with the required permissions needs to configure a custom policy based on the following example to refuse ("Effect": "Deny") to enable public access through NAT Gateway during cluster creation. For detailed operations, see Creating user-defined policies.
- After you create the policy, attach it to a specified IAM identity.
- If an authorized IAM identity sets a parameter to a restricted value when creating a cluster, the API call will fail due to insufficient permissions. For example, the IAM identity tries to enable public access through NAT Gateway.
Example 3: Refuse to automatically create and bind an EIP when nodes in a node pool are being scaled out
- A Volcano Engine root user or an IAM user/role with the required permissions needs to configure a custom policy based on the following example to refuse ("Effect": "Deny") to automatically create and bind an EIP when nodes in a node pool are being scaled out. For detailed operations, see Creating user-defined policies.
- After you create the policy, attach it to a specified IAM identity.
- If an authorized IAM identity sets a parameter to a restricted value when creating a node pool or updating node pool configurations, the API call will fail due to insufficient permissions. For example, the IAM identity tries to enable nodes to be automatically bound to EIPs.
Last updated: 2026.10.19 11:27:08