An offboarding ticket saying “removed the role” is not proof access is gone. On a Kubernetes-backed AI gateway, a solo founder can delete one binding and leave a second path open. Verify effective access, not the edit.
Kubernetes RBAC is additive: a RoleBinding grants permissions in its namespace even when it references a ClusterRole, while a ClusterRoleBinding grants the role cluster-wide. Removing one binding may leave equivalent access elsewhere (RBAC docs). Audit evidence has a limit: the first matching policy rule sets the level. Metadata can capture user, time, resource and verb without bodies; RequestResponse can capture bodies for resource requests. Metadata cannot reconstruct an omitted payload (audit docs).
Illustrative case: a founder removes a contractor’s namespace RoleBinding after a project, yet the gateway still works. The procedure below is a proposal; no command was executed.
Steps
Inventory every grant. Search all RoleBindings and ClusterRoleBindings for the contractor and their groups. Record scope, role, verbs and owner. Do not start with the binding you remember creating.
Remove redundant paths deliberately. If a cluster-wide grant exists only for routine namespace work, replace it with a namespace RoleBinding, then remove the old grant. Treat cluster-wide access as a separate approval.
Write a revocation receipt: identity, namespace, expected denied actions, expected retained actions, evidence query, timestamp and reviewer. This separates “edited a manifest” from “access is denied.”
Test with the contractor identity. Use the platform’s authorization check for a representative verb and resource. Expected: sensitive reads and former project actions are denied. If access remains, find another binding or group membership. If access is denied but the app responds, check cached tokens and sessions.
Check audit coverage before an incident. Confirm the policy level. With Metadata only, do not promise prompt-body reconstruction. If RequestResponse is needed, require approval for extra sensitive-data capture and retention.
The check proves authorization for one identity and action, not every route. Repeat it after role changes. It does not cover static API keys or vendor-side accounts; those need separate evidence.
This article was created with AI assistance.
Top comments (0)