architecture5 min read

Kubernetes v1.35: A Better Way to Pass Service Account Tokens to CSI Drivers

23 similar posts
  • Kubernetes
  • Secrets Store CSI Driver
  • Azure File CSI Driver

AI Summary

Kubernetes v1.35 introduces a beta feature to pass service account tokens to CSI drivers through the designated secrets field instead of volume_context, preventing accidental token leakage in logs.

Key Takeaways

  • Service account tokens were historically passed in volume_context, leading to security issues when logged by protosanitizer.
  • Kubernetes v1.35 adds an opt-in mechanism via the serviceAccountTokenInSecrets field in the CSIDriver spec.
  • Driver authors must implement fallback logic checking both locations before enabling the feature to prevent mount failures during upgrades.

Why it matters

Using volume_context for sensitive tokens previously caused security vulnerabilities like accidental logging in gRPC requests. The new opt-in mechanism aligns with the CSI spec, improves security, and automates sanitization.

Conversation0

What would you add from your experience?

Checking your session…

Every good conversation starts with one perspective.