CertGrid CertGrid
Hands-on Lab·Kubernetes and Cloud Native Security Associate

Kubernetes Secrets and Exposure Paths

Secrets are 27% of the KCSA pool by keyword. The exam is less interested in how you create one than in how it escapes: this guide mounts the same Secret two ways and measures the difference, then finds an RBAC rule that looks like it restricts access and does not.

Security Fundamentals Guide 21 of 42 Intermediate

Written against the versions above. Secret volumes are tmpfs on Linux nodes, mounted read-only when the Pod asks. `resourceNames` on the `list` verb is accepted by the API and has no effect - documented behaviour, demonstrated here.

The cka5001 cluster: one control plane and 3 schedulable workers, on Cilium.
Server NameIP AddressOSRolesCPURAMHDD
CKA5001192.168.0.41Ubuntu 26.04 LTSControl Plane Node (tainted NoSchedule)2 Core4 GB50 GB
CKA5001-NODE01192.168.0.42Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB
CKA5001-NODE02192.168.0.43Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB
CKA5001-NODE03192.168.0.44Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB

Before you start

  1. What describe will and will not tell you

  2. The environment variable, and everywhere it appears

  3. The volume, and what it is mounted on

  4. An RBAC rule the API accepts and that grants nothing

Official sources