Kubernetes Blog
Follow
Kubernetes v1.34: Service Account Token Integration for Image Pulls Graduates to Beta
Kubernetes v1.34 promotes Service Account Token Integration for Kubelet Credential Providers to beta. This enhancement enables credential providers to use workload-specific service account tokens for registry credentials, replacing long-lived image pull secrets. The beta release introduces a mandatory cacheType field for credential provider configurations. Two caching strategies are available: Token, for credentials tied to token lifetime, and ServiceAccount, for credentials valid for all pods using the same service account. The beta version also provides enhanced security isolation, ensuring pods can only access images pulled using their authorized ServiceAccounts. This system tracks ServiceAccount identity, verifying it when a pod uses a cached image. Administrators can revoke image access by deleting and recreating ServiceAccounts. The feature builds on service account node audience restriction for secure token requests. To use the beta feature, ensure Kubernetes v1.34 or later and update credential providers. Migration from alpha requires adding the cacheType field and reviewing caching strategies. The Kubernetes community is seeking feedback on this feature, especially from credential provider implementors. Further development and feedback collection are planned for future releases.