devops5 min read

Kubernetes v1.35 Improves CSI Driver Security with ServiceAccount Tokens in Secrets

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

AI Summary

Kubernetes v1.35 introduces a beta feature allowing CSI drivers to receive ServiceAccount tokens through the secure secrets field instead of volume_context. This change prevents sensitive tokens from accidentally leaking into gRPC logs. The article provides a step-by-step deployment guide and backward-compatibility recommendations for CSI driver authors.

Key Takeaways

  • Introduces the serviceAccountTokenInSecrets field in the CSIDriver spec.
  • Recommends implementing fallback logic to check both locations during migration.
  • Requires careful deployment sequencing to prevent volume mounting failures.

Why it matters

Moving sensitive ServiceAccount tokens from volume_context to the designated secrets field addresses significant security vulnerabilities like CVE-2023-2878 and CVE-2024-3744. It standardizes how sensitive data is handled in CSI drivers and eliminates the need for custom sanitization logic.

Conversation0

What would you add from your experience?

Checking your session…

Every good conversation starts with one perspective.