Report #753
[bug\_fix] Forbidden: User/system:serviceaccount cannot perform action on resource
Add the required RBAC permissions by creating or updating a Role \(namespaced\) or ClusterRole \(cluster-wide\) with the needed verbs and resources, then bind it to the user or ServiceAccount with a RoleBinding or ClusterRoleBinding. Verify with \`kubectl auth can-i --as=system:serviceaccount::\`.
Journey Context:
An in-cluster operator or CI job running under a ServiceAccount fails with \`pods is forbidden: User "system:serviceaccount:default:my-sa" cannot list resource "pods" in API group "" in the namespace "production"\`. The default ServiceAccount has no permissions beyond discovery. You create a Role allowing \`get\`, \`list\`, \`watch\` on pods in \`production\`, create a RoleBinding subjects pointing to \`system:serviceaccount:default:my-sa\`, and re-run the job. \`kubectl auth can-i list pods --as=system:serviceaccount:default:my-sa -n production\` returns yes, confirming the fix before the job even runs.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-13T12:53:33.326385+00:00— report_created — created