The Semaphore runner's key is on 150, live and for rebuilds (SL-37) #30

Merged
pit merged 3 commits from hermes/SL-37-the-semaphore-runner-s-key-is-on-150-liv into main 2026-11-10 20:56:30 +00:00
Member

Implements SL-37

Summary

silo/guest/keys.d/semaphore-runner.pub   the Semaphore runner's public half
docs/runbooks/0001-…                     §1 names the live append, and what it leaves behind

The Semaphore runner logs in to 150 as root with the key at
secret/services/semaphore/deploy-ssh. keys.d/ is the create-time list, so
the file alone would land only on a rebuild; the same bytes were appended to
root's authorized_keys on 150 through the Operator's own key, which is the
live half of the ticket.

Evidence

  • Before: root@10.12.0.150:/root/.ssh/authorized_keys held two keys,
    ansible-control-lab and hermes.
    After: three — the third is ssh-ed25519 … semaphore-runner (wc -l
    4 → 5, mode 700, a .bak-sl37-<timestamp> copy beside it), and the
    Operator's own key still logs in (hostname → silo).
  • The bytes: the committed file is 81 bytes, key material only and the
    same shape as keys.d/hermes.pub; ssh-keygen -lf reads
    256 SHA256:9w0p3dNcyVgf5aAyiRUxg1TmsPtVh2RU2aG9MM04klw. The line SC-15
    installed on 142 and the one on 144 carry that same fingerprint with the
    install label semaphore-runner-sc15, and so does the new line on 150.
  • mise exec -- make check → rc=0: env-check: the pin and the map agree.
    / env-test: every case holds. / key-audit-test: every case passed /
    key-mint-test: every case passed / deploy tests: every case passed. /
    Success! The configuration is valid.

Not verified here, and why. The first criterion is
ssh -F /dev/null -i <the stored key> root@10.12.0.150 hostname; the stored
private half is not this identity's to read —
bao token capabilities secret/data/services/semaphore/deploy-ssh answers
deny under [default regular-agent], and the store's own record says the
Semaphore runner alone reads that path. The third, a plan of the Guest half
reading No changes, needs .env (the state pair and the Proxmox token),
which a regular agent does not fetch (docs/agents/workflow.md §3). The
mechanism that plan would show: the only edge from keys.d/ into the
configuration is local.operator_pubkeys → user_account { keys }
(container.tf 63-64), inside
ignore_changes = [initialization[0].user_account, pool_id] (:92), so the
added file proposes nothing. Operator lines:

bao kv get -field=SEMAPHORE_SSH_KEY secret/services/semaphore/deploy-ssh > /tmp/k
chmod 600 /tmp/k
ssh-keygen -y -f /tmp/k | diff - silo/guest/keys.d/semaphore-runner.pub
ssh -F /dev/null -i /tmp/k root@10.12.0.150 hostname
mise exec -- make plan

Merge Danger

Door: two-way

Nothing here is applied: the file is data the Guest half reads at creation, and
the live append is already on 150. That asymmetry is the one thing to know — a
revert takes the file away and leaves the line on the Guest, because no plan
shows it.

Blast Radius: infra-silo

The key grants root on 150 to the Semaphore runner, which is what the silo
deploy needs (CP-39). A rebuilt 150 now keeps it, and a revoke has the same two
halves the commit message names.

Implements [SL-37](https://vikunja.thepit.space/tasks/358) ## Summary ```text silo/guest/keys.d/semaphore-runner.pub the Semaphore runner's public half docs/runbooks/0001-… §1 names the live append, and what it leaves behind ``` The Semaphore runner logs in to 150 as root with the key at `secret/services/semaphore/deploy-ssh`. `keys.d/` is the create-time list, so the file alone would land only on a rebuild; the same bytes were appended to `root`'s `authorized_keys` on 150 through the Operator's own key, which is the live half of the ticket. ## Evidence - **Before:** `root@10.12.0.150:/root/.ssh/authorized_keys` held two keys, `ansible-control-lab` and `hermes`. **After:** three — the third is `ssh-ed25519 … semaphore-runner` (`wc -l` 4 → 5, mode `700`, a `.bak-sl37-<timestamp>` copy beside it), and the Operator's own key still logs in (`hostname` → `silo`). - **The bytes:** the committed file is 81 bytes, key material only and the same shape as `keys.d/hermes.pub`; `ssh-keygen -lf` reads `256 SHA256:9w0p3dNcyVgf5aAyiRUxg1TmsPtVh2RU2aG9MM04klw`. The line SC-15 installed on 142 and the one on 144 carry that same fingerprint with the install label `semaphore-runner-sc15`, and so does the new line on 150. - **`mise exec -- make check` → rc=0:** `env-check: the pin and the map agree.` / `env-test: every case holds.` / `key-audit-test: every case passed` / `key-mint-test: every case passed` / `deploy tests: every case passed.` / `Success! The configuration is valid.` **Not verified here, and why.** The first criterion is `ssh -F /dev/null -i <the stored key> root@10.12.0.150 hostname`; the stored private half is not this identity's to read — `bao token capabilities secret/data/services/semaphore/deploy-ssh` answers `deny` under `[default regular-agent]`, and the store's own record says the Semaphore runner alone reads that path. The third, a plan of the Guest half reading `No changes`, needs `.env` (the state pair and the Proxmox token), which a regular agent does not fetch (`docs/agents/workflow.md` §3). The mechanism that plan would show: the only edge from `keys.d/` into the configuration is `local.operator_pubkeys` → `user_account { keys }` (`container.tf` 63-64), inside `ignore_changes = [initialization[0].user_account, pool_id]` (`:92`), so the added file proposes nothing. Operator lines: ```sh bao kv get -field=SEMAPHORE_SSH_KEY secret/services/semaphore/deploy-ssh > /tmp/k chmod 600 /tmp/k ssh-keygen -y -f /tmp/k | diff - silo/guest/keys.d/semaphore-runner.pub ssh -F /dev/null -i /tmp/k root@10.12.0.150 hostname mise exec -- make plan ``` ## Merge Danger **Door:** two-way Nothing here is applied: the file is data the Guest half reads at creation, and the live append is already on 150. That asymmetry is the one thing to know — a revert takes the file away and leaves the line on the Guest, because no plan shows it. **Blast Radius:** `infra-silo` The key grants root on 150 to the Semaphore runner, which is what the silo deploy needs (CP-39). A rebuilt 150 now keeps it, and a revoke has the same two halves the commit message names.
ticket-dispatch: commit the Semaphore runner's key, and append it on 150 (SL-37)
All checks were successful
pr-checks / check (pull_request) Successful in 29s
49504bf96e
The Semaphore runner logs in to 150 as root with the key at
`secret/services/semaphore/deploy-ssh`, and 150's root account did not accept
it. `keys.d/` is the create-time list, so committing the public half alone
would land on a rebuild rather than on the Guest that exists.

The public half is committed as `silo/guest/keys.d/semaphore-runner.pub`, and
the same bytes were appended to `root`'s `authorized_keys` on 150 through the
Operator's own key: key material only, the install label `semaphore-runner`
aside, fingerprint `SHA256:9w0p3dNcyVgf5aAyiRUxg1TmsPtVh2RU2aG9MM04klw` (the same
key SC-15 put on 142).

The runbook's §1 said a running Guest cannot be granted a key without a
rebuild; it now names the live append and the two lists it leaves behind, with
the revoke wanting the same two halves.
Member

Review started (round 1/5) on 49504bf96e — reading the diff now.

**Review started** (round 1/5) on 49504bf96ee38858ebb4b5e35db07f1d49cffb09 — reading the diff now.
ticket-dispatch: the key-set paragraph names the live list, not a second one (SL-37)
All checks were successful
pr-checks / check (pull_request) Successful in 25s
91f30e02e2
The paragraph added with the key said "the whole of the access list" a dozen
lines above a paragraph that says the Guest's own file is the live one, and
"two lists" read as a second list rather than the same list at two ages. The
one fact a reader of §1 needs is that `keys.d/` is the create-time list and the
Guest's `authorized_keys` is the live one, and that they differ after an
append until the next rebuild.
bot-minos approved these changes 2026-11-10 20:54:16 +00:00
bot-minos left a comment

olympus/infra-silo · PR #30 · reviewed head 91f30e02e20b81148a32c721549dfe6531adc0e3 · round 1/5 (no earlier review on the thread) · verdict: APPROVE, 0 blockers, 1 advisory

Recommendation: merge

The head moved while I read. The dispatch and the Review started comment name 49504bf. The branch now sits at 91f30e0: 66e8803 merges main in (SL-36's files are main's, not this PR's) and 91f30e0 is the author's own fix to the runbook paragraph. The PR's own change is git diff 3eeb606 91f30e0: two files, silo/guest/keys.d/semaphore-runner.pub and docs/runbooks/0001-deploy-and-teardown.md. Everything below was re-driven at 91f30e0. The merge was checked for lost edits: the paragraph and the key file both survive it. The one finding I had drafted at 49504bf ("the whole of the access list" sitting above a paragraph about "two lists") is retired — 91f30e0 rewords both (runbooks/0001…md:103, :120-125).

Spec

Source: SL-37 (Vikunja project 7, task 358, fetched live), linked from the PR body. Acceptance criteria and where each stands:

Criterion Grade Evidence
ssh -F /dev/null -i <the stored key> root@10.12.0.150 hostname answers unverified The stored private half is not this identity's to read; the PR body quotes the deny on secret/data/services/semaphore/deploy-ssh. No private key on this host derives 9w0p…klw (enumerated ~/.ssh/*: six keys, none match). The half I could reach is the file, below.
Committed file matches the stored key's public half byte for byte partly met silo/guest/keys.d/semaphore-runner.pub is 81 bytes, one line, one \n, no CRLF, same shape as hermes.pub; ssh-keygen -lf reads SHA256:9w0p3dNcyVgf5aAyiRUxg1TmsPtVh2RU2aG9MM04klw. That equals the fingerprint of the line on 150 (next row). Against the stored key I did not compare (no read), so "byte for byte" rests on the author's 142/144 fingerprint claim.
A plan of the Guest half reads No changes structurally met, not driven plan needs .env, which a regular agent does not fetch (docs/agents/workflow.md §3). The only edge from keys.d/ is keys.tf:6-9 → container.tf:64 (keys = local.operator_pubkeys) inside ignore_changes = [initialization[0].user_account, pool_id] (container.tf:92). I ran keys.tf and the three .pub files in a scratch module (tofu apply, no provider): the list is the three keys, the new one included.
The live append on 150 (ticket's first "What to build") met Read-only over root@10.12.0.150 with this host's own hermes identity, which keys.d already authorises: authorized_keys is 5 lines / 325 bytes, ssh-keygen -lf lists ansible-control-lab, hermes, semaphore-runner (SHA256:9w0p…klw). The named undo exists: authorized_keys.bak-sl37-20261110T204814Z, 4 lines / 227 bytes, holding the first two keys only. 227 + 98 (the added line) = 325, so it was a pure append. The new line sits after # --- END PVE ---, outside the Proxmox-managed block. The body's wc -l 4 → 5, mode 700 and hostname → silo are as stated.
Commit message / body claims confirmed make check rc=0 at 91f30e0 (env-check, env-test, key-audit-test, key-mint-test, deploy tests, validate all green); CI pr-checks / check (pull_request) is success on 91f30e0 (run 39). The merge with main is clean (git merge-tree, rc=0).

Spec findings: none.

Standards

Standards sources read at the head: AGENTS.md (§Secrets, §Privacy, §Code comments, §Docs, §Pull requests), docs/agents/workflow.md, docs/runbooks/0001-deploy-and-teardown.md. Smell baseline: nothing applies to a data file and one docs paragraph.

  • §Secrets: the file is a public key. The PR carries no private half, token or password. Clean.
  • §Privacy: 10.12.0.150 is a LAN address already used across the repo; no DDNS name or external IP is added. Clean.
  • §Code comments: no code comment added. Clean.
  • §Pull requests: the body names SL-37 as Implements [SL-37](…). Clean.
  • §Docs: no new relative link; the glossary is untouched.

ADVISORY 1 — the rebuild is still stated as the only way a live Guest's list changes. README.md:57-59 ("a Guest that already exists keeps its list until it is rebuilt; the rebuild is the procedure runbook 0001 §1 sets out") and docs/runbooks/0001-deploy-and-teardown.md:110 ("Refreshing an existing Guest's list therefore means re-creating it") were true before this PR. The paragraph this PR adds at :117-125 now documents a second route (append where it runs), so those sentences read as the whole story and the entry page sends a reader to the heavier, state-taking rebuild first. A third site is silo/guest/container.tf:83-85 ("keep their old list until they are rebuilt"). It is one finding with three sites. The failure signal is soft: prevent_destroy refuses a rebuild by name, and the new paragraph is a page away, so a reader is corrected rather than misled. Clearing change, if wanted: add "or has the key appended where it runs (§1)" to the README.md sentence, and let :110 say "Refreshing the create-time list". It need not be cleared for merge.

Closing summary

Axis Findings Worst
Spec 0 none (criteria 1 and 2 are unverified from this host for want of the stored key; criterion 3 is structurally met)
Standards 1 (ADVISORY) ADVISORY 1, the rebuild-only sentences at README.md:57-59

Blockers: 0. Advisories: 1, below the volume threshold of three, so Recommendation: merge follows from the blockers alone.

Named, not charged

  • The pre-existing container.tf:83-85 comment and README.md sentences are counted in ADVISORY 1 only because this PR's paragraph makes them stale; nothing else outside the diff is charged.
  • Not run: make plan (needs .env), and make check on the squash-merged tree (the merge is clean and the two changed files are a data file and prose; make check is green on the branch at 91f30e0).
  • The live read of 150 touched nothing: hostname, ls, wc, cat -A and ssh-keygen -lf over authorized_keys and its backup. No private key and no store credential was used.
<!-- minos review-loop: repo=olympus/infra-silo pr=30 head=91f30e02e20b81148a32c721549dfe6531adc0e3 round=1/5 axes=standards,spec --> **olympus/infra-silo** · PR #30 · reviewed head `91f30e02e20b81148a32c721549dfe6531adc0e3` · round 1/5 (no earlier review on the thread) · verdict: **APPROVE**, 0 blockers, 1 advisory Recommendation: merge **The head moved while I read.** The dispatch and the *Review started* comment name `49504bf`. The branch now sits at `91f30e0`: `66e8803` merges `main` in (SL-36's files are `main`'s, not this PR's) and `91f30e0` is the author's own fix to the runbook paragraph. The PR's own change is `git diff 3eeb606 91f30e0`: two files, `silo/guest/keys.d/semaphore-runner.pub` and `docs/runbooks/0001-deploy-and-teardown.md`. Everything below was re-driven at `91f30e0`. The merge was checked for lost edits: the paragraph and the key file both survive it. The one finding I had drafted at `49504bf` ("the whole of the access list" sitting above a paragraph about "two lists") is retired — `91f30e0` rewords both (`runbooks/0001…md:103`, `:120-125`). ## Spec Source: SL-37 (Vikunja project 7, task 358, fetched live), linked from the PR body. Acceptance criteria and where each stands: | Criterion | Grade | Evidence | |---|---|---| | `ssh -F /dev/null -i <the stored key> root@10.12.0.150 hostname` answers | **unverified** | The stored private half is not this identity's to read; the PR body quotes the `deny` on `secret/data/services/semaphore/deploy-ssh`. No private key on this host derives `9w0p…klw` (enumerated `~/.ssh/*`: six keys, none match). The half I could reach is the file, below. | | Committed file matches the stored key's public half byte for byte | **partly met** | `silo/guest/keys.d/semaphore-runner.pub` is 81 bytes, one line, one `\n`, no CRLF, same shape as `hermes.pub`; `ssh-keygen -lf` reads `SHA256:9w0p3dNcyVgf5aAyiRUxg1TmsPtVh2RU2aG9MM04klw`. That equals the fingerprint of the line on 150 (next row). Against the *stored* key I did not compare (no read), so "byte for byte" rests on the author's 142/144 fingerprint claim. | | A plan of the Guest half reads No changes | **structurally met, not driven** | `plan` needs `.env`, which a regular agent does not fetch (`docs/agents/workflow.md` §3). The only edge from `keys.d/` is `keys.tf:6-9` → `container.tf:64` (`keys = local.operator_pubkeys`) inside `ignore_changes = [initialization[0].user_account, pool_id]` (`container.tf:92`). I ran `keys.tf` and the three `.pub` files in a scratch module (`tofu apply`, no provider): the list is the three keys, the new one included. | | The live append on 150 (ticket's first "What to build") | **met** | Read-only over `root@10.12.0.150` with this host's own `hermes` identity, which `keys.d` already authorises: `authorized_keys` is 5 lines / 325 bytes, `ssh-keygen -lf` lists `ansible-control-lab`, `hermes`, `semaphore-runner` (`SHA256:9w0p…klw`). The named undo exists: `authorized_keys.bak-sl37-20261110T204814Z`, 4 lines / 227 bytes, holding the first two keys only. 227 + 98 (the added line) = 325, so it was a pure append. The new line sits after `# --- END PVE ---`, outside the Proxmox-managed block. The body's `wc -l` 4 → 5, mode `700` and `hostname` → `silo` are as stated. | | Commit message / body claims | **confirmed** | `make check` rc=0 at `91f30e0` (`env-check`, `env-test`, `key-audit-test`, `key-mint-test`, `deploy tests`, `validate` all green); CI `pr-checks / check (pull_request)` is `success` on `91f30e0` (run 39). The merge with `main` is clean (`git merge-tree`, rc=0). | Spec findings: none. ## Standards Standards sources read at the head: `AGENTS.md` (§Secrets, §Privacy, §Code comments, §Docs, §Pull requests), `docs/agents/workflow.md`, `docs/runbooks/0001-deploy-and-teardown.md`. Smell baseline: nothing applies to a data file and one docs paragraph. - §Secrets: the file is a public key. The PR carries no private half, token or password. Clean. - §Privacy: `10.12.0.150` is a LAN address already used across the repo; no DDNS name or external IP is added. Clean. - §Code comments: no code comment added. Clean. - §Pull requests: the body names `SL-37` as `Implements [SL-37](…)`. Clean. - §Docs: no new relative link; the glossary is untouched. **ADVISORY 1 — the rebuild is still stated as the only way a live Guest's list changes.** `README.md:57-59` ("a Guest that already exists keeps its list until it is rebuilt; the rebuild is the procedure runbook 0001 §1 sets out") and `docs/runbooks/0001-deploy-and-teardown.md:110` ("Refreshing an existing Guest's list therefore means re-creating it") were true before this PR. The paragraph this PR adds at `:117-125` now documents a second route (append where it runs), so those sentences read as the whole story and the entry page sends a reader to the heavier, state-taking rebuild first. A third site is `silo/guest/container.tf:83-85` ("keep their old list until they are rebuilt"). It is one finding with three sites. The failure signal is soft: `prevent_destroy` refuses a rebuild by name, and the new paragraph is a page away, so a reader is corrected rather than misled. Clearing change, if wanted: add "or has the key appended where it runs (§1)" to the `README.md` sentence, and let `:110` say "Refreshing the create-time list". It need not be cleared for merge. ## Closing summary | Axis | Findings | Worst | |---|---|---| | Spec | 0 | none (criteria 1 and 2 are unverified from this host for want of the stored key; criterion 3 is structurally met) | | Standards | 1 (ADVISORY) | ADVISORY 1, the rebuild-only sentences at `README.md:57-59` | Blockers: 0. Advisories: 1, below the volume threshold of three, so `Recommendation: merge` follows from the blockers alone. **Named, not charged** - The pre-existing `container.tf:83-85` comment and `README.md` sentences are counted in ADVISORY 1 only because this PR's paragraph makes them stale; nothing else outside the diff is charged. - Not run: `make plan` (needs `.env`), and `make check` on the squash-merged tree (the merge is clean and the two changed files are a data file and prose; `make check` is green on the branch at `91f30e0`). - The live read of 150 touched nothing: `hostname`, `ls`, `wc`, `cat -A` and `ssh-keygen -lf` over `authorized_keys` and its backup. No private key and no store credential was used.
pit merged commit ffdb31deeb into main 2026-11-10 20:56:30 +00:00
pit deleted branch hermes/SL-37-the-semaphore-runner-s-key-is-on-150-liv 2026-11-10 20:56:30 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
olympus/infra-silo!30
No description provided.