From the course: Certified Kubernetes Security Specialist (CKS) Cert Prep

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Understanding Kubernetes secrets

Understanding Kubernetes secrets

- Kubernetes secrets are something that we have used in other lessons. And why do we need them? What are the point of having secrets available within Kubernetes? Well, it comes down to having a mechanism to be able to protect sensitive data, and the ability to be able to store this confidential information within the etcd database is really what secrets are all about. Now, it does provide the ability to be able to do a decoupling as well, where the secret can be separated from the actual workload that uses it, which means that the ability for that particular workload, if it were to be compromised, the container, the code that's in it, it's not hard coded, that information isn't hard coded, like tokens or other things like that. So that decoupling is a crucial component because it allows for a lot of transportability as well as to be able to better protect those secrets. Now, secret usage within Kubernetes comes from the fact that, as we said before, it stores it in the etcd, which is…

Contents