The Semaphore runner's key is on 150, live and for rebuilds (SL-37) #30
No reviewers
Labels
No labels
needs-info
needs-triage
ready-for-agent
ready-for-human
review
merge-ready
review
needs-fix
review
needs-human
review
needs-operator
review
needs-review
review
waiting
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
olympus/infra-silo!30
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/SL-37-the-semaphore-runner-s-key-is-on-150-liv"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implements SL-37
Summary
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, sothe file alone would land only on a rebuild; the same bytes were appended to
root'sauthorized_keyson 150 through the Operator's own key, which is thelive half of the ticket.
Evidence
root@10.12.0.150:/root/.ssh/authorized_keysheld two keys,ansible-control-labandhermes.After: three — the third is
ssh-ed25519 … semaphore-runner(wc -l4 → 5, mode
700, a.bak-sl37-<timestamp>copy beside it), and theOperator's own key still logs in (
hostname→silo).same shape as
keys.d/hermes.pub;ssh-keygen -lfreads256 SHA256:9w0p3dNcyVgf5aAyiRUxg1TmsPtVh2RU2aG9MM04klw. The line SC-15installed 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 storedprivate half is not this identity's to read —
bao token capabilities secret/data/services/semaphore/deploy-sshanswersdenyunder[default regular-agent], and the store's own record says theSemaphore 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). Themechanism that plan would show: the only edge from
keys.d/into theconfiguration is
local.operator_pubkeys→user_account { keys }(
container.tf63-64), insideignore_changes = [initialization[0].user_account, pool_id](:92), so theadded file proposes nothing. Operator lines:
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-siloThe 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.
Review started (round 1/5) on
49504bf96e— reading the diff now.olympus/infra-silo · PR #30 · reviewed head
91f30e02e20b81148a32c721549dfe6531adc0e3· round 1/5 (no earlier review on the thread) · verdict: APPROVE, 0 blockers, 1 advisoryRecommendation: merge
The head moved while I read. The dispatch and the Review started comment name
49504bf. The branch now sits at91f30e0:66e8803mergesmainin (SL-36's files aremain's, not this PR's) and91f30e0is the author's own fix to the runbook paragraph. The PR's own change isgit diff 3eeb606 91f30e0: two files,silo/guest/keys.d/semaphore-runner.pubanddocs/runbooks/0001-deploy-and-teardown.md. Everything below was re-driven at91f30e0. The merge was checked for lost edits: the paragraph and the key file both survive it. The one finding I had drafted at49504bf("the whole of the access list" sitting above a paragraph about "two lists") is retired —91f30e0rewords 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:
ssh -F /dev/null -i <the stored key> root@10.12.0.150 hostnameanswersdenyonsecret/data/services/semaphore/deploy-ssh. No private key on this host derives9w0p…klw(enumerated~/.ssh/*: six keys, none match). The half I could reach is the file, below.silo/guest/keys.d/semaphore-runner.pubis 81 bytes, one line, one\n, no CRLF, same shape ashermes.pub;ssh-keygen -lfreadsSHA256: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.planneeds.env, which a regular agent does not fetch (docs/agents/workflow.md§3). The only edge fromkeys.d/iskeys.tf:6-9→container.tf:64(keys = local.operator_pubkeys) insideignore_changes = [initialization[0].user_account, pool_id](container.tf:92). I rankeys.tfand the three.pubfiles in a scratch module (tofu apply, no provider): the list is the three keys, the new one included.root@10.12.0.150with this host's ownhermesidentity, whichkeys.dalready authorises:authorized_keysis 5 lines / 325 bytes,ssh-keygen -lflistsansible-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'swc -l4 → 5, mode700andhostname→siloare as stated.make checkrc=0 at91f30e0(env-check,env-test,key-audit-test,key-mint-test,deploy tests,validateall green); CIpr-checks / check (pull_request)issuccesson91f30e0(run 39). The merge withmainis 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.10.12.0.150is a LAN address already used across the repo; no DDNS name or external IP is added. Clean.SL-37asImplements [SL-37](…). Clean.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") anddocs/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-125now 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 issilo/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_destroyrefuses 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 theREADME.mdsentence, and let:110say "Refreshing the create-time list". It need not be cleared for merge.Closing summary
README.md:57-59Blockers: 0. Advisories: 1, below the volume threshold of three, so
Recommendation: mergefollows from the blockers alone.Named, not charged
container.tf:83-85comment andREADME.mdsentences are counted in ADVISORY 1 only because this PR's paragraph makes them stale; nothing else outside the diff is charged.make plan(needs.env), andmake checkon the squash-merged tree (the merge is clean and the two changed files are a data file and prose;make checkis green on the branch at91f30e0).hostname,ls,wc,cat -Aandssh-keygen -lfoverauthorized_keysand its backup. No private key and no store credential was used.