Skip to content

chore(backup): drop the household copy and its requirement (ADR-0122) - #1600

Merged
Gerrrt merged 6 commits into
mainfrom
chore/drop-household-copy
Nov 21, 2026
Merged

Gerrrt merged 6 commits into
mainfrom
chore/drop-household-copy

Conversation

@Gerrrt

@Gerrrt Gerrrt commented Nov 21, 2026

Copy link
Copy Markdown
Owner

What changed

The household copy (ADR-0073) and the requirement behind it are removed.

  • New ADR-0122 supersedes ADR-0073 and amends ADR-0023, ADR-0024 and ADR-0064. No copy outside the house is required. ADR-0064's nightly encrypted library copy to oracle stays, and it is no longer called interim.
  • Deleted: carry-household-copy.sh, household-recipients.sh, stacks/sensitive/household.recipients, household-age.sha256, and the runbooks carry-the-household-copy.md and open-the-household-copy.md. Also the household-copy and household-proof make targets and job rows, and HouseholdCopyStale with its tests.
  • Stale-job rules: ScheduledJobNeverRan and ScheduledJobFailed now skip both names, as the stale rules already did. A homelab-jobs.prom on trinity that predates this stays quiet, and a new test pins that.
  • check_sops_rules.py: the household check is removed. .sops.yaml loses only a comment, and its rules are unchanged.
  • backup-library.sh: library sets are encrypted to the sensitive rule's recipients. The household file's only real key was the second recipient, which is already in that rule, so the sets open with the same keys as before.
  • backup-volumes.sh: the paperless-documents sentinel is gone, because only the household carry wrote that archive.
  • Roadmap: Off-estate copy: ADR-0023's second-person proof #455's entry leaves. The trinity milestone now closes on Build the sensitive-tier host on the ProDesk (ADR-0034) #404 and Sensitive tier: Immich — the service ADR-0008 named as the cost of this decision #132, and Build the sensitive-tier host on the ProDesk (ADR-0034) #404's gate no longer waits on an off-estate copy.
  • hardware.md: the WD Elements 5 TB is spare.
  • Counts: ADRs 121 → 122, runbooks 55 → 53, alert rules 162/183 → 161/182.
  • Two changelog links that pointed at the deleted runbook now use a permalink to 19f6d4c. The wording is unchanged.

Closes #455.

Stacked on #1599, which adds ADR-0121. Merge that one first. Until then, this PR's diff includes #1599's commits.

Why

On 2026-11-21 the operator said: "I don't want it and I want the requirement removed." The copy waited on a household holder who was never chosen. The consequence, stated in ADR-0122: the photographs, documents and budget have no copy outside the house.

Blast radius

trinity only, after merge and make install-timers PROFILE=sensitive: two deadline rows and one alert go away. Library and volume backups keep their schedule, their destination and their recipients. No secret changes.

  • 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

  • python3 scripts/check_docs.py: docs OK — 161 Prometheus + 21 Loki rules.

  • ./scripts/lint.sh: passed, with 4 tools skipped as unavailable. The two that matter here were run by hand in docker: yamllint 1.38.0 on the rules, tests and .sops.yaml, and ruff 0.17.4 on check_sops_rules.py. Both passed. ansible-lint was not run; no Ansible file changed.

  • promtool, from the image pinned in stacks/observability/compose.yaml: check rules and test rules passed on every file.

  • install-timers.sh --check, both profiles: 0 FAIL.

  • check_sops_rules.py and its --self-test: pass.

  • shellcheck on the five edited scripts: clean.

  • Self-tests: backup-library.sh 24 PASS. backup-volumes.sh 20 PASS. backup-offsite.sh 50 PASS and 1 SKIP; the skipped check needs a non-tmpfs /tmp, so CI covers it.

  • Full make validate was not run; CI does.

  • make validate passes

  • Deployed to the lab and confirmed working

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

🤖 Generated with Claude Code

Gerrrt and others added 3 commits November 21, 2026 05:13
…); DNS test done

The operator will not run shut-down-on-the-ups.md steps 5 and 6. ADR-0121
accepts the applied steps 0 to 4b, the roadmap's #574 entry leaves, and the
runbook, hardware.md and security.md stop listing the proof as owed. The DNS
failure test was run by the operator and paged; it is recorded and leaves
#404's list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…erdict (ADR-0121)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ADR-0122 supersedes ADR-0073 and amends ADR-0023, ADR-0024 and ADR-0064:
the Durable class no longer requires a copy outside the estate. The
operator does not want a household holder, drive visits or a holder's
proof.

Removed: carry-household-copy.sh, household-recipients.sh,
household.recipients, household-age.sha256, the household-copy and
household-proof make targets and SENSITIVE_JOBS rows, both runbooks,
HouseholdCopyStale and its tests, and check_sops_rules.py's household
check. The stale-job rules, ScheduledJobNeverRan and ScheduledJobFailed
skip both job names so an older homelab-jobs.prom on trinity stays quiet.
Library sets are encrypted to the sensitive rule's recipients only, and
paperless-documents leaves backup-volumes.sh's sentinel tables. ADR-0064's
nightly copy to oracle stays and is no longer interim. The WD Elements
drive is spare. #455's roadmap entry leaves.

The photographs, documents and budget have no copy outside the house.

Refs #455.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 21, 2026 05:32

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 ADR incorrectly promises a page from the remaining safeguard, although the alert is a warning routed to the default in-house channel rather than the off-network urgent receiver.

1 open issue
What changed in this PR

Retires the household off-estate backup requirement under ADR-0122 while keeping the sensitive tier’s nightly encrypted backups to oracle. The documented trade-off is no backup outside the house for photographs, documents and budget.

Changes:

  • Removes household-copy tooling, make targets, job deadlines and its alert; adds tests that suppress alerts from leftover job metrics.
  • Updates recovery guidance, roadmap gates, hardware status and documentation counts.
  • Includes stacked #1599’s UPS-test waiver and completed DNS-test record; #1599 should merge first.
File Description
systemd/​sensitive/​homelab-smart-state-sensitive.service Removes household-drive commentary only.
systemd/​sensitive/​homelab-backup-library.service Updates backup commentary; unit settings stay unchanged.
stacks/​sensitive/​README.md Documents retained backups and loss of off-estate protection.
stacks/​sensitive/​household.recipients Deletes the household recipient list.
stacks/​sensitive/​household-age.sha256 Deletes checksums for retired recovery tools.
stacks/​observability/​README.md Updates the alert count.
stacks/​observability/​prometheus/​tests/​backup.test.yaml Replaces household-alert tests with retired-job exclusions.
stacks/​observability/​prometheus/​rules/​backup.rules.yaml Removes the household alert and ignores retired jobs.
scripts/​README.md Removes retired tooling from the inventory.
scripts/​medium.sh Updates caller commentary only.
scripts/​install-timers.sh Removes both household deadline rows.
scripts/​household-recipients.sh Deletes the household recipient parser.
scripts/​check_sops_rules.py Removes household-specific recipient checks.
scripts/​carry-household-copy.sh Deletes the household copy and proof workflow.
scripts/​backup-volumes.sh Removes Paperless-export verification markers.
scripts/​backup-offsite.sh Removes obsolete shared-caller commentary only.
scripts/​backup-library.sh Uses sensitive-tier recipients without the household file.
README.md Updates ADR, runbook and alert counts.
Makefile Removes household-copy and household-proof targets.
docs/​security.md Records backup exposure and UPS-test acceptance.
docs/​runbooks/​successor-handover.md Removes retired recovery and alert guidance.
docs/​runbooks/​shut-down-on-the-ups.md Marks live tests as waived by ADR-0121.
docs/​runbooks/​schedule-maintenance.md Documents five sensitive-tier jobs and retired-job exclusions.
docs/​runbooks/​restore-the-sensitive-tier.md Updates available recovery paths.
docs/​runbooks/​open-the-household-copy.md Deletes the holder’s recovery runbook.
docs/​runbooks/​forward-dns-to-adguard.md Records the completed DNS failure test.
docs/​runbooks/​deploy-stack.md Updates the expected Prometheus rule count.
docs/​runbooks/​carry-the-household-copy.md Deletes the household copy runbook.
docs/​runbooks/​build-the-sensitive-tier-host.md Removes the off-estate copy gate.
docs/​roadmap.md Removes household-copy, UPS-test and DNS-test obligations.
docs/​observability.md Updates alert counts and maintenance coverage.
docs/​hardware.md Marks the drive spare and records UPS-test acceptance.
docs/​changelog.md Records decisions and preserves links to deleted guidance.
docs/​architecture.md Updates sensitive-tier backup coverage.
docs/​adr/​0122-drop-the-household-copy.md Records removal of the copy and its requirement.
docs/​adr/​0121-accept-the-ups-shutdown-without-a-live-test.md Records acceptance without live UPS testing.
docs/​adr/​0107-subscribe-trinity-to-the-ups-and-bound-saruman-s-guest-stop.md Adds an ADR-0121 amendment note.
docs/​adr/​0073-carry-the-household-copy-on-a-drive-the-holder-keeps.md Marks the household-copy decision superseded.
docs/​adr/​0064-copy-immichs-library-to-oracle-until-the-off-estate-copy-exists.md Notes that the library backup is no longer interim.
docs/​adr/​0049-shut-down-on-the-ups-from-a-nut-server-on-the-firewall.md Adds the live-test waiver note.
docs/​adr/​0024-hold-a-second-age-recipient-and-prove-each-one-separately.md Removes the second recipient’s household fallback role.
docs/​adr/​0023-keep-the-household-recovery-path-outside-the-estate.md Notes removal of the Durable class’s off-estate requirement.
.sops.yaml Removes household-key commentary; encryption rules stay unchanged.

Review effort: Balanced

…e/drop-household-copy

# Conflicts:
#	docs/hardware.md
#	systemd/sensitive/homelab-smart-state-sensitive.service
@Gerrrt
Gerrrt enabled auto-merge (squash) November 21, 2026 14:19
…copy

# Conflicts:
#	README.md
#	docs/changelog.md
#	docs/roadmap.md
#	docs/security.md
@Gerrrt
Gerrrt merged commit c1ff5b6 into main Nov 21, 2026
9 checks passed
@Gerrrt
Gerrrt deleted the chore/drop-household-copy branch November 21, 2026 14:35
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.

Off-estate copy: ADR-0023's second-person proof

2 participants