Qiku ← Back to library

AI / Coding and Debugging

Trim Overbroad RBAC Permissions

Trim Overbroad RBAC Permissions — Chinese original prompt

下面是当前的 Role/ClusterRole 绑定和 [ServiceAccount] 使用情况。请:1)找出授予过宽的动作,如通配符、读 secrets、exec 进容器,并说明被滥用后的后果;2)按每个工作负载实际调用的 API 给出最小权限清单;3)区分 namespace 级与集群级该用哪个;4)给出逐步收敛的顺序,避免直接把流水线弄挂。
Site original

Chinese original

How to use

先查谁 Exec 进容器、谁读 Secret,这两项风险最高也最好收。

More in this topic