Repository navigation
fix(backup): the age-key proof has no deadline and no alert (ADR-0120) - #1592
Merged
Merged
Conversation
SecretsKeyBackupUnproven and SecretsKeyRecipientsUnrecorded are removed with their tests, verify-key-backup and verify-key-backup-sensitive leave install-timers.sh, and Glance stops listing the proof. The stale-job rules and ScheduledJobNeverRan skip both names so an older homelab-jobs.prom stays quiet. make secrets-verify-backup stays as an optional check. Closes #671. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🟡 Changes recommended
The failure rule still alerts on optional age-key jobs and leftover failure records despite the no-alert policy, requiring exclusions for both job names and regression coverage.
1 open issue
What changed in this PR
This PR implements ADR-0120 by making age-key backup verification optional, removing its deadlines and dedicated alerts while retaining verification tooling and recipient records.
Changes:
- Removes two Prometheus alerts, age-key deadline declarations, and Glance maintenance entries; excludes old declarations from stale and never-run alerts.
- Keeps optional key checks, recipient-state tracking, and existing CA, offsite, and household deadlines.
- Updates runbooks, alert counts, decision records, and the roadmap for the retirement of #671’s remaining proof requirement.
| File | Description |
|---|---|
systemd/homelab-recipient-state.service |
Updates comments explaining why recipient tracking remains. |
stacks/sensitive/glance/pages/maintenance.yml |
Removes age-key proofs from the maintenance display. |
stacks/observability/README.md |
Updates the Prometheus alert count. |
stacks/observability/prometheus/tests/backup.test.yaml |
Removes retired alert tests and checks leftover declaration silence. |
stacks/observability/prometheus/rules/backup.rules.yaml |
Removes age-key alerts and excludes legacy never-run declarations. |
scripts/verify-key-backup.sh |
Updates check output and explanatory comments. |
scripts/key-recipients.sh |
Updates comments about retained proof records. |
scripts/install-timers.sh |
Removes both age-key deadline declarations. |
scripts/check_sops_rules.py |
Updates commentary; recipient validation is unchanged. |
scripts/add-recipient.sh |
Describes verification as optional. |
README.md |
Updates counts and summarizes optional verification. |
Makefile |
Updates comments while retaining wrapped verification. |
docs/security.md |
Documents optional checks and revised alert totals. |
docs/runbooks/successor-handover.md |
Explains that offline age-key failures are no longer monitored. |
docs/runbooks/schedule-maintenance.md |
Removes age-key deadlines and retired troubleshooting entries. |
docs/runbooks/deploy-stack.md |
Updates expected Prometheus rule totals. |
docs/runbooks/copy-the-backups-offsite.md |
Makes the accompanying age-key check optional. |
docs/runbooks/back-up-the-age-key.md |
Revises verification procedures for the no-deadline policy. |
docs/roadmap.md |
Removes the Saruman section containing #671. |
docs/observability.md |
Updates alert counts and monitoring descriptions. |
docs/changelog.md |
Records the policy change and reversal of the earlier deadline addition. |
docs/adr/0120-drop-the-age-key-proof-deadline.md |
Defines the decision, retained safeguards, and accepted risks. |
docs/adr/0024-hold-a-second-age-recipient-and-prove-each-one-separately.md |
Adds a dated amendment linking to ADR-0120. |
Review effort: Balanced
Gerrrt
enabled auto-merge (squash)
November 20, 2026 14:54
…obFailed Copilot on #1592: make secrets-verify-backup still records its exit code, and ScheduledJobFailed read it without consulting declarations. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

What changed
The age-key backup proof no longer has a deadline or an alert (ADR-0120, which amends ADR-0024 part 3).
SecretsKeyBackupUnprovenandSecretsKeyRecipientsUnrecordedare removed, with their tests. Prometheus now has 162 rules, down from 164.verify-key-backupandverify-key-backup-sensitiverows leaveinstall-timers.sh.ScheduledJobStale,ScheduledJobStaleCriticalandScheduledJobNeverRanskip both names. A host whosehomelab-jobs.prompredates this change is therefore quiet even before anyone rerunsmake install-timers.make secrets-verify-backupstill works as a check you run when you want to.recipient-statekept.remove-recipient.shreads the file it writes.observability.md,security.md, the README and its counts now say all of this.Closes #671.
Not changed:
check_sops_rules.py's two-recipient rule;CaKeyBackupUnproven,OffsiteCopyStaleandHouseholdCopyStale;Why
The operator has decided not to keep proving offline copies of the age key on a schedule. An alert that is never acted on is noise on the channel the real alerts use. This also reverses the row that #1501 added.
Blast radius
The rule change affects the Prometheus alert rules on
prometheus. The Glance page change affectstrinity. Both deploy through converge. No host's timers change until someone rerunsmake install-timers, and that run now only drops a declaration row.secrets/*.sops.yamlVerification
promtool test rules backup.test.yaml: SUCCESS. It includes a new case that pins the leftover-row silence.scripts/check_docs.py:docs OK — 162 Prometheus + 21 Loki rules.scripts/lint.sh: everything passes except ruff and ansible-lint, which were skipped because they are unavailable on this host.make validate: exit 0. It skipped ruff, yamllint and ansible-lint, which are unavailable here, the tmpfs path refusal, and the installed-timer and unit comparisons, because this run was not in a deployment checkout. CI covers those.make validatepasses (with the skips above)Deployed to the lab and confirmed working
Docs updated (
docs/, service README, ordocs/roadmap.md)🤖 Generated with Claude Code