Report #5061
[bug\_fix] RBAC Unauthorized / Forbidden
For a 403 Forbidden error, identify the actor from the message. Use kubectl auth can-i --as=system:serviceaccount:: --list to inspect effective permissions. Create a Role or ClusterRole with the needed apiGroups, resources, and verbs, then bind it to the user, group, or ServiceAccount with a RoleBinding or ClusterRoleBinding. Verify the pod is using the intended ServiceAccount and that automountServiceAccountToken is enabled if a token is required.
Journey Context:
An in-cluster operator logs pods is forbidden: User system:serviceaccount:ops:operator cannot list resource pods. kubectl auth can-i shows no permission. Creating a ClusterRole that allows get/list/watch on pods and binding it to the operator ServiceAccount fixes the call because RBAC now grants the requested verb on that resource.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T20:35:35.905535+00:00— report_created — created