Illustrative case: an operator widens an agent's tool permissions for debugging, then rolls back the Deployment. The old Pod template returns. Which check would show that the extra permission also ended?
The Deployment documentation ties rollout revisions to changes in the Pod template. Scaling alone creates no revision; rollback to an available revision restores the earlier template. The RBAC documentation describes additive grants. A RoleBinding grants access in its namespace even when referencing a ClusterRole. A ClusterRoleBinding grants the referenced permissions cluster-wide. Removing one binding may leave equivalent access through another grant.
Steps
Proposed practice: treat the Deployment change and the permission change as two reviewed artifacts. The permission artifact should name the service account, the role or cluster role, the binding scope, the ticket, and the approver. The rollback plan should name both artifacts. This is a process proposal, not a Kubernetes feature.
In the example, identify the service account used by the agent and the extra grant approved for debugging. Record any binding to that account that can authorize the same action. Restore the Deployment and change the permission artifact separately. Compare both with the versions approved for recovery.
Test
Check the effective authorization for the exact subject, verb, resource, and target namespace. Before the change, confirm the debugging action is allowed. When the extra grant is the only one for that action, removal should change the answer to denied. Repeat a second request that the account should still be able to make. If the first remains allowed, trace the applicable roles and bindings; if the control fails, check what else the binding covered. Capture the current cluster context with both observations.
Limits
Each decision describes one request at the time of review. A Deployment rollback restores the Pod template. Check unrelated database changes separately with the database owner. The team can then record three distinct results: which template is live, whether the extra action is still authorized, and whether the earlier action needs repair.
This article was created with AI assistance.
Top comments (0)