Skip to content

fix(backup): the age-key proof has no deadline and no alert (ADR-0120) - #1592

Merged
Gerrrt merged 2 commits into
mainfrom
docs/drop-age-key-proof-deadline
Nov 20, 2026
Merged

Gerrrt merged 2 commits into
mainfrom
docs/drop-age-key-proof-deadline

Conversation

@Gerrrt

@Gerrrt Gerrrt commented Nov 20, 2026

Copy link
Copy Markdown
Owner

What changed

The age-key backup proof no longer has a deadline or an alert (ADR-0120, which amends ADR-0024 part 3).

  • Alerts. SecretsKeyBackupUnproven and SecretsKeyRecipientsUnrecorded are removed, with their tests. Prometheus now has 162 rules, down from 164.
  • Timers. The verify-key-backup and verify-key-backup-sensitive rows leave install-timers.sh.
  • Glance. The maintenance page no longer lists the age-key proof.
  • Old declarations stay quiet. ScheduledJobStale, ScheduledJobStaleCritical and ScheduledJobNeverRan skip both names. A host whose homelab-jobs.prom predates this change is therefore quiet even before anyone reruns make install-timers.
  • Optional check kept. make secrets-verify-backup still works as a check you run when you want to.
  • recipient-state kept. remove-recipient.sh reads the file it writes.
  • Docs. The runbooks, observability.md, security.md, the README and its counts now say all of this.
  • Roadmap. The Saruman section is gone, because its only entry was The lab secrets are encrypted to one key, and it lives only on alexander #671.

Closes #671.

Not changed:

  • the second recipient itself, and check_sops_rules.py's two-recipient rule;
  • CaKeyBackupUnproven, OffsiteCopyStale and HouseholdCopyStale;
  • the break-glass and technical-second text in the runbooks.

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 affects trinity. Both deploy through converge. No host's timers change until someone reruns make install-timers, and that run now only drops a declaration row.

  • No change to network segmentation or firewall rules
  • No new port published to a VLAN that could not already reach the service
  • No credential added outside secrets/*.sops.yaml

Verification

  • 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 validate passes (with the skips above)

  • Deployed to the lab and confirmed working

  • Docs updated (docs/, service README, or docs/roadmap.md)

🤖 Generated with Claude Code

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>
Copilot AI balanced review requested due to automatic review settings November 20, 2026 14:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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
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>
@Gerrrt
Gerrrt merged commit 933355d into main Nov 20, 2026
9 checks passed
@Gerrrt
Gerrrt deleted the docs/drop-age-key-proof-deadline branch November 20, 2026 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The lab secrets are encrypted to one key, and it lives only on alexander

2 participants