Menu

Verify RBAC Access After a Pod Template Rollback
📰

Verify RBAC Access After a Pod Template Rollback

DEV Community: kubernetes·niuniu·3 days ago
#yROFYTq1
Long article (334 words) — no AI summary yet.
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.