All Products
Search
Document Center

Container Service for Kubernetes:ack-pod-identity-webhook overview and release notes

Last Updated:Oct 27, 2026

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

AutoInjectSTSEnvVars

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.

  • true: Enables this feature.

  • false: Disables this feature.

Namespace configuration

Parameter

Type

Description

Sample code

pod-identity.alibabacloud.com/injection

label

Specifies whether to enable automatic configuration injection for the pods in this namespace.

  • on: Enables automatic configuration injection at the namespace level.

  • Absent or any other value: Disables automatic configuration injection at the namespace level.

apiVersion: v1
kind: Namespace
metadata:
  name: test
  labels:
    pod-identity.alibabacloud.com/injection: 'on'

pod-identity.alibabacloud.com/override-env

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.

  • true: Enables automatic configuration override at the namespace level.

  • Absent or any other value: Disables automatic configuration override at the namespace level.

apiVersion: v1
kind: Namespace
metadata:
  name: test
  labels:
    pod-identity.alibabacloud.com/override-env: 'true'

ServiceAccount configuration

Parameter

Type

Description

Sample code

pod-identity.alibabacloud.com/role-name

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.

apiVersion: v1
kind: ServiceAccount
metadata:
  name: test-sa
  namespace: test
  annotations:
    pod-identity.alibabacloud.com/role-name: test-role

pod-identity.alibabacloud.com/service-account-token-expiration

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.

apiVersion: v1
kind: ServiceAccount
metadata:
  name: test-sa
  namespace: test
  annotations:
    pod-identity.alibabacloud.com/service-account-token-expiration: '3600'

pod-identity.alibabacloud.com/inject-sts-endpoint

Annotation

Supported in version 0.3.0 and later.

Specifies whether to inject the ALIBABA_CLOUD_STS_ENDPOINT environment variable into the pods that use this ServiceAccount.

  • on: Injects this environment variable.

  • Absent or any other value: Does not inject this environment variable.

apiVersion: v1
kind: ServiceAccount
metadata:
  name: test-sa
  namespace: test
  annotations:
    pod-identity.alibabacloud.com/inject-sts-endpoint: 'on'

Pod configuration

Parameter

Type

Description

Sample code

pod-identity.alibabacloud.com/injection

label

Supported in version 0.2.0 and later.

Specifies whether to enable automatic configuration injection for this pod.

  • on: Enables automatic configuration injection.

  • Absent or any other value: The namespace configuration determines whether automatic configuration injection is enabled.

apiVersion: v1
kind: Pod
metadata:
  name: test
  labels:
    pod-identity.alibabacloud.com/injection: 'on'

pod-identity.alibabacloud.com/override-env

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.

  • true: Enables automatic configuration override.

  • Absent or any other value: The namespace configuration determines whether automatic configuration override is enabled.

apiVersion: v1
kind: Pod
metadata:
  name: test
  annotations:
    pod-identity.alibabacloud.com/override-env: 'true'

pod-identity.alibabacloud.com/service-account-token-expiration

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.

apiVersion: v1
kind: Pod
metadata:
  name: test-pod
  namespace: test
  annotations:
    pod-identity.alibabacloud.com/service-account-token-expiration: '3600'

pod-identity.alibabacloud.com/only-containers

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.

apiVersion: v1
kind: Pod
metadata:
  name: test-pod
  namespace: test
  annotations:
    pod-identity.alibabacloud.com/only-containers: 'controller,test'

pod-identity.alibabacloud.com/skip-containers

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 pod-identity.alibabacloud.com/only-containers and pod-identity.alibabacloud.com/skip-containers, the setting in pod-identity.alibabacloud.com/only-containers is automatically ignored.

apiVersion: v1
kind: Pod
metadata:
  name: test-pod
  namespace: test
  annotations:
    pod-identity.alibabacloud.com/skip-containers: 'controller,test'

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

  • Added the managed add-on managed-ack-pod-identity-webhook.

  • Upgraded the Go version to 1.26.10 to improve stability.

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

  • Added support for configuring node affinity and scheduling tolerations for the add-on workload on the Add-ons page.

  • Upgraded the Go version to 1.25.13 to improve stability.

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

  • Upgraded the Go version to 1.25.9 to improve stability.

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

  • Added automatic configuration override. When an environment variable defined in a pod has the same name as one injected by the add-on, the injected value takes effect. Use the pod-identity.alibabacloud.com/override-env label or Annotation to enable automatic configuration override at the namespace or pod level.

  • Upgraded the Go version to 1.25.6 to improve stability.

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

  • Added default injection of the following STS-related environment variables into pods: ALIBABA_CLOUD_STS_ENDPOINT, ALIBABA_CLOUD_STS_REGION, and ALIBABA_CLOUD_VPC_ENDPOINT_ENABLED.

    To disable this feature, set the AutoInjectSTSEnvVars add-on parameter to false.

  • Upgraded the Go version to 1.24.10 to improve stability.

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-identity.alibabacloud.com/inject-sts-endpoint on a ServiceAccount to inject the ALIBABA_CLOUD_STS_ENDPOINT environment variable into pods.

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

  • Added support for enabling configuration injection by adding the pod label pod-identity.alibabacloud.com/injection: 'on'.

  • Improved support for Kubernetes 1.32.

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.