Interview Prep/Real-World Interview/Secrets, security & access

Were your Kubernetes Secrets encrypted at rest?

IntermediateBehavioralSecrets, security & access
Answer

Good answer looks like → "Yes. EKS envelope-encrypts Secrets with a KMS key; we used our own customer-managed key so we controlled the key policy and could see usage in CloudTrail. Base64 is just encoding. We also restricted get and list on Secrets in RBAC, since anyone who can read the Secret object sees the plaintext."

Follow-ups to expect → Who could read Secrets in your cluster? Does encryption at rest protect from someone with kubectl get secret?

Red flags → Thinking base64 is encryption.

All Real-World Interview questions Roadmap: Interview readiness

More on Secrets, security & access