Dev.to Security 🔐 Cybersecurity 👁 0 📖 1 min read

Prove a Revoked Grant Is Gone Before You Close the Ticket

Removing one binding can leave effective access unchanged. Kubernetes RBAC grants are additive. A RoleBinding grants its subjects permissions in its namespace even when it refers to a ClusterRole; a ClusterRoleBinding gr

Removing one binding can leave effective access unchanged. Kubernetes RBAC grants are additive. A RoleBinding grants its subjects permissions in its namespace even when it refers to a ClusterRole; a ClusterRoleBinding grants the referenced permissions cluster-wide. Kubernetes RBAC documentation

Consider a hypothetical offboarding review for a single binding on a team model service. The question is whether the departing subject can still perform a named action after that binding is removed. Before changing access, write the expected allow-or-deny decision for each request in the review record.

Steps

Define a small set of requests: verb, API group, resource, and namespace. Use one subject identity. In a controlled environment, observe the authorization decision for each request before removal, and record the time and cluster. This is an observation-based check; no command is supplied here because the exact tooling depends on the environment.

Remove the binding under review. Repeat the same requests with the same subject and namespace. In the predicted result, permissions supplied only by that binding disappear. A permission that another applicable grant still supplies should remain. If the result contradicts the prediction, trace every binding that matches the subject and inspect the referenced role rules. The RBAC documentation supports the additive model; it does not establish which binding supplied a given permission in your cluster.

Test

Use a second identity as a control and record one capability it should keep. If the target remains allowed where the review predicted denial, leave the ticket open. Check whether another binding grants the same action, whether the role rules changed, and whether both observations used the same cluster context. A changed result by itself does not establish which cause applied. If the subject context cannot be reproduced, record that limitation.

These checks cover the named Kubernetes API requests. They do not establish access through other systems. Record a decision about any other path only when the team can verify the request through that path.

This article was created with AI assistance.

📰 Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.