automation (Fix): grant workflowtaskresults to the workflow executor SA #1714

Merged
ginjiruu merged 1 commit from automation-taskresults-rbac into main 2026-11-17 15:59:27 +00:00
Owner

Argo's agent sidecar reports step results as workflowtaskresults (create/patch) using the workflow's own ServiceAccount. automation-kubetenant-role's argoproj.io rule predates that resource, so every step of the create-k8s-resources-in-repo workflows in the automation namespace ends with:

executor error: workflowtaskresults.argoproj.io is forbidden

(seen in automation pod logs from 2026-11-16T23:48Z; the workflow pods run as automation-kubetenantsetup via automation-kubetenantsetup-binding).

Adds workflowtaskresults to the existing argoproj.io rule, matching the executor rules already present in generic-templates/argo/workflows/account.yaml and clusters/mini/ci/role.yaml.

Verified: flux build kustomization flux-system --path ./clusters/mini renders the extended rule.

Related: lab/tofu-controller#2 covers the second failure in the same pods (Forgejo authorized-integration JWT rejected).

Argo's agent sidecar reports step results as workflowtaskresults (create/patch) using the workflow's own ServiceAccount. automation-kubetenant-role's argoproj.io rule predates that resource, so every step of the create-k8s-resources-in-repo workflows in the automation namespace ends with: executor error: workflowtaskresults.argoproj.io is forbidden (seen in automation pod logs from 2026-11-16T23:48Z; the workflow pods run as automation-kubetenantsetup via automation-kubetenantsetup-binding). Adds workflowtaskresults to the existing argoproj.io rule, matching the executor rules already present in generic-templates/argo/workflows/account.yaml and clusters/mini/ci/role.yaml. Verified: flux build kustomization flux-system --path ./clusters/mini renders the extended rule. Related: lab/tofu-controller#2 covers the second failure in the same pods (Forgejo authorized-integration JWT rejected).
Argo's agent sidecar reports step results as workflowtaskresults
(create/patch) using the workflow's own ServiceAccount. The
automation-kubetenantsetup SA is bound to automation-kubetenant-role,
whose argoproj.io rule predates that resource, so every step of the
create-k8s-resources-in-repo workflows ends with:

  executor error: workflowtaskresults.argoproj.io is forbidden

Same shape as the existing executor rules in
generic-templates/argo/workflows and clusters/mini/ci/role.yaml.
Sign in to join this conversation.
No description provided.