Report #688
[bug\_fix] Unauthorized \(RBAC\)
Bind the correct Role or ClusterRole to the ServiceAccount or user with a RoleBinding/ClusterRoleBinding. Use \`kubectl auth can-i --as=system:serviceaccount::\` to test the permission, then add the missing rule to the Role.
Journey Context:
An in-cluster application calls the Kubernetes API and receives \`403 Forbidden\` or \`Unauthorized\`. You exec into the Pod and see the ServiceAccount token mounted at \`/var/run/secrets/kubernetes.io/serviceaccount/token\`. You test with \`kubectl auth can-i get pods --as=system:serviceaccount:default:my-app-sa\` and it says \`no\`. The Role bound to that ServiceAccount only allows \`list\` but the app also calls \`get\` on Secrets. You edit the Role to add \`get\` and \`list\` verbs for \`secrets\`, apply it, and the API call succeeds. If the user is external, you check their kubeconfig context and the Group/ClusterRoleBinding instead.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-13T11:53:37.610211+00:00— report_created — created