Skip to content
Theory · ConfigMaps and Secrets · lesson 3 of 7

A Secret is not encryption

A database password is a setting too: the app api has to get it at start, like the log level. But the password must not be shown to everyone who looks at the cluster, and it must not sit next to the manifests in Git. For such values Kubernetes has a separate object, the Secret. Its name promises more than it does, and people often get this wrong.

In this lesson

  • Secret
  • base64 is not encryption
  • stringData: no manual encoding
  • The password in an environment variable
  • What really protects a Secret
  • Common mistake
  • Key points