The ack-pod-identity-webhook is a key component that provides passwordless access and pod permission isolation for applications. This topic describes the ack-pod-identity-webhook component, its usage, and its change log.
Component overview
The ack-pod-identity-webhook component uses the Kubernetes MutatingAdmissionWebhook mechanism. This component simplifies the use of the RAM Roles for Service Accounts (RRSA) feature provided by Container Service for Kubernetes (ACK). It automatically injects the required OpenID Connect (OIDC) token mounts and environment variable configurations into application pods. This eliminates the need for complex manual configuration.
Usage
The ack-pod-identity-webhook automates the configuration of RRSA. This allows pods to directly assume RAM roles, providing a secure, passwordless, and fine-grained permission management solution for cloud resources at the pod level. For more information, see Use RRSA to configure RAM permissions for a ServiceAccount and implement pod permission isolation.
Custom configurations
Custom configurations for the ack-pod-identity-webhook component include settings for the component, namespace, service account, and pod.
Component configuration
Parameter | Type | Description |
AutoInjectSTSEnvVars | boolean | Specifies whether to enable the feature that injects STS-related environment variables into pods by default.
Note This parameter is supported only in version 0.4.0 and later. |
Namespace configuration
Parameter | Type | Description | Example |
pod-identity.alibabacloud.com/injection | Label | Specifies whether to enable automatic configuration injection for pods in this namespace.
| |
Service account configuration
Parameter | Type | Description | Example |
pod-identity.alibabacloud.com/role-name | Annotation | The name of the RAM role associated with this service account. If this configuration item is not configured or its value is not a valid RAM role name, configurations are not automatically injected into pods that use this service account. | |
pod-identity.alibabacloud.com/service-account-token-expiration | Annotation | Specifies the validity period of the OIDC token mounted to pods that use this service account. Valid values: 600 to 43200. Unit: seconds. The default value is 3600. If you specify an invalid value, the default value 3600 is used. | |
pod-identity.alibabacloud.com/inject-sts-endpoint | Annotation | Specifies whether to inject the
Note This parameter is supported only in version 0.3.0 and later. | |
Pod configuration
Parameter | Type | Description | Example |
pod-identity.alibabacloud.com/injection | Label | Specifies whether to enable automatic configuration injection for this pod.
Note This parameter is supported only in version 0.2.0 and later. | |
pod-identity.alibabacloud.com/service-account-token-expiration | Annotation | Specifies the validity period of the OIDC token mounted to this pod. Valid values: 600 to 43200. Unit: seconds. The default value is 3600. If you specify an invalid value, the default value 3600 is used. Note If this configuration item exists on both the service account and the pod, the configuration on the service account is ignored. | |
pod-identity.alibabacloud.com/only-containers | Annotation | Restricts automatic configuration injection to specific containers within the pod. Use commas (,) to separate multiple container names. If this configuration item is not configured, configurations are automatically injected into all containers in the pod. | |
pod-identity.alibabacloud.com/skip-containers | Annotation | Prevents automatic configuration injection for specific containers. Use commas (,) to separate multiple container names. Note If a container name is specified in both the | |
Change log
November 2025
Version number | Registry Address | Change time | Changes | Impact |
0.4.0 | registry-cn-hangzhou.ack.aliyuncs.com/acs/ack-pod-identity-webhook:0.4.0 | November 24, 2025 |
| An abnormal component upgrade may cause pod creation to fail. Perform the upgrade during off-peak hours. |
September 2025
Version number | Registry Address | Change time | Changes | Impact |
0.3.1 | registry-cn-hangzhou.ack.aliyuncs.com/acs/ack-pod-identity-webhook:0.3.1 | September 08, 2025 | Upgrades the Golang version used by the component to 1.24.6 to improve component stability. | An abnormal component upgrade may cause pod creation to fail. Perform the upgrade during off-peak hours. |
June 2025
Version number | Registry Address | Change time | Changes | Impact |
0.3.0 | registry-cn-hangzhou.ack.aliyuncs.com/acs/ack-pod-identity-webhook:v0.3.0.0-g433f84b-aliyun | June 06, 2025 | Adds support for configuring | An abnormal component upgrade may cause pod creation to fail. Perform the upgrade during off-peak hours. |
March 2025
Version number | Registry Address | Change time | Changes | Impact |
0.2.1 | registry-cn-hangzhou.ack.aliyuncs.com/acs/ack-pod-identity-webhook:v0.2.1.0-g52e519c-aliyun | March 18, 2025 | Upgrades the Golang version used by the component to 1.23.7 to improve component stability. | An abnormal component upgrade may cause pod creation to fail. Perform the upgrade during off-peak hours. |
December 2024
Version number | Registry Address | Change time | Changes | Impact |
0.2.0 | registry-cn-hangzhou.ack.aliyuncs.com/acs/ack-pod-identity-webhook:v0.2.0.11-g2f0c2e7-aliyun | December 19, 2024 |
| An abnormal component upgrade may cause pod creation to fail. Perform the upgrade during off-peak hours. |
June 2023
Version number | Registry Address | Change time | Changes | Impact of the change |
0.1.1 | registry.cn-hangzhou.aliyuncs.com/acs/ack-pod-identity-webhook:v0.1.1.0-gbddcb74-aliyun | June 07, 2023 | Enhances the component's compatibility with ACK serverless clusters. | An abnormal component upgrade may cause pod creation to fail. Perform the upgrade during off-peak hours. |
February 2023
Version number | Registry Address | Change time | Changes | Impact |
0.1.0 | registry.cn-hangzhou.aliyuncs.com/acs/ack-pod-identity-webhook:v0.1.0.9-g26b8fde-aliyun | February 01, 2023 | Implements the feature to automatically mount OIDC tokens and configure environment variables for application pods. | Initial release. |