Menu

A 90-Minute Spike to Enumerate Kubernetes Write Access
📰

A 90-Minute Spike to Enumerate Kubernetes Write Access

DEV Community: kubernetes·Harper Zhu·3 days ago
#uEUFZjdB
#devtokubernetes#devto#dev#inventory#grants
Long article (345 words) — no AI summary yet.
Reading 0:00
15s threshold

Illustrative case: an on-call team inherits a staging cluster with no clear roster of people who can write to it. A 90-minute spike tests that inventory.

Hypothesis. The handoff roster accounts for each identifiable human with a write grant in our RBAC inventory. Record a group with unknown members as an unresolved case, not as an empty group.

Prerequisites. Use an authorized read-only export of the relevant RoleBindings, ClusterRoleBindings and every Role or ClusterRole they reference. Define write as a short list of verbs and resources in named namespaces. To resolve group subjects into individual humans, also supply a dated membership roster.

Steps

List bindings and subjects; separate users, groups and service accounts.

Resolve each roleRef to verbs and resources and merge into effective permissions per principal.…

Continue reading — create a free account

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