From 63a454d800fcf0cb962f45a9e5e3c924bb073d6e Mon Sep 17 00:00:00 2001 From: jgrusewski Date: Thu, 5 Mar 2026 00:54:51 +0100 Subject: [PATCH] fix(ci): add RBAC for Argo sensor workflow submission argo-workflow SA needs workflows/create and workflowtemplates/get permissions to submit CI pipelines from sensor triggers. Co-Authored-By: Claude Opus 4.6 --- infra/k8s/argo/events/rbac.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 infra/k8s/argo/events/rbac.yaml diff --git a/infra/k8s/argo/events/rbac.yaml b/infra/k8s/argo/events/rbac.yaml new file mode 100644 index 000000000..c11075a19 --- /dev/null +++ b/infra/k8s/argo/events/rbac.yaml @@ -0,0 +1,29 @@ +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + name: argo-sensor-submit + namespace: foxhunt +rules: + - apiGroups: ["argoproj.io"] + resources: ["workflows"] + verbs: ["create", "get", "list", "watch"] + - apiGroups: ["argoproj.io"] + resources: ["workflowtemplates"] + verbs: ["get", "list"] + - apiGroups: ["argoproj.io"] + resources: ["workflowtaskresults"] + verbs: ["create", "patch"] +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: argo-sensor-submit + namespace: foxhunt +subjects: + - kind: ServiceAccount + name: argo-workflow + namespace: foxhunt +roleRef: + kind: Role + name: argo-sensor-submit + apiGroup: rbac.authorization.k8s.io