Code RoomWildcard RBAC grants cluster admin
HardPrep Room Coding #4128

Wildcard RBAC grants cluster admin

Vibe & agenticAlgorithms & data structuresSenior–Staff~18 min

You asked an AI for "RBAC so the deployment controller can read configmaps in its namespace." It produced this and it works. The platform team rejects it. Why?

Implement
allowed_requests(rule: str, requests: list[str]) → list[str]
Examples
in["*;*;*;cluster",[",configmaps,get,prod",",secrets,get,kube-system","apps,deployments,delete,default"]]out[",configmaps,get,prod",",secrets,get,kube-system","apps,deployments,delete,default"]
in[";configmaps;get,list,watch;prod",[",configmaps,get,prod",",secrets,get,kube-system","apps,deployments,delete,default"]]out[",configmaps,get,prod"]
in[";configmaps;get;prod",[",configmaps,get,prod",",configmaps,get,staging"]]out[",configmaps,get,prod"]
What a strong answer looks like

Treat the AI’s output as a draft to verify, not an answer to trust. Name the specific flaw and the input that triggers it, say how you’d catch it (tests, edge cases, reading critically), and how you’d re-prompt or decompose to get it right.

0:00 of about 18 min

Vibe & agentic: describe the solution in plain language (or narrate it) and the coach grades your approach.

Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.