Interview Prep/DevSecOps/Secrets Management and Identity

Are Kubernetes Secrets secure by default?

BeginnerConceptSecrets Management and Identity
Answer

No. They are base64-encoded, not encrypted, and stored in etcd in plain form unless encryption at rest is enabled. Anyone with get secrets RBAC or etcd access can read them.

Harden: enable encryption at rest with a KMS provider (EncryptionConfiguration), restrict RBAC on secrets, avoid exposing them as env vars, enable audit logging for secret access, and consider an external store.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Secrets Management and Identity