Automatically injects OIDC token mounts and environment variables into application pods to enable password-free access and pod-level permission isolation.
Overview
The ack-pod-identity-webhook add-on builds on the Kubernetes MutatingAdmissionWebhook mechanism to make RAM Roles for Service Accounts (RRSA) in Container Service for Kubernetes (ACK) easier to use. The add-on automatically injects the OIDC token mounts and environment variable configurations that your application pods require, which eliminates manual configuration.
Usage
ack-pod-identity-webhook automates RRSA configuration so that pods can assume RAM roles directly. This provides your cluster with a secure, password-free, pod-level permission management solution for cloud resources. For more information, see Use RRSA for pod-level access control.
Custom configurations
The ack-pod-identity-webhook add-on can be customized at four levels: add-on, namespace, ServiceAccount, and pod.
Add-on configuration
|
Parameter |
Type |
Description |
|
|
boolean |
Supported in version 0.4.0 and later. Specifies whether to inject environment variables related to Security Token Service (STS) into pods by default.
|
Namespace configuration
|
Parameter |
Type |
Description |
Sample code |
|
|
label |
Specifies whether to enable automatic configuration injection for the pods in this namespace.
|
|
|
|
label |
Supported in version 0.4.2 and later. Specifies whether to enable automatic configuration override for the pods in this namespace. When an environment variable defined in a pod has the same name as one injected by the add-on, the injected value takes effect.
|
|
ServiceAccount configuration
|
Parameter |
Type |
Description |
Sample code |
|
|
Annotation |
The name of the RAM role associated with this ServiceAccount. If this Annotation is absent or its value is not a valid RAM role name, configurations are not injected into the pods that use this ServiceAccount. |
|
|
|
Annotation |
The validity period of the OIDC token mounted by the pods that use this ServiceAccount. Valid values: 600 to 43200. Unit: seconds. Default value: 3600. Invalid values fall back to the default. |
|
|
|
Annotation |
Supported in version 0.3.0 and later. Specifies whether to inject the
|
|
Pod configuration
|
Parameter |
Type |
Description |
Sample code |
|
|
label |
Supported in version 0.2.0 and later. Specifies whether to enable automatic configuration injection for this pod.
|
|
|
|
Annotation |
Supported in version 0.4.2 and later. Specifies whether to enable automatic configuration override for this pod. When an environment variable defined in the pod has the same name as one injected by the add-on, the injected value takes effect.
|
|
|
|
Annotation |
The validity period of the OIDC token mounted by this pod. Valid values: 600 to 43200. Unit: seconds. Default value: 3600. Invalid values fall back to the default. Note
If this configuration item is set on both the ServiceAccount and the pod, the pod-level setting takes effect. |
|
|
|
Annotation |
Restricts automatic configuration injection to the containers with the specified names in the pod. Separate multiple container names with commas (,). If this configuration item is absent, configurations are injected into all containers in the pod. |
|
|
|
Annotation |
Excludes the containers with the specified names in the pod from automatic configuration injection. Separate multiple container names with commas (,). Note
If a container name appears in both |
|
Release notes
October 2026
|
Version |
Image address |
Release date |
Changes |
Impact |
|
0.5.0 |
registry-cn-hangzhou.ack.aliyuncs.com/acs/ack-pod-identity-webhook:0.5.0 |
October 26, 2026 |
|
Pod creation may fail if an exception occurs during the upgrade. Upgrade the add-on image during off-peak hours. |
August 2026
|
Version |
Image address |
Release date |
Changes |
Impact |
|
0.4.4 |
registry-cn-hangzhou.ack.aliyuncs.com/acs/ack-pod-identity-webhook:0.4.4 |
August 17, 2026 |
|
Pod creation may fail if an exception occurs during the upgrade. Upgrade the add-on image during off-peak hours. |
April 2026
|
Version |
Image address |
Release date |
Changes |
Impact |
|
0.4.3 |
registry-cn-hangzhou.ack.aliyuncs.com/acs/ack-pod-identity-webhook:0.4.3 |
April 23, 2026 |
|
Pod creation may fail if an exception occurs during the upgrade. Upgrade the add-on image during off-peak hours. |
January 2026
|
Version |
Image address |
Release date |
Changes |
Impact |
|
0.4.2 |
registry-cn-hangzhou.ack.aliyuncs.com/acs/ack-pod-identity-webhook:0.4.2 |
January 29, 2026 |
|
Pod creation may fail if an exception occurs during the upgrade. Upgrade the add-on image during off-peak hours. |
November 2025
|
Version |
Image address |
Release date |
Changes |
Impact |
|
0.4.0 |
registry-cn-hangzhou.ack.aliyuncs.com/acs/ack-pod-identity-webhook:0.4.0 |
November 24, 2025 |
|
Pod creation may fail if an exception occurs during the upgrade. Upgrade the add-on image during off-peak hours. |
September 2025
|
Version |
Image address |
Release date |
Changes |
Impact |
|
0.3.1 |
registry-cn-hangzhou.ack.aliyuncs.com/acs/ack-pod-identity-webhook:0.3.1 |
September 8, 2025 |
Upgraded the Go version to 1.24.6 to improve stability. |
Pod creation may fail if an exception occurs during the upgrade. Upgrade the add-on image during off-peak hours. |
June 2025
|
Version |
Image address |
Release date |
Changes |
Impact |
|
0.3.0 |
registry-cn-hangzhou.ack.aliyuncs.com/acs/ack-pod-identity-webhook:v0.3.0.0-g433f84b-aliyun |
June 6, 2025 |
Added support for configuring |
Pod creation may fail if an exception occurs during the upgrade. Upgrade the add-on image during off-peak hours. |
March 2025
|
Version |
Image address |
Release date |
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 |
Upgraded the Go version to 1.23.7 to improve stability. |
Pod creation may fail if an exception occurs during the upgrade. Upgrade the add-on image during off-peak hours. |
December 2024
|
Version |
Image address |
Release date |
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 |
|
Pod creation may fail if an exception occurs during the upgrade. Upgrade the add-on image during off-peak hours. |
June 2023
|
Version |
Image address |
Release date |
Changes |
Impact |
|
0.1.1 |
registry.cn-hangzhou.aliyuncs.com/acs/ack-pod-identity-webhook:v0.1.1.0-gbddcb74-aliyun |
June 7, 2023 |
Improved compatibility with ACK Serverless cluster. |
Pod creation may fail if an exception occurs during the upgrade. Upgrade the add-on image during off-peak hours. |
February 2023
|
Version |
Image address |
Release date |
Changes |
Impact |
|
0.1.0 |
registry.cn-hangzhou.aliyuncs.com/acs/ack-pod-identity-webhook:v0.1.0.9-g26b8fde-aliyun |
February 1, 2023 |
Implemented automatic OIDC token mounting and environment variable configuration for application pods. |
Initial release. |