Chapter Six

Security

Securing a cluster from the API inward — authentication and RBAC, service accounts, Pod Security Standards, secrets and encryption at rest, admission policy, and supply-chain trust.

7 topics

Security in Kubernetes is layered, and the layers fail independently. A locked-down RBAC policy means little if any Pod can mount the host filesystem or pull an unsigned image.

The chapter works from the API inward: how a request authenticates and what RBAC then allows, the service-account identity workloads use, the Pod Security Standards that constrain what a Pod may do, encryption of secrets at rest, the admission webhooks and policy engines that enforce rules at create time, and the supply-chain controls that decide which images you trust.

Topics in This Chapter