Semaphore listens only over TLS, and everything on 143 and 145 pins its CA (THE-106) #36
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
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
olympus/infra-cockpit!36
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/THE-106-semaphore-tls"
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?
paperclip:THE-106
Semaphore on 143 serves https natively and nothing else, and every client in this repository verifies it against a pinned CA. THE-106's first half; the tracker and forge halves are their own pull requests,
olympus/infra-tracker#64andolympus/infra-forge#107, and have already merged.What changes
tls.enabledin the renderedconfig.json, with no redirect port: a plain request is answered400 Client sent an HTTP request to an HTTPS server(measured against the pinned build). A redirect is a cleartext socket a client with a header file would reach first.semaphore/service/files/(ECDSA P-256, the CA name-constrained to the two addresses the listener answers on). The server's private key comes fromsecret/services/semaphore/tls/server-keythrough.env, and the role refuses an empty key, or a key that is not this certificate's, before it renders a config. No run mints either half: a new CA would strand every deploy.semaphore_web_rootand the watchdog are https;runner-default.ymlcarriesca_path; the runner'sconfig.jsoncarriesserver_ca_cert_file;semaphore-idle.shcalls over https with the CA; the projects Stack gets system roots plus the CA throughSSL_CERT_FILE;make verifyasserts that plainhttpis refused as well as that https verifies.Verified
make checkexits 0 on this tree (it had been cut short mid-run before this one). The role's own offline rehearsal against the exact pinned build (community 2.19.16, digest matches the pin) is recorded on the ticket: https verifies with the pinned CA,httpanswers 400, an unverifiable certificate is red with no request sent, a leaf outside the name constraint is refused,expires_atis enforced, the runner registers only with its CA file, and the real projects Stack applies 40 resources through the real provider with the trust bundle and readsNo changeson the second plan.Nothing ran on 143 or 145: the deploy takes its
predeploy-*snapshots of both first.Order
Merged ahead of this one, 2026-12-01:
olympus/infra-secrets#60(15:49Z,f96a05b): cockpit's CI login readssecret/services/semaphore/tls/server-key. Its deploy is green (run 161, 15:52Z). The key is seeded at that path (v1) and its public half is the committed certificate's.olympus/infra-tracker#64andolympus/infra-forge#107(15:13Z): their deploys speak https only, so against a listener that is still cleartext they are red at the first request and apply nothing (tracker run 145 and forge run 205, both red by 15:15Z). They can go green only once this deploy has landed.olympus/infra-secretsandolympus/infra-silostill call Semaphore overhttp://(scripts/semaphore-deploy.shdefaults tohttp://10.12.0.143:3000at theirmain). Their https changes are not in yet, so once this deploy lands their deploys go red against the https-only listener until those merge.This deploy restarts Semaphore and re-points the runner, so it is also the first live proof. Its idle wait cannot read the task pool this once: 143 still speaks cleartext, the https login gets no answer, and
scripts/semaphore-idle.shproceeds at once (Semaphore did not answer at https://10.12.0.143:3000; proceeding regardless., run against 143 on 2026-12-01). Merge while Semaphore has no task running or queued. Rollback is a revert pull request.The design, the four ADR checks and the full measurement table are on the ticket as its
designdocument (THE-106).Review started (round 1/5) on
1e212d2f2f— reading the diff now.olympus/infra-cockpit #36 · reviewed head
1e212d2f2f7f4cc73cd6cd08f56e403bae3d2963· round 1/5 · verdict: fixRecommendation: fix
Spec source: Paperclip
THE-106(title and description, read live 2026-11-17T13:07Z) and itsdesigndocument, "Design: native TLS on Semaphore (143), pinned by every client" (updated 2026-11-17T11:41Z). The body declares this PR to be the ticket's cockpit half, and the tracker/forge halves to be their own PRs; that split is taken as the contract.Standards sources:
AGENTS.md§Rules/§Docs,docs/environment.md,docs/deploy.md,.env.example,env.map. This repo keeps nodocs/adr/and defers toolympus/workshop, so the store shape is judged againstolympus/infra-secretsdocs/store-layout.md,docs/env-fetch.mdandbao/policies/ci-cockpit.hclatorigin/main(71c5f89).Standards
S1 — BLOCKER —
semaphore/service/roles/semaphore/tasks/main.yml:242-252: the key/certificate fingerprint task can never succeed, so every deploy stops before the config is rendered.The key side pipes
openssl pkey -in …/server.key— which writes a private key — intoopenssl pkey -pubin, which reads a public key. Driven verbatim throughansible-playbookagainst a throwaway P-256 pair:set -o pipefail(line 245) turns that into a task failure, so the play stops there: generate the config from the template never runs, therestart semaphorehandler never runs, and the deploy ends with the certificate, the CA and the key written while Semaphore keeps serving its old cleartext config. With the missing flag (openssl pkey -in … -pubout -outform DER) both sides come out equal on the same pair (a2d89ece…on each), so the guard's intent is right — the fix is one flag. Even withoutpipefailthe comparison could not pass: the empty-input hashe3b0c442…never equals the certificate's real fingerprint, so a correct pair would be refused.The suite cannot see it:
semaphore/service/tests/env-vars.ymlimports onlytasks/secrets.ymland renders the two templates, and this block lives intasks/main.yml.make checkis rc 0 over 276oklines (reproduced below) over a deploy that cannot run, which is why the body's "the role refuses … a key that is not this certificate's" reads as verified and is not.Smallest clearing change: add
-puboutto the key-sideopenssl pkey, and add a case that drives the mismatch branch — a key from another pair reds, a matching pair passes.S2 — BLOCKER —
env.map:46: the map reads a store path the change's own design and its own error text say does not exist.The row is
secret/services/semaphore/tls SEMAPHORE_TLS_KEY. THE-106's design says the server key is atsecret/services/semaphore/tls/server-key— "(cockpit's deploy reads it, one policy line ininfra-secrets)" — and its ADR-0007 row reads "Two new paths, one credential each" (…/tls/server-keyand…/tls/ca-key). The role's refusal message (semaphore/service/roles/semaphore/tasks/main.yml:275) and.env.example:72both namesecret/services/semaphore/tls/server-key. The store's own naming for this shape issecret/hermes/tls/{ca-key,server-key}, as paths (infra-secretsdocs/store-layout.md:264), anddocs/env-fetch.md:201states the rule the map follows: "a path is named the way the layout names it".bao/policies/ci-cockpit.hcl:10adds that semaphore paths are "named path by path, never as a prefix", so…/tlsis not in cockpit's readable set whichever of the two is seeded. The fetch is all-or-nothing: a 404 or a 403 there refuses the wholemake env, and the deploy has no environment.Smallest clearing change: make the row
secret/services/semaphore/tls/server-key SEMAPHORE_TLS_KEY, so the map, the design,.env.exampleand the refusal message name one object.A1 — ADVISORY —
docs/deploy.md:119anddocs/deploy.md:185: the deploy's own page still states the two addresses this change moves to https."the link in that mail is built from
web_host—http://10.12.0.143:3000" and "The plan runs with-refresh=falseagainsthttp://semaphore.invalid/api". The tree now sets both tohttps://(semaphore/service/group_vars/all/vars.yml:9,Makefile:495).AGENTS.md§Docs makesdocs/deploy.mdthe documentation of the deploy and of the plan check, so a reader following it uses an address the listener answers 400 for. The code is right and the page is stale — an advisory, not a blocker.A2 — ADVISORY —
docs/environment.md:63-77: the table that says what this repo's environment holds gains no row forSEMAPHORE_TLS_KEY.AGENTS.md§Docs: "docs/environment.md— where every environment name comes from"..env.example:79andenv.map:46add the name; the table ends at line 77 without it, so the page is no longer that list, and the new name is the only secret in the change with no line saying who may read it.A3 — ADVISORY —
semaphore/service/roles/semaphore/tasks/secrets.yml:124: the refusal message cites a documentation section that does not exist."minted together (
docs/deploy.md, The certificate)" —docs/deploy.mdcarries no The certificate section (its headings: Before the merge / After the merge / The failure mail / The Semaphore projects / The watchdog / The runner / Upgrading Semaphore / The Operator's hand resolution of a conflict / Rolling back / Reading a failure). An operator meets this text exactly when the key is missing, which is the moment the procedure it points at is needed.A4 — ADVISORY —
scripts/semaphore-idle.sh:40-41: a missing CA exits 0 with "proceeding regardless", against the design's "a missing CA file is a red".The header still documents the by-hand call as
scripts/semaphore-idle.sh <base url>, and that invocation now exits 0 without reading the pool at all.make semaphore-idlepasses the committed CA, so the deploy path is sound; the by-hand path silently reports success.Named, not charged:
.env.example:76-77says "No listener in this estate serves plain http", which is false for the state backends (semaphore/projects/backend.tf:18dialshttp://10.12.0.150:9000); it is a justification for the guard, and the guard is right regardless.semaphore/service/tests/ha/setup.sh:50,84still rehearses onhttp://, untouched by this diff and rendering its own config rather than the role's.Spec
No missing requirement within this PR's declared scope.
tls.enabledwithcert_file/key_fileand no redirect port, plus the four client paths the design enumerates (the watchdog, the runner'sconnection.server_ca_cert_file,scripts/semaphore-idle.sh, the projects Stack'sSSL_CERT_FILE) andmake verify's plain-http refusal.semaphore-deploy.shand deploy workflow: declared as sibling PRs in the body, and this repository carries nosemaphore-deploy.sh.ci-*tokens: recorded in the design (365-day hard stop at mint, the 180-day rotation class, re-mint as rollout step 4).predeploy-*snapshots are the stated break-glass.The committed pair is what the body says it is:
openssl x509reads ECDSA P-256 on both, the CA ispathlen:0and name-constrained to10.12.0.143/32and127.0.0.1/32, the leaf's SAN is the same two addresses, the leaf is valid 2026-11-17 → 2029-02-19 and the CA → 2036-11-14, andopenssl verify -CAfile ca.crt server.crtanswersserver.crt: OK.One claimed behaviour is refuted — "the role refuses … a key that is not this certificate's" — and it is charged once, as S1 above, not recounted here.
Verified
1e212d2f…resolved fromrefs/pull/36/headon the host and equal to the dispatch's SHA; base459eca79…, merge-base identical, one commit in the range.mise exec -- make check→ rc 0, 276oklines, no FAIL — the body's claim reproduced, and it does not reach the fingerprint block (S1).ansible-playbookon a throwaway P-256 pair (rc 1, play failed) and through the shell withpipefail(rc 1); the corrected shape produces matching hashes on both sides.openssl x509 -textandopenssl verifyon the two committed certificates.grepforhttp://across the changed stacks;grep -nline cites taken from the head worktree, not from hunk headers.secret/services/semaphore/tls*does not exist yet — the design seeds it in rollout step 0. The private half of the pair and the seeded path's shape are therefore taken from the design, not from the store.Summary
Standards: 6 findings — 2 blockers (S1, S2), 4 advisories. Spec: 0 findings; the single refuted claim is counted on the Standards axis.
Worst per axis — Standards: S1, the TLS key guard fails on every run, so the change cannot deploy and the claim it was added to prove is both untested and false. Spec: none; the change covers the scope the body declares, and the certificate pair matches the design.
Loop stopped — the fix dispatch produced no outcome for 20 minutes. Nothing else happens on this PR until its state label changes.
Waiting — queued behind olympus/infra-silo#39 (one review run at a time). The review run resumes on its own at Tue 1 Dec, 14:39 (Europe/Madrid); nothing is needed from you. This retry does not count as a review round.
Review started (round 0/5) on
5a1a37eea4— reading the diff now.olympus/infra-cockpit #36 · reviewed head
5a1a37eea4afec411797bc35c67c94099dc13ef6· round 2/5 · verdict: fixRecommendation: fix
Spec source: Paperclip
THE-106(title and description, read live 2026-12-01T13:57Z) and itsdesigndocument, "Design: native TLS on Semaphore (143), pinned by every client" (updated 2026-11-17T11:41Z); the ticket's comments were read live too (GET /api/issues/70de29f9…/comments→ 200, entries=4; newest 2026-11-17T14:19Z). The body declares this PR to be the ticket's cockpit half and the tracker/forge halves (their #64, #107) to be separate; that split is the contract.Standards sources:
AGENTS.md§Rules/§Docs (read at the head worktree),docs/deploy.md,docs/environment.md,.env.example,env.map; the store shape is judged againstolympus/infra-secretsbao/policies/ci-cockpit.hclatorigin/main(77b1268).This is the thread's second review — review 730 (round 1/5) sits
stale: trueat1e212d2, and the branch has moved twice since. Both round-1 blockers are re-driven at the head below; the rest of this round reads the deltagit diff 1e212d2..5a1a37e(9 files), then re-checks each carried advisory at the head.Standards
Both round-1 blockers are cleared
S1 — cleared at
5a1a37e—semaphore/service/roles/semaphore/tasks/tls-key-check.yml:19. The key side now carries-pubout(openssl pkey -in …/server.key -pubout -outform DER), so both sides hash the same public key. The check was also lifted out ofmain.ymlinto its own file (main.yml:244imports it) so a test can reach it:semaphore/service/tests/tls-pair.ymlbuilds a matching pair and a mismatched one, andscripts/tests/run.sh:715-725runs it (dispatched at:738). The case is real, not green by construction: putting the old command back (-puboutremoved) turns it red —ansible-playbook tests/tls-pair.yml→ rc 2,failed=1, and the mismatch assertion is what fails. File restored byte-identical afterwards.S2 — cleaned at
5a1a37e—env.map:48. The row now readssecret/services/semaphore/tls/server-key SEMAPHORE_TLS_KEY, and every executable-side reference names the same path:.env.example:72,roles/semaphore/defaults/main.yml:59,roles/semaphore/tasks/secrets.yml:121,tls-key-check.yml:47. That matches THE-106's design ("Server key atsecret/services/semaphore/tls/server-key") and ADR-0007's one-credential-per-path.scripts/env.sh:421-422reads a row as path + field names (.data.data[$k]), so the row is coherent as written: the credential at that path must carry a field namedSEMAPHORE_TLS_KEY. Note the branch history:0033cafmoved these references to the prefix path…/tls, and5a1a37emoved them back to…/tls/server-key; the head agrees with the design, and the two findings below are what the flip left behind.A1 — retired —
docs/deploy.md:119and:185. Both now readhttps://(the mail link'sweb_hostand the plan check'shttps://semaphore.invalid/api), so the page no longer sends a reader to an address the listener answers 400 for. No stalehttp://10.12.0.143orhttp://semaphore.invalidremains anywhere in the tree.Open advisories
A2 — ADVISORY —
docs/environment.md:63-77. The tableAGENTS.md:50calls "where every environment name comes from" ends atSEMAPHORE_RUNNER_REGISTRATION_TOKEN; the change addsSEMAPHORE_TLS_KEYto.env.example:81andenv.map:48and the page gains no row for it. It is the only secret in the change with no line saying where it comes from or who may read it. Carried from round 1, still true at the head.A3 — ADVISORY —
semaphore/service/roles/semaphore/tasks/secrets.yml:125. The refusal message says the pair is "minted together (docs/deploy.md, The certificate)".docs/deploy.mdat the head has no such section — its headings are Before the merge / After the merge / The failure mail / The Semaphore projects / The watchdog / The runner / Upgrading Semaphore / The Operator's hand resolution of a conflict / Rolling back / Reading a failure. An operator meets this text exactly when the key is missing, which is when the procedure it points at is needed. Carried.A4 — ADVISORY —
scripts/semaphore-idle.sh:41. With noSEMAPHORE_CA_FILEthe script prints "no CA certificate … proceeding regardless" and exits 0. Reproduced at the head:./scripts/semaphore-idle.sh https://127.0.0.1:3000→ rc 0, having read no pool. The design's client rule says "a missing CA file is a red", so design and script disagree;make semaphore-idlepasses the committed CA (Makefile:571), so the deploy path is sound and only the by-hand call reports success. Carried — decide which of the two governs and say so in one place.N1 — ADVISORY —
semaphore/service/group_vars/semaphore/vars.yml:38. The comment still says the key is "fromsecret/services/semaphore/tls", the prefix path5a1a37eremoved fromenv.map:48; every other reference in the tree now names…/tls/server-key. The variable itself (:44) is right. One line.N2 — ADVISORY (outside the diff, but created by the path move) — THE-106. The newest ticket comment (2026-11-17T14:19Z) tells the Operator the store must hold "
SEMAPHORE_TLS_KEYatsecret/services/semaphore/tls"; the 13:13Z comment says the same. The head reads…/tls/server-key(env.map:48), and the PR body says the same. Rollout step 0/1 is the Operator seeding from that comment, andmake envis all-or-nothing, so a seed at the comment's path refuses the whole fetch and the deploy has no environment. It fails closed, not silently, which is why this is advice and not a blocker — but it is the one act that precedes the merge, so it is worth one line on the ticket naming the path the head reads. Thedocs/environment.mdrow A2 asks for carries the same fact and settles both.Spec
No missing requirement within this PR's declared scope.
tls.enabledwithcert_file/key_fileand nohttp_redirectport (templates/config.json.j2:8-12), the four client paths the design enumerates (watchdogsemaphore-watchdog.sh.j2:20-22, runnersemaphore_runner/templates/config.json.j2:9-12,scripts/semaphore-idle.sh:36-42, the projects Stack via theSSL_CERT_FILEbundle atMakefile:56-64), andmake verify's plain-http refusal (Makefile:533-538).semaphore-deploy.shand deploy workflow): declared as #64 and #107 in the body; this repository carries nosemaphore-deploy.sh(find: none) and no workflow that touches a Semaphore token.ci-*tokens, or why not): recorded in the design — 365-day hard stop at mint, the 180-day rotation class, re-mint as rollout step 4.grep -rn 'TR-66\|STD-2'over the head tree answers nothing.predeploy-*snapshots are the stated break-glass. No escalation class is present: no destroy or replace (in-place config and a restart), no tier-1 service in the charter's list, no ADR, branch-protection or workflow edit.The committed pair is what the body says it is (re-checked at the head):
openssl verify -CAfile ca.crt server.crt→server.crt: OK; the CA is name-constrained to10.12.0.143/32and127.0.0.1/32, the leaf's SAN is the same two addresses, the leaf runs to 2029-02-19 and the CA to 2036-11-14.Verified
5a1a37efetched fromrefs/pull/36/headand equal to the dispatch's SHA; base459eca79; the branch is two stacked commits on1e212d2(0033caf,5a1a37e), so the delta reviewed isgit diff 1e212d2..5a1a37e.mise exec -- make check→ rc 0, 279oklines, 0FAIL, the newthe tls pair check refuses a mismatchcases among them. The body's claim reproduced.-puboutremoved fromtls-key-check.yml:19→tests/tls-pair.ymlrc 2,failed=1; restored,git statusclean.SSL_CERT_FILEbundle shape fromMakefile:56-64reproduced by hand: system roots plussemaphore/service/files/ca.crt→ 151 certificates,openssl verify -CAfile <bundle> server.crt→ OK.5a1a37eread from the forge:pr-checks / check,plan / guest-plan-check,plan / projects-plan-check,plan / runner-guest-plan-checkallsuccess.scripts/semaphore-idle.sh:http://…→ rc 2 with the scheme refusal;https://…with no CA → rc 0 (A4).grep -rl 'PRIVATE KEY'over the head tree → none; the committed material is the certificate and CA only.infra-secretsbao/policies/ci-cockpit.hclatorigin/main(77b1268) names semaphore paths one by one and carries no…/tls/server-keyyet — the grant the body says lands before this PR; not in this branch.Could not verify
make verifywere not exercised.successis the gate's answer that no destroy or replace was planned.Summary
Standards: 5 findings — 0 blockers, 5 advisories (three carried: A2, A3, A4; two new: N1, N2). Both round-1 blockers and one advisory (A1) retired. Spec: 0 findings.
Worst per axis — Standards: N2, a seeding instruction on the ticket that names a path the head does not read; it stops the deploy at
make envand fails closed. Spec: none.The recommendation turns on the count, not on the weight: five counted advisories is past the third-advisory trip, and none of them blocks on its own. One batched polishing round clears all five — a row in
docs/environment.md, one sentence on THE-106, and three one-line edits (vars.yml:38, the citation atsecrets.yml:125, the CA exit atsemaphore-idle.sh:41). Nothing in the pair check, the config, the map or the client paths needs to move again.Waiting — queued behind olympus/infra-tracker#64 (one fix run at a time). The fix run resumes on its own at Tue 1 Dec, 15:00 (Europe/Madrid); nothing is needed from you. This retry does not count as a review round.
Acknowledged (round 0/5) — fixing now; what changed and how I verified it follows.
Fix pushed — head
4cec71bfa967d0cc1eb83dccec9c7652e249c56fonhermes/THE-106-semaphore-tls, one commit over the reviewed head5a1a37e(base459eca79, six files,+58 −19). Round 2 carried 0 blockers and 5 advisories; four are fixed in the repository and the fifth is named below with the one act still outstanding.docs/environment.mdhas no row forSEMAPHORE_TLS_KEYsecret/services/semaphore/tls/server-key, the role's destination and mode (/opt/semaphore/tls/server.key, 0640root:semaphore), the empty-key and wrong-key refusals, the committed pair, a pointer to the new section, and — in thewhocolumn —both, qualified by theinfra-secretsgrant that lands before the deploy4cec71bdocs/deploy.mdsection that does not exist## The certificate: https and no redirect port, the committed ECDSA P-256 pair with its name constraint and both expiry dates, the clients that pin the CA, the key's store path and mode, the fingerprint refusal, and the rotation procedure. The citation is left as it stood because the section it names is now there4cec71bexit 2, before the first request.make semaphore-idlestill passes the committed CA, so the deploy path is unchanged and only a by-hand call can reach the refusal4cec71bvars.yml:38names the prefix pathsecret/services/semaphore/tls/server-key4cec71bOne correction rides along with A3, inside the message A3 is about: it put the committed certificate at
semaphore/tls/server.crt, and the file issemaphore/service/files/server.crt. The citation resolves now, and so does the path in the same paragraph.N2, and what is left
The ticket's 2026-11-17T14:19Z comment tells the Operator to seed
SEMAPHORE_TLS_KEYatsecret/services/semaphore/tls, and rollout step 0/1 is an Operator seeding from it.docs/environment.mdnow carries the path the head reads — which is what the A2 row was for — but the ticket comment itself is a Paperclip write, and this session holds no Paperclip credential: that instance authenticates a board session cookie (Better Auth), and this profile carries no key for it. The write is not available to me. Paste-ready line, if it helps:Until that comment is corrected, an Operator seeding from the thread writes a path
make envdoes not read, and the all-or-nothing fetch refuses the whole environment. That is the one item left, and it is why the label isreview/needs-operatorrather thanreview/needs-review.Verified
make checkon an export of the pushed tree (git archive HEADinto a fresh directory, thenmise trust .), with the credential names unset, per the ticket's credential-free criterion:279 is the count you measured at
5a1a37e, and that is expected rather than a case gone missing: the idle script has no case in the suite, and this round adds none — the finding asked for a decision and one place to state it, not a new seam. The behaviour itself, run by hand:bash -n scripts/semaphore-idle.shis clean, and thehttp://scheme refusal still answersrc=2. Prose widths measured withprose-widths.pyagainst each file's own baseline:docs/deploy.mdcap 82, widest line of the new section 81;docs/environment.mdcap 82, 0 over.Commit statuses at
4cec71b, all four contextssuccess:pr-checks / check (pull_request)in 48s,plan / guest-plan-check,plan / projects-plan-checkandplan / runner-guest-plan-check(pull_request_target) in 18–20s.Not done, and why
.env.example's "No listener in this estate serves plain http" (false for the state backends) andtests/ha/setup.sh's ownhttp://rehearsal. Both are outside this finding set, and the second renders its own config rather than the role's; they belong in a ticket of their own rather than this round.make verifyremain the deploy's own evidence.Operator — taking over: bot-efesto handed it over — read its newest comment on the PR.
Operator report — head
4cec71bf, 2026-12-01.What I found. Review 753 (round 2/5) left 0 blockers and 5 advisories. bot-efesto's fix commit
4cec71bcloses four of them — A2 (docs/environment.mdgains theSEMAPHORE_TLS_KEYrow), A3 (docs/deploy.mdgains The certificate, and the refusal's path is corrected inside it), A4 (the idle script refuses withexit 2and no CA, and says the committed CA is whatmakepasses), N1 (vars.ymlnames…/tls/server-key) — and named the fifth, N2, as its hand-over: THE-106's 13:10Z and 14:19Z comments tell the Operator to seedsecret/services/semaphore/tls, while the head reads…/tls/server-key.What I verified on this host (worktree at
4cec71b; nothing pushed to this branch):mise exec -- make checkrc=0, 279ok, 0FAILscripts/semaphore-idle.shwithSEMAPHORE_CA_FILEunsetrc=2— "no CA certificate at<unset>… nothing this reads could be verified"http://…rc=2— the scheme refusalrc=0— "did not answer … proceeding regardless", the deploy path unchangedenv.map:48andscripts/env.sh:421-422secret/services/semaphore/tls/server-key SEMAPHORE_TLS_KEY; the fetch reads.data.data[SEMAPHORE_TLS_KEY]from that pathgit grep -l 'PRIVATE KEY'docs/deploy.mdheadings## The certificateexists, so A3's citation resolvesNothing ran against 143 or 145; the live listener, the runner's re-point and
make verifyremain the deploy's own evidence.What I could not do. N2 is a write on the Paperclip card, and this session's Paperclip credential is refused without a heartbeat run:
POST /api/issues/70de29f9…/commentsanswered403 cross_issue_influence_run_context_required. The card itself is readable —THE-106,in_review, four comments — so the finding is confirmed, not inherited: the seed instruction and the head disagree. Posting the correction is Pedro's act, and it is on the task below.What I changed.
olympus/infra-secrets#60— the one policy line THE-106's design names as rollout step 1:secret/data/services/semaphore/tls/server-key, read-only, beside the other named Semaphore paths, plus the two pages that carry the readable set (docs/store-layout.md,docs/store-identity.md).mise exec -- make checkthere →rc=0. It is labelledreview/needs-review, and it merges before this PR.paperclip:THE-106line, the ticket link made absolute (it was/THE/issues/THE-106, which resolves to a 404 on this host), and the Order paragraph now names #60 instead of an unnamed grant.CP-50(https://vikunja.thepit.space/tasks/369) for the store write and the ticket correction — labelready-for-human, assignedpit— and set this PR toreview/needs-human.Left as it stands. The two items review 753 named and did not charge:
.env.example's "No listener in this estate serves plain http" (false for the state backends) andtests/ha/setup.sh's ownhttp://rehearsal. Both are outside this finding set, as the fix said; they belong in a ticket of their own.Next. CP-50 corrects the ticket and seeds
…/tls/server-keyand…/tls/ca-key; #60 merges before this one; then this PR's state label flips and a fresh round reads4cec71b, which no review has read yet.Waiting on: https://vikunja.thepit.space/tasks/369
Answer in — https://vikunja.thepit.space/tasks/369 is resolved. The operator picks it up from here.
Resumed by hand:
review/needs-humanwas set at 14:44:26Z, 13 s before the comment carrying itsWaiting on:line, so the loop never recorded the wait and its sweeper could not see the task close.What the answer left in place:
secret/services/semaphore/tls/server-keyholdsSEMAPHORE_TLS_KEY(v1) andsecret/services/semaphore/tls/ca-keyholdsSEMAPHORE_TLS_CA_KEY(v1), written ashermes, each byte-identical to its file and matching the certificates committed at4cec71b(the leaf verifies against the CA).tr -d '\n'would have left the role writing a keyopensslrefuses.f96a05b) and deployed; the liveci-cockpitpolicy readssecret/data/services/semaphore/tls/server-key.Operator — taking over: review/needs-operator was set by pit — read the thread.
Review started (round 1/5) on
4cec71bfa9— reading the diff now.Operator report — head
4cec71bf, 2026-12-01. Re-armed: round 1/5 is reading4cec71b(comment 6757, 16:10:52Z).Found. Nothing is left on the branch. Review 753 (round 2) left 0 blockers and 5 advisories;
4cec71bfixed A2, A3, A4 and N1. N2 (THE-106's seed path) was the one act outside the repository, and it is done: the path correction on THE-106 (15:15Z, then the corrected table at 15:54Z), CP-50 closed (15:49Z),infra-secrets#60merged (15:49Z) and deployed (run 161, green 15:52Z). No review had read4cec71byet, so what was left was a round, not a commit.Changed
## Orderstill said tracker and forge land after this PR and #60 lands before it. They merged at 15:13Z, #60 at 15:49Z. Both now say so, and## Ordercarries the two merge hazards belowPATCHthen re-read:cmpequal, 2491 → 3641 bytes; head and labels unchangedreview/needs-operator→review/needs-review(re-arm 1 of 3)Review started (round 1/5) on 4cec71bf…24 s laterNo commit, no companion PR, no Vikunja task, no merge.
Verified on this host (worktree at
4cec71bf; nothing pushed)make check, credential names unset, throughmise execrc=0, 279ok, 0FAILhermes(admin-agent,operator):…/tls/server-keyand…/tls/ca-keySEMAPHORE_TLS_KEY,SEMAPHORE_TLS_CA_KEY), v1, 241 bytes and 5 line breaks, PEM header and footer presentb2d7459c6701f9b7…=server.crt's; CAece2bd1bd64c3323…=ca.crt's;openssl verify -CAfile ca.crt server.crt→ OKci-cockpitpolicy…/tls/server-keyread block;ca-keynamed only in a comment; nosemaphore/*ortls/*prefix grantenv.sh's ownjqandshell_quote→.env→ sourced as the Makefile does → the role's owncopytask (line asserted identical tomain.yml:234)server.keybyte-identical, mode 0640,openssl pkeyparses it; the oldtr -d '\n'form writes 237 bytes andopensslrefuses itsemaphore-idle: Semaphore did not answer at https://10.12.0.143:3000; proceeding regardless.rc=0http://…:3000/api/ping→ 200;https://…with the CA →curl: (35) … wrong version number4cec71b: all four contextssuccess; #60f96a05b,deploy / deploy (push)success; tracker6e043ec(run 145) and forgee390409(run 205):failureThe store reads piped each key into
openssl pkey -pubout | sha256sum; no key reached stdout, argv or disk. The scripts sit in this host's scratch and are not committed.Rulings
docs/deploy.mddoes not name the CA key's path. CP-50 says the rotation section does;git grep -E 'ca-key|SEMAPHORE_TLS_CA_KEY'over the head finds nothing. Nobody charged it, so it rides as a follow-up: one paragraph after "Rotation is both halves…", "The CA's key isSEMAPHORE_TLS_CA_KEYatsecret/services/semaphore/tls/ca-key, seeded by the Operator and read by no run. It issues a new leaf under the same CA, so a leaf that is expiring is renewed without touchingca.crtor any client's pinned copy.".env.example's "No listener in this estate serves plain http", andtests/ha/setup.sh's ownhttp://rehearsal.Could not verify: the cockpit CI login's own read of the path (
make env ACTOR=cockpitruns only in the deploy job, so I read the live policy text instead); the listener, the runner's re-point andmake verify, which stay the deploy's evidence.For the merge (Pedro's)
infra-secretsandinfra-silostill default tohttp://10.12.0.143:3000. Once this deploy lands their deploys go red until their https changes merge, and forinfra-secretsthat includes deploys that carry a policy.Next. Round 1/5 on
4cec71bis running:review/merge-readyleaves the merge to you,review/needs-fixdispatches the fixer, and anything for me comes back asreview/needs-operator. Nothing waits on you, so there is noWaiting on:line.olympus/infra-cockpit #36 · reviewed head
4cec71bfa967d0cc1eb83dccec9c7652e249c56f· round 1/5 · verdict: mergeRecommendation: merge
Spec source: Paperclip
THE-106(title and description, read live 2026-12-01T16:10Z) and itsdesigndocument, "Design: native TLS on Semaphore (143), pinned by every client" (rev 1, updated 2026-11-17T11:41Z). The body declares this PR the ticket's cockpit half, with the tracker and forge halves as #64 and #107; that split is the contract.Standards sources:
AGENTS.md§Rules/§Docs,docs/deploy.md,docs/environment.md,.env.example,env.map; the store shape is judged againstolympus/infra-secretsorigin/mainf96a05b(bao/policies/ci-cockpit.hcl,bao/policies/operator.hcl,docs/store-layout.md).Round note: the dispatch counts this as round 1/5. The thread already carries bot-minos 730 (
1e212d2) and 753 (5a1a37e), bothREQUEST_CHANGESand both nowstale. 753's findings are re-driven at the head first, then the delta5a1a37e..4cec71b(6 files,+58 −19) is read.Prior findings, re-driven at
4cec71bSEMAPHORE_TLS_KEYrow indocs/environment.mddocs/environment.md:78docs/deploy.md:115carries## The certificate;roles/semaphore/tasks/secrets.yml:119-126names it and the committed certificate's pathscripts/semaphore-idle.sh:43-47,exit 2vars.ymlnames the prefix pathgroup_vars/semaphore/vars.yml:39…/tls/server-key/SEMAPHORE_TLS_KEYStandards
S1 — ADVISORY —
docs/deploy.md:136-138: the new page promises the mismatch refusal leaves no unit that will not start, and the role's task order does not deliver that.The sentence is "…a key replaced without its certificate stops there, not at a unit that will not start." At the head the store key is written to
/opt/semaphore/tls/server.keybytasks/main.yml:232-240before the check is imported at:242-244, so a refused pair leaves the mismatched key on the Guest beside the certificate, and the abort meansflush_handlersat:316never runs. The running process keeps serving on the pair it loaded, but the next restart — a reboot, a package step, a later deploy — is a unit that will not start. It fails closed and thepredeploy-*snapshots are the stated break-glass, so this is advice, not a block. Smallest clearing change: fingerprint the store value before writing it (pipesemaphore_tls_keytoopenssl pkey -pubouton stdin and compare it with the committed certificate), or writeserver.key.new, check, then rename — and either way make the sentence match.Named, not charged (carried from rounds 1–2, untouched by this fix):
.env.example:78still says "No listener in this estate serves plain http", whilesemaphore/projects/backend.tf:18dialshttp://10.12.0.150:9000. The guard the sentence justifies is right; the sentence is not. Earlier rounds routed it to a ticket of its own and I leave that routing alone.Spec
No missing requirement within this PR's declared scope.
templates/config.json.j2:8-12(tls.enabledwithcert_file/key_file, no redirect port), the five client paths the design enumerates (watchdogsemaphore-watchdog.sh.j2:23, runnersemaphore_runner/templates/config.json.j2:12,scripts/semaphore-idle.sh:43-48, the projects Stack'sSSL_CERT_FILEbundle atMakefile:65-81,make verify's plain-http refusal atMakefile:532-535).semaphore-deploy.shand deploy workflow: declared as #64 and #107 in the body; this repository carries no such script.ci-*tokens: recorded in the design — 365-day hard stop at mint, the 180-day rotation class, re-mint as rollout step 4.grep -rn 'TR-66\|STD-2'over the head answers nothing.The committed pair is what the body says it is:
openssl verify -CAfile ca.crt server.crt→server.crt: OK; ECDSA P-256 on both halves; the CA ispathlen:0and name-constrained to10.12.0.143/32and127.0.0.1/32; the leaf's SAN is the same two addresses; leaf to 2029-02-19, CA to 2036-11-14;grep -rl 'PRIVATE KEY'over the head tree → none.Verified
mise exec -- make checkat the head → rc 0, 279oklines, 0FAIL,tofu fmtclean; the two new cases are in the run ("role refuses a missing tls key", "the tls pair check refuses a mismatch").-puboutremoved fromtls-key-check.yml:19→ansible-playbook tests/tls-pair.ymlrc 2,failed=1, and it reds on the matching pair — exactly round-1's S1 failure. Restored byte-identical (sha256ce34add9…),git statusclean.scripts/semaphore-idle.sh: no CA → rc 2 naming the committed CA;http://…→ rc 2; CA present and nothing listening → rc 0 "proceeding regardless"; no URL → rc 2;bash -nclean.make prodreaches it through the Target, which passesTLS_CA(Makefile:572).env.map:48,.env.example:72,vars.yml:39,secrets.yml:121and the docs all name…/tls/server-key.infra-secretsorigin/mainf96a05b:bao/policies/ci-cockpit.hcl:50grantssecret/data/services/semaphore/tls/server-keyread, andoperator.hclgrantssecret/data/*— so the unprefixed row is readable by both actors the page names.4cec71b:pr-checks / check,plan / guest-plan-check,plan / projects-plan-check,plan / runner-guest-plan-checkallsuccess.Could not verify
make verifyand the idle wait remain the deploy's own evidence.Merge-time conditions, not findings
infra-secretsandinfra-silodeploys until their own https changes land (theirmainstill callshttp://10.12.0.143:3000). Disclosed in the body and sequenced in the design; that is "no fallback" working, not a defect in this change.Summary
Standards: 1 finding — 0 blockers, 1 advisory (S1), plus one carried observation left uncharged. Spec: 0 findings.
Worst per axis — Standards: S1, a documentation sentence that promises more than the role's task order delivers; it fails closed and costs one restart's availability in the worst case. Spec: none.
No blocker stands, so the recommendation is merge; the advisory travels as advice and does not need another round.
Operator addendum — round 1/5 on
4cec71bf· review 762 · APPROVED, 0 blockers, 1 advisory · labelreview/merge-ready.The four parts of the gate on the head: a live
APPROVEDreview whosecommit_idis4cec71bfa967d0cc1eb83dccec9c7652e249c56f(762,official: true,dismissed: false; 730 and 753 both nowdismissed: true); the four contextssuccessat that sha (pr-checks / check,plan / guest-plan-check,plan / projects-plan-check,plan / runner-guest-plan-check);mergeable: true;review/merge-ready.The advisory, recorded not pushed. S1:
docs/deploy.md:136-138says a refused pair stops "not at a unit that will not start", and the role writesserver.keyattasks/main.yml:232-240before it runs the check at:242-244, so a mismatch leaves the key on the Guest and the next restart is the unit that will not start. It fails closed, and thepredeploy-*snapshots are the break-glass. I did not push a fix: a new commit drops this head's approval, and the reviewer's own summary says the advisory travels as advice and does not need another round. It rides as a follow-up — fingerprint the key before writing it, or stageserver.key.newand rename after the check, then make the sentence match.Merge time is unchanged from the body: merge while Semaphore has no task running or queued (this once the idle wait reads nothing), and expect tracker and forge to stay red until this deploy lands.
Pedro owns the merge. If his read turns S1 into a condition, say so here and it is one push plus a re-arm.