Compare commits

..

1 Commits

Author SHA1 Message Date
platform-engineer
c971647734 fix(argocd): add argocd-rbac-cm granting platform-engineer read+sync on applications
The platform-engineer ArgoCD local account had apiKey+login capabilities
but no RBAC role assignment. With no argocd-rbac-cm ConfigMap in the repo,
the default policy gave the account zero permissions, so every API call
to list applications returned an empty list — the watchdog could not see
any apps to check their health.

This adds an argocd-rbac-cm ConfigMap with a role:platform-engineer that
has get (read) and sync on all applications in all projects, and assigns
the platform-engineer account to that role.
2026-07-06 13:06:51 +00:00
6 changed files with 14 additions and 25 deletions

View File

@@ -7,10 +7,9 @@ metadata:
app.kubernetes.io/name: argocd-rbac-cm
app.kubernetes.io/part-of: argocd
data:
policy.default: role:readonly
policy.csv: |
p, role:platform-engineer, applications, *, */*, allow
p, role:platform-engineer, projects, *, *, allow
p, role:platform-engineer, clusters, *, *, allow
p, role:platform-engineer, repositories, *, *, allow
# Grant the platform-engineer local account read + sync access to all applications
p, role:platform-engineer, applications, get, */*, allow
p, role:platform-engineer, application, sync, */*, allow
g, platform-engineer, role:platform-engineer
policy.default: ""

View File

@@ -22,12 +22,10 @@ spec:
job: deadline-checker
spec:
restartPolicy: OnFailure
imagePullSecrets:
- name: gitea-registry
containers:
- name: deadline-checker
image: git.rogi.casa/roger/myorg-assistant/myorg-assistant:fcf79bf
imagePullPolicy: Always
image: myorg-assistant:latest
imagePullPolicy: IfNotPresent
command:
- python
- run_job.py

View File

@@ -22,12 +22,10 @@ spec:
job: evening-summary
spec:
restartPolicy: OnFailure
imagePullSecrets:
- name: gitea-registry
containers:
- name: evening-summary
image: git.rogi.casa/roger/myorg-assistant/myorg-assistant:fcf79bf
imagePullPolicy: Always
image: myorg-assistant:latest
imagePullPolicy: IfNotPresent
command:
- python
- run_job.py

View File

@@ -22,12 +22,10 @@ spec:
job: git-sync
spec:
restartPolicy: OnFailure
imagePullSecrets:
- name: gitea-registry
containers:
- name: git-sync
image: git.rogi.casa/roger/myorg-assistant/myorg-assistant:fcf79bf
imagePullPolicy: Always
image: myorg-assistant:latest
imagePullPolicy: IfNotPresent
command:
- python
- run_job.py

View File

@@ -22,12 +22,10 @@ spec:
job: morning-briefing
spec:
restartPolicy: OnFailure
imagePullSecrets:
- name: gitea-registry
containers:
- name: morning-briefing
image: git.rogi.casa/roger/myorg-assistant/myorg-assistant:fcf79bf
imagePullPolicy: Always
image: myorg-assistant:latest
imagePullPolicy: IfNotPresent
command:
- python
- run_job.py

View File

@@ -22,12 +22,10 @@ spec:
job: waiting-followup
spec:
restartPolicy: OnFailure
imagePullSecrets:
- name: gitea-registry
containers:
- name: waiting-followup
image: git.rogi.casa/roger/myorg-assistant/myorg-assistant:fcf79bf
imagePullPolicy: Always
image: myorg-assistant:latest
imagePullPolicy: IfNotPresent
command:
- python
- run_job.py