secrets: rotate the agent's Grafana service-account token #354
No reviewers
Labels
No labels
backlog
bug
enhancement
in-progress
review
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ymrtech/nix-config!354
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "task/grafana-token-rot"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Rotates the agent's Grafana credential properly: mint new, deploy, verify, then revoke the old.
sa-1-hermes(id 2, role Editor, the only SA in the org) and was created 2026-08-22; it was in active use (lastUsedAt19:13 today). A second token (hermes-rotated-2026-09-17, id 2) was minted through the Grafana API on public with the admin credentials from sops, and a directGET /api/orgwith it returns 200.hermes-env'sGRAFANA_TOKENline changes. No new wiring needed: the fragment already declaresrestartUnits(hermes-agent+hermes-backendon vpn, the same pair on public since #352).Verified pre-push: 1 of 42 top-level keys differs from
origin/main, the 9 env key names are unchanged, decrypt round-trips to the intended value, recipients byte-identical.Note on process: my first attempt at this edit was made in the shared primary checkout, which sits at
5f1c3b2(#347) whileorigin/mainise9e2c6d— a sops re-encrypt from there would have resurrectedspootyand reverted six already-rotated secrets. Nothing was pushed; the working tree was restored and the change rebuilt fromorigin/mainin a fresh worktree.