CertGrid CertGrid
Hands-on Lab·Certified Kubernetes Security Specialist

Managing Kubernetes Secrets

Encryption at rest protects the datastore. This guide is about everything above it: how a Secret is consumed, where it ends up, what immutability buys, and the Role that looks like it restricts access and does not.

Microservice Vulnerabilities Guide 21 of 40 Intermediate

Secret volumes are tmpfs on Linux nodes and mounted read-only when the Pod asks for it. immutable: true cannot be reversed - the Secret has to be replaced.

The cka6001 cluster: one control plane and 2 schedulable workers, on Cilium.
Server NameIP AddressOSRolesCPURAMHDD
CKA6001192.168.0.46Ubuntu 26.04 LTSControl Plane Node (tainted NoSchedule)2 Core4 GB50 GB
CKA6001-NODE01192.168.0.47Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB
CKA6001-NODE02192.168.0.48Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB

This guide includes

Use this once encryption at rest is done, because that only ever protected the datastore. This matters because a Secret still reaches a node and a container - and how it is consumed decides how far it spreads from there.

Before you start

  1. The same Secret, consumed two ways

  2. The parts that are not about mounting

  3. What the node sees

Official sources