Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .sops.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,6 @@ creation_rules:
# second's recipient (ADR-0024, #294) was added by #835, after the tier had
# held real data on one key for days. scripts/check_sops_rules.py now fails
# if this file, or any whose key guards data, opens with fewer than two.
#
# The household holder's key never goes here (ADR-0073): it would open the
# tier's passwords as well as the household's copy. It goes in
# stacks/sensitive/household.recipients, and scripts/check_sops_rules.py
# fails if it ever appears in any rule.
- path_regex: secrets/sensitive(\..+)?\.sops\.ya?ml$
age: >-
age1cpdxl6p4synccrwaaeh308n4g8rww9tv9znv32laprnk3kdpm95satjtsw,
Expand Down
50 changes: 2 additions & 48 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@ backup-library: ## On trinity: archive Immich's library off its USB disk, encryp
@# backup-firewall gives for FW_KEEP; two, because every set is the whole
@# library and oracle's root volume is the limit. ARGS=--prove hashes
@# every original in the newest set against immich-db's checksums.
@# Off-host, NOT off-estate: ADR-0064 is the interim, #455 the answer.
@# Off-host, NOT off-house: ADR-0064, and ADR-0122 says there is no other.
./scripts/backup-library.sh $(ARGS)

.PHONY: verify-backups
Expand All @@ -950,9 +950,7 @@ verify-backups: ## Re-verify every retained set of every kind: volume, NAS and w
@# STACK=sensitive is trinity's half, and what
@# homelab-verify-backups-sensitive.timer runs (#856): the tier's volume
@# sets and Immich's library sets (ADR-0064), and no NAS or wiki set,
@# which trinity never holds. Not backups/paperless-documents/ either:
@# household-copy re-makes that set on every visit and nothing else reads
@# it (#942, carry-the-household-copy.md §4). Both scripts' --verify-only also has oracle
@# which trinity never holds. Both scripts' --verify-only also has oracle
@# hash every archive it holds against the MANIFEST here, so oracle's
@# copies are re-verified by the same run, and nothing is decrypted there.
@rc=0; \
Expand Down Expand Up @@ -997,50 +995,6 @@ backup-offsite: ## Copy the newest set of each kind to the offline medium and pr
-- ./scripts/backup-offsite.sh "$(DEST)"; \
fi

.PHONY: household-copy
household-copy: ## On trinity: carry the household's photographs and documents to the holder's drive (DEST=/path/to/the/drive)
@# ADR-0073: the copy ADR-0023 requires, on the drive the household holder
@# keeps at their own address. backup-offsite's shape for the same reason:
@# a deadline and no timer, recorded as household-copy only for a copy of
@# record, with HouseholdCopyStale at ninety days. Two guards before the
@# wrapper, so that neither a forgotten DEST nor a recipients file with no
@# household key is recorded as a FAILED copy: the first is a typo and the
@# second is a decision nobody has taken yet. ARGS=--rehearse writes the
@# same copy without a holder and records nothing; --list, --verify-only and
@# --prune look at or tidy the drive without resetting the deadline.
@[[ -n "$(DEST)" ]] || { \
printf '\033[0;31merror:\033[0m DEST is required\n' >&2; \
printf 'Mount the drive, then: make household-copy DEST=/path/to/the/drive\n' >&2; \
printf 'See docs/runbooks/carry-the-household-copy.md\n' >&2; \
exit 2; \
}
@if [[ -n "$(ARGS)" ]]; then \
./scripts/carry-household-copy.sh "$(DEST)" $(ARGS); \
else \
./scripts/household-recipients.sh --has-holder || { \
printf '\033[0;31merror:\033[0m stacks/sensitive/household.recipients has no household key yet\n' >&2; \
printf 'The copy of record needs the holder (ADR-0073). Rehearse instead: make household-copy DEST=$(DEST) ARGS=--rehearse\n' >&2; \
exit 2; \
}; \
./scripts/run-scheduled.sh --job household-copy --lock backups \
-- ./scripts/carry-household-copy.sh "$(DEST)"; \
fi

.PHONY: household-proof
household-proof: ## On trinity: record the holder's own proof, from the code they read out (CODE=1234-5678-9012)
@# ADR-0023's second condition, made checkable: the holder opened
@# PROOF/proof.txt.age on their own device, with their own key and without
@# the operator, and read the code back. Checked unwrapped first, so a
@# misheard digit is a retry and not a FAILED household-proof; recorded
@# only on a match. Due yearly, beside ADR-0011's drill.
@[[ -n "$(CODE)" ]] || { \
printf '\033[0;31merror:\033[0m CODE is required: the twelve digits the holder read from PROOF/proof.txt.age\n' >&2; \
printf 'See docs/runbooks/open-the-household-copy.md\n' >&2; \
exit 2; \
}
@./scripts/carry-household-copy.sh --check-code "$(CODE)"
@./scripts/run-scheduled.sh --job household-proof -- ./scripts/carry-household-copy.sh --prove-code "$(CODE)"

.PHONY: restore
restore: ## Restore the stack's volumes from a backup set (ARGS="--from <stamp>")
@# Deliberately a separate script from `backup`. One script that both writes
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ documents for different readers.
can't run an agent (firewall, switch, UPS, iLO). One agent config, deployed
identically everywhere. [How](docs/architecture.md#observability-data-flow)
- **Dashboards and alerting as code.** 8 provisioned dashboards, 156 panels, and
183 alert rules — 162 metric-based in Prometheus, 21 log-based in Loki — sharing
182 alert rules — 161 metric-based in Prometheus, 21 log-based in Loki — sharing
one Alertmanager routing tree. No dashboard exists only in a database.
- **Secrets encrypted in-repo with SOPS + age.** Per-device credentials,
decrypted at deploy time into gitignored paths, with `git log` showing which
Expand Down Expand Up @@ -136,8 +136,8 @@ documents for different readers.
at all. Every pinned digest is also scanned weekly for fixable HIGH and
CRITICAL CVEs, and each image with findings has an open issue until a scan
finds it clean.
- **Documented decisions and runbooks.** 121 ADRs covering what was chosen
and what was rejected — including the costs accepted knowingly; 55
- **Documented decisions and runbooks.** 122 ADRs covering what was chosen
and what was rejected — including the costs accepted knowingly; 53
runbooks for the operations that are easy to get wrong at 1am, one of which
is the handover page a successor reads first. Every critical alert links to
one.
Expand Down Expand Up @@ -207,7 +207,7 @@ inbound passes may still reach it. Data flow and the maintained Mermaid topology
.
├── stacks/
│ ├── observability/ # the estate's stack on prometheus — ten services
│ │ ├── prometheus/ # config, file_sd targets, 162 alert rules
│ │ ├── prometheus/ # config, file_sd targets, 161 alert rules
│ │ ├── alertmanager/ # routing and inhibition
│ │ ├── loki/ # single-binary config + 21 LogQL rules
│ │ ├── alloy/ # the agent config directory, shipped to every host
Expand Down Expand Up @@ -236,9 +236,9 @@ inbound passes may still reach it. Data flow and the maintained Mermaid topology
│ ├── architecture.md network.md hardware.md
│ ├── observability.md security.md roadmap.md changelog.md
│ ├── diagrams/ # the network diagram (SVG) and its predecessors
│ ├── adr/ # 121 ADRs — architecture decision records
│ ├── adr/ # 122 ADRs — architecture decision records
│ ├── exercises/ # purple-team exercise records — see its README
│ └── runbooks/ # 55 runbooks; successor-handover.md is the front door
│ └── runbooks/ # 53 runbooks; successor-handover.md is the front door
└── Makefile # make help
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
**Status:** Accepted · 2026-09

> [!NOTE]
> **No copy outside the estate, 2026-11-21.**
> [ADR-0122](0122-drop-the-household-copy.md) amends this record. The
> **Durable** class no longer requires a copy outside the estate, and the
> household copy that [#455](https://github.com/Gerrrt/HomeLab/issues/455) and
> ADR-0073 built is removed. Immich, Paperless-ngx and Actual have no copy
> outside the house. The other classes are unchanged. The table is not edited.
>
> **Actual is Durable, 2026-09-29.** The household's budget joins the tier
> in the class of Immich and Paperless-ngx, and holds no real data before the
> off-estate copy exists, for the same reason. Every client keeps a copy of
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
**Status:** Accepted · 2026-09

> [!NOTE]
> **No household role, 2026-11-21.**
> [ADR-0122](0122-drop-the-household-copy.md) removes
> `stacks/sensitive/household.recipients`, so the second recipient is no
> longer the household copy's fallback. Its place on the `sensitive` rule is
> unchanged.
>
> **No proof deadline, 2026-11-20.**
> [ADR-0120](0120-drop-the-age-key-proof-deadline.md) removes part 3's
> ninety-day deadline and `SecretsKeyBackupUnproven`. Proving a copy is
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ satisfy [ADR-0023](0023-keep-the-household-recovery-path-outside-the-estate.md),
and it amends nothing in it.

> [!NOTE]
> **Not interim any more, 2026-11-21.**
> [ADR-0122](0122-drop-the-household-copy.md) drops the off-estate copy and
> [#455](https://github.com/Gerrrt/HomeLab/issues/455) with it. This copy to
> `oracle` is not superseded and stays as the library's copy off the host.
> New sets are encrypted to the sensitive rule's recipients only, not to the
> household's keys.
>
> **The sets open with the household's keys too, 2026-10-01.**
> [ADR-0073](0073-carry-the-household-copy-on-a-drive-the-holder-keeps.md)
> encrypts every library set to `stacks/sensitive/household.recipients` as
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
# ADR-0073: Carry the household's copy on a drive the holder keeps

**Status:** Accepted · 2026-10 · settles the first of
[ADR-0023](0023-keep-the-household-recovery-path-outside-the-estate.md)'s two
conditions for [#455](https://github.com/Gerrrt/HomeLab/issues/455). The
second, the proof from the other person's device, is a person's to run, and
this record says how it is recorded, not that it has happened.
**Status:** Superseded · 2026-11 · by
[ADR-0122](0122-drop-the-household-copy.md) · accepted 2026-10

> [!NOTE]
> Wholly superseded: [ADR-0122](0122-drop-the-household-copy.md) drops the
> household copy and the requirement for it. The scripts, the recipients
> file, the jobs and `HouseholdCopyStale` described here are removed. The text
> here is left as written, per ADR-0001 and ADR-0115.
>
> As accepted, this record settled the first of
> [ADR-0023](0023-keep-the-household-recovery-path-outside-the-estate.md)'s two
> conditions for [#455](https://github.com/Gerrrt/HomeLab/issues/455).

## Context

Expand Down
89 changes: 89 additions & 0 deletions docs/adr/0122-drop-the-household-copy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# ADR-0122: Drop the household copy

**Status:** Accepted · 2026-11 · supersedes
[ADR-0073](0073-carry-the-household-copy-on-a-drive-the-holder-keeps.md);
amends
[ADR-0023](0023-keep-the-household-recovery-path-outside-the-estate.md),
[ADR-0024](0024-hold-a-second-age-recipient-and-prove-each-one-separately.md)
and
[ADR-0064](0064-copy-immichs-library-to-oracle-until-the-off-estate-copy-exists.md)

## Context

[ADR-0023](0023-keep-the-household-recovery-path-outside-the-estate.md)
classes Immich and Paperless-ngx as **Durable**, and Actual joined them on
2026-09-29 ([ADR-0062](0062-add-actual-to-the-sensitive-tier.md)). Each was to
have an encrypted copy outside the estate, with visible staleness, opened once
from another person's device. Issue
[#455](https://github.com/Gerrrt/HomeLab/issues/455) was that copy.
[ADR-0073](0073-carry-the-household-copy-on-a-drive-the-holder-keeps.md)
built it: a WD Elements drive kept by a household holder at their own
address, sets encrypted at the source to `stacks/sensitive/household.recipients`,
`make household-copy` every ninety days, `make household-proof` once a year,
and `HouseholdCopyStale` watching both. [ADR-0024](0024-hold-a-second-age-recipient-and-prove-each-one-separately.md)'s
second recipient was in that file as the fallback.

No holder was ever chosen. The drive held a rehearsal and nothing else, both
deadline jobs sat in `ScheduledJobNeverRan` from the day they were declared,
and the library has been copied nightly to `oracle` under
[ADR-0064](0064-copy-immichs-library-to-oracle-until-the-off-estate-copy-exists.md)
since 2026-09-29.

On 2026-11-21 the operator said: "I don't want it and I want the requirement
removed." They do not want a household holder, visits to a drive at another
address, or a holder's proof. A requirement nobody intends to meet is a
standing alert and a gate in the roadmap that never clears.

## Decision

**The household copy is dropped, and so is the requirement for it.**

- **ADR-0073 is superseded.** `scripts/carry-household-copy.sh`,
`scripts/household-recipients.sh`, `stacks/sensitive/household.recipients`,
`stacks/sensitive/household-age.sha256`, the `household-copy` and
`household-proof` Makefile targets and their two runbooks are deleted.
- **The jobs and the alert go.** `household-copy` and `household-proof`
leave `SENSITIVE_JOBS` in `scripts/install-timers.sh`, and
`HouseholdCopyStale` leaves `backup.rules.yaml` with its tests.
`ScheduledJobStale`, `ScheduledJobStaleCritical`, `ScheduledJobNeverRan` and
`ScheduledJobFailed` skip both names, so a `trinity` whose
`homelab-jobs.prom` predates this stays quiet until `make install-timers`
rewrites it. [ADR-0120](0120-drop-the-age-key-proof-deadline.md) did the
same for the age-key proof.
- **ADR-0023 is amended.** No copy outside the estate is required for the
**Durable** class. Immich, Paperless-ngx and Actual may be down and should
not be lost, and what stands between them and loss is the host, the
nightly sets and the copies on `oracle`. The rest of ADR-0023 stands:
Vaultwarden's **Independent** class, Home Assistant's **Fail-safe** class,
and keeping step-ca and Caddy off every household recovery step.
- **ADR-0064's copy stays, and is no longer interim.** The nightly
encrypted library set to `oracle` is the library's copy off the host. It is
not waiting for #455, and nothing supersedes it.
- **ADR-0024's second recipient loses its household role.** It was the
fallback key in `household.recipients`. That file is gone. The recipient
stays on the `sensitive` rule for ADR-0024's own reasons.
- **Library sets are encrypted to the sensitive rule's recipients only.**
`backup-library.sh` no longer adds the household file's keys.
`check_sops_rules.py` loses its household check; its other checks are
unchanged, and so is every rule in `.sops.yaml`.
- **The drive is spare.** The WD Elements bought for this is not used for
anything ([`hardware.md`](../hardware.md)).

## Consequences

- **The photographs, documents and budget have no copy outside the house.**
They are on `trinity` and, encrypted, on `oracle`, in the same room and on
the same power. A fire, flood or theft that takes the rack loses them. The
operator accepts that.
- **The Paperless export form has no carrier.** `paperless-documents` was an
archive name for the drive's sets alone, and it leaves
`backup-volumes.sh`'s sentinel tables. Paperless's volume sets are
unchanged.
- **`scripts/medium.sh` has one caller again**, `backup-offsite.sh`. It
keeps the arguments it was given for two, because they cost nothing.
- **The estate's offsite copy is unchanged.**
[ADR-0048](0048-carry-the-estates-backup-sets-with-the-second-recipient.md)'s
`offsite-copy` and `OffsiteCopyStale` are a separate decision about a
separate medium.
- **Bringing the copy back is a new decision**, and the deleted tooling is in
this repository's history if it is wanted.
Loading