From 1709b451d2a0a8b66d647f360869b5e7b8118f31 Mon Sep 17 00:00:00 2001 From: Gerrrt Date: Sat, 28 Nov 2026 18:07:43 -0800 Subject: [PATCH] docs(sensitive): edit secrets from a worktree, not trinity's deploy checkout converge-sensitive refused on 2026-11-27 and 2026-11-28 at about 05:30 UTC because secrets/sensitive.sops.yaml was mid-edit in the deployment checkout, and ScheduledJobFailed fired each time. Say how to run make secrets-edit from a worktree instead, in the converge runbook and the stack README. Co-Authored-By: Claude Opus 5.5 --- docs/changelog.md | 11 +++++++++++ docs/runbooks/converge-the-host.md | 18 ++++++++++++++++++ stacks/sensitive/README.md | 7 ++++++- 3 files changed, 35 insertions(+), 1 deletion(-) diff --git a/docs/changelog.md b/docs/changelog.md index ba38594c..9515f610 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -19,6 +19,17 @@ docstring gives: it is a record, not a claim about now. ## 2026-11-28 +- **`trinity`: `converge-sensitive` refused twice because a secrets edit was + in progress in its deployment checkout.** At 05:26 UTC on 2026-11-27 and + 05:30 on 2026-11-28 the only dirty file was `secrets/sensitive.sops.yaml`. + Both were Glance edits made with `make secrets-edit` in `~/code/Gerrrt/HomeLab` + that were waiting for their pull requests (#1779, #1796). Each cleared on the + next run, after the merge and a pull, but `ScheduledJobFailed` fired for + each. `converge-the-host.md` (*The tree is dirty*) and + `stacks/sensitive/README.md` now say to edit secrets from a worktree. Running + `sops -d` from outside the tree confirmed that the age key does not depend + on which tree it runs in. + - **`prometheus`: converge refused from 15:27 UTC because the deployment checkout was left on a branch.** The screenshot re-shoot was committed on `gerrrt/update-screenshots` in `robo`'s tree. It merged as #1803 at 15:44, diff --git a/docs/runbooks/converge-the-host.md b/docs/runbooks/converge-the-host.md index 7a9314ff..4793c27f 100644 --- a/docs/runbooks/converge-the-host.md +++ b/docs/runbooks/converge-the-host.md @@ -387,6 +387,24 @@ To keep it, get it into the repository the normal way — a branch, a pull request, CI. To discard it, `git checkout -- .` in that directory, and delete any untracked files the status listed. +On `trinity` the usual dirty file is `secrets/sensitive.sops.yaml`, because +`make secrets-edit STACK=sensitive` was run in the deployment checkout and the +change is waiting for its pull request. `converge-sensitive` refused like this +at about 05:30 UTC on 2026-11-27 and again on 2026-11-28, both times during a +Glance secrets edit (#1779, #1796). Each one cleared within the hour, once the +pull request merged and the checkout was pulled back onto `main`, but +`ScheduledJobFailed` fired for each. Edit secrets from a worktree instead. The +age key is per user rather than per tree, so `make secrets-edit` works the same +from one: + +```bash +git -C ~/code/Gerrrt/HomeLab worktree add -b gerrrt/some-secret ../secret-edit origin/main +cd ~/code/Gerrrt/secret-edit && make secrets-edit STACK=sensitive +``` + +Commit, push and merge from the worktree. Converge then deploys the merged +secret on its next run, and the deployment checkout never goes dirty. + ### The tree is on another branch ```text diff --git a/stacks/sensitive/README.md b/stacks/sensitive/README.md index 0e3fe41b..5dff3dc3 100644 --- a/stacks/sensitive/README.md +++ b/stacks/sensitive/README.md @@ -159,7 +159,12 @@ export/ untracked: where document_exporter writes. Likewise Secrets are `secrets/sensitive.sops.yaml`, encrypted to this stack's own rule in `.sops.yaml` — `trinity`'s key opens this file and nothing else of the -estate's (`secrets/sensitive.example.yaml` says why, and lists every key). The one file under +estate's (`secrets/sensitive.example.yaml` says why, and lists every key). +Run `make secrets-edit STACK=sensitive` from a `git worktree`, not from the +deployment checkout. An edit waiting for its pull request leaves that checkout +dirty, and the hourly `converge-sensitive` refuses until it is clean +([`converge-the-host.md`](../../docs/runbooks/converge-the-host.md), *The tree +is dirty*). The one file under `certificates/` this stack reads is `tier-ca.pem`, the tier's root certificate, written by `make tier-ca ARGS="--install …"` from the bundle minted on the monitoring host; every leaf is obtained from step-ca at run