CertGrid CertGrid
Hands-on Lab·Certified Kubernetes Security Specialist

Auditing RBAC Permissions

Before you can minimise RBAC you have to find what is over-broad, and reading every Role by hand does not scale past about ten. This guide is six queries that answer the questions worth asking, all of them read-only, on a cluster you may not own.

Cluster Hardening Guide 10 of 40 Intermediate

Every command here is read-only. Nothing is created, changed or deleted, which is what makes this safe to run during an assessment.

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 before minimising anything, because you cannot cut down what you have not found. This matters because reading every Role by hand does not scale - the audit is a set of queries, and every one of them is read-only.

Before you start

  1. Who holds the keys

  2. The three verbs that turn a small grant into a large one

  3. What every authenticated identity already has

  4. The two questions worth asking about any resource

  5. The roles that grow without anyone editing them

Official sources