All jobs / DevOps / SRE / cloud / Kubernetes

DevOps / SRE / cloud interview question · 0–1 years

ConfigMap or Secret for a database password — and is a Secret encrypted?

The strongest answer

Secret, but by default it is only base64-encoded in etcd, not encrypted; I enable encryption at rest, restrict who can read secrets with RBAC, or source them from an external secret manager

Why it works

Right — base64 is encoding, not encryption. A Secret is a slightly better-guarded ConfigMap until you configure the rest.

What a good answer covers

Answers that fall short

Who gets asked this

More Kubernetes questions