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 -
More on Configuration & Storage
What is a ConfigMap and how can a Pod consume it?BeginnerWhat is a Secret and is it secure by default?BeginnerWhat are the common Secret types?BeginnerWhat is a Volume and how does it differ from a container filesystem?BeginnerWhat is `emptyDir` and when is it used?BeginnerWhat are PersistentVolume (PV), PersistentVolumeClaim (PVC) and StorageClass?Beginner