feat(ci_ephemeral_provisioner): alert before the Tailscale auth key expires #24
Loading…
Reference in a new issue
No description provided.
Delete branch "jfraeys/feat/authkey-expiry-alert"
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?
Stacked on #23 (fix/deploy-services-authkey-env): merge that first, or this PR also shows its commits. deploy-services.sh records the key expiry (CI_EPHEMERAL_TAILSCALE_AUTHKEY_EXPIRES_AT, Unix seconds) when it mints a key; the role writes it as a node-exporter textfile metric (skipped when unset so a known value is never blanked, malformed values fail the play); Prometheus warns 48h before expiry (CIEphemeralAuthKeyExpiringSoon) and goes critical once expired (CIEphemeralAuthKeyExpired), via the existing Alertmanager email route. After merging, deploy the role and Prometheus with the current key expiry exported (conservatively 1792101600, 2026-10-15 22:00Z). Tested: stubbed script runs, rendered alert YAML, local Ansible run of the assert and metric task; PromQL not run through promtool (not installed), not deployed. -- Generated with Claude Code