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
More on Configuration & Storage
What is a ConfigMap and how can a Pod consume it?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?BeginnerWhat are the PV access modes?Beginner