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
8 changes: 8 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,14 @@ docstring gives: it is a record, not a claim about now.
reboot metrics stay, checks `systemctl --failed`, and gives the purge for a
Pi built the old way. That purge is still to run on `heimdall`, from the
Mac, since `prometheus` reaches it only on 9100.
- **`successor-handover.md` and `build-the-tier-ca.md` name the alerts on
the sensitive tier's certificates.** Both still said nothing paged on them
until #426 landed, and the handover said a dead step-ca would be found by a
browser a week late. #718 added `TlsAcmeRenewalStalled` (36 hours,
critical) and #426 the warning, `TlsAcmeRenewalLate` (48 hours), for every
`renewal: acme` target. The handover's outage budget is corrected too:
ADR-0037 gives two to seven days after step-ca stops answering, usually
about five, not seven. Found re-checking the `prometheus` audit.

## 2026-11-23

Expand Down
2 changes: 1 addition & 1 deletion docs/runbooks/build-the-tier-ca.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ No certificate step. That is the point of this runbook.
| The intermediate is suspected compromised | On `prometheus`, `make tier-ca ARGS="--mint --force"` mints a new root **and** intermediate — the root changes too, so every device re-trusts. Re-minting only the intermediate beneath the existing root is `step certificate create` against `certificates/tier-ca/` and is not scripted; ADR-0037 leaves it to the day it is needed |
| The root key on `prometheus` is lost | Nothing stops. The intermediate issues until 2036 without it. Before then, a new root: `--mint --force`, step 3 onward, and a re-trust on every household device |
| `STEPCA_PASSWORD` is lost | Both keys are unrecoverable; treat as the row above |
| step-ca is down | Caddy keeps serving each leaf until it expires, at least two days and at most seven after the CA stopped answering. Nothing pages on it yet ([#426](https://github.com/Gerrrt/HomeLab/issues/426)) — `docker ps` on `trinity` is the check until it does |
| step-ca is down | Caddy keeps serving each leaf until it expires, at least two days and at most seven after the CA stopped answering. `TlsAcmeRenewalLate` warns at 48 hours left and `TlsAcmeRenewalStalled` pages at 36, about eight and twenty hours after Caddy should have renewed. Then `docker ps` on `trinity` |

## If something goes wrong

Expand Down
2 changes: 1 addition & 1 deletion docs/runbooks/successor-handover.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ inherits without knowing.
| **The offsite copy of the backup sets goes stale** | 90 days after the last visit that carried them | `OffsiteCopyStale`, routed to the normal alert channel. Before the first visit it is `ScheduledJobNeverRan` naming `offsite-copy` instead, which is the honest state of a copy nobody has made ([`copy-the-backups-offsite.md`](copy-the-backups-offsite.md)) |
| **The CA key backup goes unproven** | 90 days after the last proof, and immediately after a re-mint | `CaKeyBackupUnproven`, routed to the normal alert channel. The proof is a comparison of public keys against a copy on the offline medium, keyed on the key's fingerprint so a re-minted root starts at never ([`back-up-the-ca-key.md`](back-up-the-ca-key.md)) |
| **Grafana's leaf certificate** | 825 days from issue; the APC card's own certificate expires on its own clock | `TlsCertificateExpiringSoon` at 30 days, `TlsCertificateExpiryImminent` at 7 — read off the served handshake by `blackbox-exporter`, not off a file. Let it lapse and `up{job="grafana"}` goes to 0 as well |
| **The sensitive tier's certificates**, once `trinity` exists | Seven days after step-ca last answered Caddy — every leaf there is renewed automatically and lives a week, so the tier stays up for as long as its CA does ([ADR-0037](../adr/0037-give-the-sensitive-tier-its-own-root-and-issue-beneath-it-over-acme.md)) | Nothing pages on it yet: the estate's expiry rules are sized for 825-day leaves and would fire permanently on seven-day ones, so the tier is deliberately outside them until [#426](https://github.com/Gerrrt/HomeLab/issues/426) lands. Until then a dead step-ca is found by a browser refusing the handshake, a week late |
| **The sensitive tier's certificates** on `trinity` | Two to seven days after step-ca stops answering Caddy, usually about five — every leaf there lives a week and is renewed automatically at about 56 hours left, so a leaf near renewal when the CA fails lasts only two more days ([ADR-0037](../adr/0037-give-the-sensitive-tier-its-own-root-and-issue-beneath-it-over-acme.md)) | `TlsAcmeRenewalLate` at 48 hours left and `TlsAcmeRenewalStalled`, critical, at 36, read off the served handshake by `blackbox-exporter` for every target labelled `renewal: acme` (#718 and [#426](https://github.com/Gerrrt/HomeLab/issues/426)). Caddy renews at about 56 hours, so a healthy leaf never reaches either. The day-sized rules above leave these leaves out |
| **The UPS battery pack** | A pack was fitted 2026-08-28 and passed its self-test; packs are consumables and this one is on a biweekly test schedule | `UpsSelfTestFailed` and `UpsBatteryUnproven` key on the self-test result, which is the single honest signal this card emits — every charge, runtime and alarm value it reports was fabricated while the bay was empty. `UpsSelfTestScheduleOff` and `UpsSelfTestStale` watch the test schedule ([#249](https://github.com/Gerrrt/HomeLab/issues/249)). The card's *Last Battery Replacement* holds August 2026, the fit month: it stores a month and year only, and SNMP shows it with a filler day as `08/15/2026` |
| **Mains power to the monitoring path** | Any cut | The rack is on the UPS; the switch carrying `prometheus` and `oracle` is not, so both laptops keep running and go deaf. Stated in [`security.md`](../security.md#threat-model) |
| **Container images going stale** | Continuously, once nobody merges | Dependabot proposes bumps and CI validates them, and convergence deploys a merge within the hour. An unattended estate simply stops receiving updates — nothing alerts on it |
Expand Down