Configuration and resources, topic 15 of 61
Secrets
A Secret is used like a ConfigMap but meant for sensitive values, and Kubernetes treats it more carefully: it can be encrypted at rest in etcd, and is only sent to nodes that run a Pod which needs it.
Its values are base64, which is an encoding, not encryption: anyone who can read the Secret can read the value. Limit who may get Secrets with RBAC, turn on encryption at rest, and consider an external store such as Vault or a cloud's secret manager with the External Secrets Operator.
On Opsfolk
Nothing of ours for this topic yet: an article is on its way.
Elsewhere
- SecretsOfficial
- Good practices for SecretsOfficial