Kubernetes
RBAC
ServiceAccounts、Roles、ClusterRoles とそのバインディングを参照して、誰が何をできるかを理解。
このクラスターで、誰が何をできるかを確認します。
ServiceAccounts
ServiceAccount ページは、現在のネームスペースの identity を表示します。API が返す image pull secret なども出ますが、新しいクラスターが generated token Secret を作るとは限りません。
Roles and ClusterRoles
Role と ClusterRole で、それらの ID に付いた権限を確認します。詳細では rules 配列を、apiGroups、resources、verbs、resourceNames を含む読みやすい表に展開します。
RoleBindings and ClusterRoleBindings
RoleBinding と ClusterRoleBinding で、各ロールを指しているサブジェクトを確認します。リストにはロール参照と、ユーザー、グループ、ServiceAccount を含むサブジェクトが出ます。
Troubleshooting permissions
Roles ページの Can I は、verb、resource、namespace、group、subresource、任意の name で SelfSubjectAccessReview を行います。対象は現在の kubeconfig の identity で、任意の Pod ServiceAccount ではありません。