Commit 42dea73
authored
chore: add Grafana alerts service account token (#16)
## What
Adds `grafana_alerts_token` to the SOPS secrets — the operator-generated
token minted by the `GrafanaServiceAccount` CR (kustomize-cluster#54),
retrieved from the cluster and written via `sops set`. Replaces the
placeholder distributed by #15.
On apply, `GRAFANA_ALERTS_TOKEN` becomes functional in all 11 active
repos and the Dependabot PR alerting pipeline goes end-to-end:
Dependabot PR → caller workflow → shared-workflows reusable workflow →
Cloudflare Access app → Grafana Alertmanager → Discord.
## Validation
- Token value handled entirely in subprocesses (kubectl → shell → sops
set); never exposed in logs or this PR.
- SOPS key existence verified post-write; `make test` hooks pass at
commit.
- Cluster-side objects confirmed synced: `grafanacontactpoint/discord`,
`grafananotificationpolicy/root-discord`,
`grafanaserviceaccount/github-actions-alerts`,
`secret/grafana-alerts-token`, `secret/discord-webhook`.
## After merge
End-to-end test: `@dependabot recreate` on cflan#9 → expect a Discord
message within a minute of the reopened PR.1 parent 5155d5f commit 42dea73
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | | - | |
28 | | - | |
29 | | - | |
| 29 | + | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
0 commit comments