SECURITY ENGINEERING, IN PRACTICE.ANALYSIS / TECHNICAL NOTES / FIELD NOTES
Packet Notes.

Clear thinking on software,
infrastructure and security.

Analysis

Review Kubernetes permissions by consequence

Resource names alone can hide the authority a workload receives.

Read the effect of a permission

A role review that only searches for broad wildcard entries can miss meaningful authority. Kubernetes documents several escalation-relevant capabilities, including access to secrets and the ability to create workloads that use powerful identities. The consequence of a permission matters alongside its spelling.

Start from an application’s intended operation. Then ask which other identities, objects or execution environments its permissions make reachable.

Use a review ledger

For each grant, record the business purpose, namespace scope, service account and approving owner. Add a short explanation of its strongest plausible effect. This makes discussion possible across platform and application teams without turning the review into a list of opaque policy fragments.

Our proposed ledger includes a “removal check” field: the normal task that should still succeed if an unnecessary grant is removed. That turns privilege reduction into a verifiable change instead of an argument about whether a role feels too broad.

Include maintenance paths

Debugging, backup and emergency jobs often operate with different service accounts from the main deployment. Review them as separate consumers of authority. Record when an elevated path is enabled and how its use becomes visible to the team responsible for the affected namespace.

Trace an indirect permission

The Kubernetes RBAC guidance notes that list and watch can expose Secret contents. Creating workloads can also provide access to mounted resources and service-account permissions; a review limited to direct get permissions misses these paths.

Consider a build identity that cannot read a Secret through the API but can create Pods in the same namespace. Before calling that separation effective, review which service accounts, mounts and workload settings it can select and which admission constraints are enforced. Record the resulting capability, not merely the verb missing from the Role.

Source & further reading

Kubernetes · RBAC good practices ↗