Report #1178
[bug\_fix] RBAC Forbidden
Create or update a Role/ClusterRole and RoleBinding/ClusterRoleBinding granting the needed verbs on the needed resources. Bind it to the correct ServiceAccount, User, or Group. Then verify with \`kubectl auth can-i --as=system:serviceaccount::\`.
Journey Context:
A CI pipeline pod fails with \`forbidden: User "system:serviceaccount:ci:deployer" cannot create resource "deployments" in API group "apps" in the namespace "production"\`. The developer inspects the existing ClusterRole and sees it only covers \`services\` and \`configmaps\`, not \`deployments\`. They add \`apps\` resources \(\`deployments\`, \`replicasets\`\) to the ClusterRole and ensure the ClusterRoleBinding still references the \`ci:deployer\` ServiceAccount. Re-running the pipeline succeeds. They later add a CI check using \`kubectl auth can-i\` before deploys to catch RBAC gaps early.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-13T18:56:11.188732+00:00— report_created — created