Interview Prep/Kubernetes/Configuration & Storage

What is a Secret and is it secure by default?

BeginnerConceptConfiguration & Storage
Answer

A Secret holds sensitive data (passwords, tokens, TLS keys) separate from Pod specs. By default values are only base64-encoded, not encrypted, in etcd. Real protection needs encryption at rest (KMS provider), tight RBAC on get/list secrets, and ideally an external secrets manager.

kubectl create secret generic db --from-literal=password='S3cr3t!'
kubectl get secret db -o jsonpath='{.data.password}' | base64 -d
All Kubernetes questions Roadmap: Kubernetes core

More on Configuration & Storage