fix(rotate): forgejo rotates only the metrics token (with Prometheus); headscale deploys with Authelia #163
Loading…
Reference in a new issue
No description provided.
Delete branch "jfraeys/fix/rotate-forgejo-headscale"
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?
Found before running wave 1 of the rotation plan (#117): two of its four commands would have broken something.
./infra rotate forgejogenerated random values for three keys:FORGEJO_METRICS_TOKEN: real and ours to choose, but Prometheus scrapes Forgejo with it, and the printed deploy named onlyforgejo, so the scrape would fail until Prometheus was redeployed. Deploy is now--tags forgejo,prometheus.FORGEJO_API_TOKEN: read by nothing in the repo (only the generator creates it). No longer rotated; manifest marks it unused, to delete from the vault.FORGEJO_RUNNER_REGISTRATION_TOKEN: only registers a persistent runner (forgejo-runner register --token); none exists, CI runners are ephemeral and registered via the admin API. A registration token is issued by Forgejo, so a random one would not work. No longer rotated; the manifest says where a real one comes from../infra rotate headscalerotated both halves of the OIDC client secret (Headscale's and Authelia's) but printed a deploy ofheadscaleonly, leaving Authelia on the old half: Headscale SSO login would break. Deploy is now--tags headscale,authelia.Expiry report: unknown 32 -> 30. Checked: rendered next steps show the new tags;
bash -n; test-rotation-lock, test-bitwarden-save, test-infra-cli; yamllint.🤖 Generated with Claude Code
https://claude.ai/code/session_01Ge5tovcwdEUBtPwUktsZZZ