Report #3558
[bug\_fix] Unauthorized \(RBAC serviceaccount\)
Create or bind a Role/ClusterRole with the required verbs and resources to the pod's service account using a RoleBinding/ClusterRoleBinding. Use \`kubectl auth can-i --as=system:serviceaccount:: \` to test before redeploying.
Journey Context:
An in-cluster controller or job calls the Kubernetes API and gets \`401 Unauthorized\` or \`403 Forbidden\`. You check the pod spec and it uses \`serviceAccountName: default\`, which has no permissions. You describe the pod and see \`Mountable secrets\` includes the token, but the token alone doesn't grant RBAC rights. You write a Role allowing \`get\`/\`list\` on the needed resources and a RoleBinding tying it to the service account. After re-running, the API call succeeds. The fix works because Kubernetes RBAC is deny-by-default; the service account must be explicitly authorized.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T17:33:17.539771+00:00— report_created — created