Interview Prep/Kubernetes/Configuration & Storage

How does encryption at rest for Secrets work with a KMS provider?

AdvancedConceptConfiguration & Storage
Answer

You configure the API server with an EncryptionConfiguration; with KMS v2 (stable in 1.29), each Secret is encrypted by a data encryption key (DEK) that is itself wrapped by a key in an external KMS (AWS KMS, Vault); the DEK rotates automatically. On EKS you enable it with envelope encryption using a KMS key at cluster creation or later. Existing Secrets must be rewritten to be re-encrypted.

kubectl get secrets -A -o json | kubectl replace -f -
All Kubernetes questions Roadmap: Kubernetes core

More on Configuration & Storage