Scope jenkins-ci RBAC to the whole webapp project, not one app

Was hardcoded to webapp/demo-go-app — any future app added to this
project needed its own policy line. Wildcarding to webapp/* means any
app onboarded into that project (project: webapp in its Application
manifest) is automatically covered, no RBAC change needed per app.
Platform-level apps on the default project are unaffected.
This commit is contained in:
Mukul Sharma
2026-09-03 06:36:04 +05:30
parent 900eb1719d
commit 5d4d3d44e5
@@ -108,9 +108,17 @@ argo-cd:
# role:admins / role:backend / GitHub-team policy.csv and real teammate
# emails from the source cluster are dropped here.
rbac:
# Scoped to the whole webapp project, not one app name — this is
# exactly what that AppProject exists for (projects/webapp.yaml in
# devops-argo-config). Any future app onboarded into it (project:
# webapp in its Application manifest) is automatically covered by
# jenkins-ci's sync/get access with zero RBAC changes needed here.
# Platform-level apps (argocd, gitea, vault, contour,
# external-secrets, jenkins, harbor) stay on the default project,
# untouched by this policy.
policy.csv: |
p, jenkins-ci, applications, sync, webapp/demo-go-app, allow
p, jenkins-ci, applications, get, webapp/demo-go-app, allow
p, jenkins-ci, applications, sync, webapp/*, allow
p, jenkins-ci, applications, get, webapp/*, allow
repositories:
devops-infra-helm-charts:
url: http://gitea.192.168.1.7.nip.io/mukul/devops-infra-helm-charts.git