TL;DR
In Kubernetes v1.35, CSI drivers can now opt-in to receive service account tokens through the 'secrets' field in 'NodePublishVolumeRequest', improving security by addressing accidental logging issues in volume context.
What happened
Kubernetes version 1.35 introduces an opt-in feature for CSI (Container Storage Interface) drivers, allowing them to request and receive service account tokens via a secrets field, rather than the volume context where sensitive information might be accidentally logged.
Why it matters for ops
This update enhances security by preventing accidental logging of service account tokens in gRPC requests. It aligns with the CSI specification's intended use for storing sensitive data securely and simplifies driver maintenance by standardizing token handling practices.
Action items
- Implement fallback logic to check both volume context and secrets field for tokens
- Upgrade kube-apiserver and kubelet to version 1.35 or later
- Deploy updated CSI driver with opt-in feature
Source link
https://kubernetes.io/blog/2026/01/07/kubernetes-v1-35-csi-sa-tokens-secrets-field-beta/