The silo deploy speaks https to Semaphore and pins its CA (THE-106) #40
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!40
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/THE-106-semaphore-https"
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?
Summary
The silo's deploy reaches Semaphore over TLS only, pinned to the CA that
olympus/infra-cockpitcommits for it — the same changeolympus/infra-trackermerged as !64.SEMAPHORE_API_URLdefaults tohttps://10.12.0.143:3000. There is no-kand no http fallback to switch on: a certificate that does not verify is a red job with no request made. A refusal names the scheme alone — a value whose text before://is not a scheme, the shape that carries a userinfo pair, is refused without any of it reaching the job log.The script header stops citing the TR-66 review's STD-2 as why the token crossed the LAN in cleartext. It names what
ci-silo's token may reach and where it is kept (secret/ci/silo/semaphore-api), and points the token's lifetime and re-mint at THE-106's design — the cockpit page it cites mints the token with no expiry and says nothing about replacement.Spec: https://paperclip.thepit.space/THE/issues/THE-106 (its
designdocument carries the four ADR checks and the pinned 2.19.16 behaviour). This repository's own tracker is VikunjaSL-<index>, and this change has noSLtask yet: theTHE-106above is the Paperclip ticket the org-wide change is specified on.Evidence
http://10.12.0.143:3000, and the job's token crossed the LAN in cleartext.mise exec -- make checkexits 0 on this tree, 612oklines and 0FAILlines:env-check2,env-test74,key-audit-test39,key-mint-test194,deploy-test81,semaphore-deploy-test93 assertions, 0 FAILED,deploy-workflow-test53 assertions, 0 FAILED,store-wait-test40,service-key-test36;fmt-checksilent,tofu validateSuccess! The configuration is valid.git archive f4f2d88, pre-change tests: both green); after, 93 and 53 — the 33 added assertions are the TLS ones. Against the pre-change script the new tests are red with 34 FAIL lines, includingthe red names the scheme,and names nothing else of the address,the script says there is no CA certificate,the default address is not httpsand2 of 2 curl calls do not carry CURL_TLS. The stub serves TLS with a throwaway CA the test mints withopenssl, so a refused scheme, a wrong CA, a missing CA and an empty CA each leave it with no request at all.mutants-deploy-script.shon this tree: all nine mutantskilled(20, 5, 4, 30, 1, 4, 20, 2 and 27 FAIL lines), the script restored byte-identical.scripts/semaphore-ca.crtis byte-identical toolympus/infra-cockpit'ssemaphore/service/files/ca.crtonolympus/infra-cockpit'smain(981c986, merged as !36),sha256sum5a62c5816adbd382d4bfce8fe1ccb774f7e10173b391abafb90acf2c516fb13a;openssl verifyof cockpit's committed leaf against it answersOK. The CA readsCA:TRUE, pathlen:0, name-constrained to10.12.0.143/32and127.0.0.1/32, valid to 2036-11-14; the leaf's SANs are the same two addresses, valid to 2029-02-19.wrong version numberred, measured here: against a throwaway plain-http listener on loopback the script's first call endscurl: (35) TLS connect error: … wrong version number, the listener sees one TLS ClientHello and no http request line, and the job is red — the shape this repo will show until cockpit's deploy lands.Merge Danger
Door: two-way for this repository. A revert pull request restores the previous default, and the job's calls follow the code it runs.
Blast Radius: deploy-only.
olympus/infra-cockpit#36merged at 16:19:35Z (981c986), and its deploy (run 123) must be green,make verifyincluded, before this merges. Before that, this repo's own deploy goes red at its first request and applies nothing — the no-fallback property working, not a broken job. This branch has not been pushed, so no CI run is cited here; the numbers above are from local runs on the commit this bundle carries.Waiting — queued behind olympus/workshop#57 (one review run at a time). The review run resumes on its own at Tue 1 Dec, 17:22 (Europe/Madrid); nothing is needed from you. This retry does not count as a review round.
Review started (round 0/5) on
af86311ea1— reading the diff now.olympus/infra-silo#40 · head
af86311· round 1/5 · axes: standards, specThe dispatch numbered this round 0; no review is on the thread yet, so the ledger's
rule (reviews posted + 1) makes this round 1. Spec: paperclip
THE-106and itsdesigndocument, read live. Standards:AGENTS.mdat the head (noCONTRIBUTING.mdin this repo) andolympus/workshopdocs/adr/at6cc25e62(no record governs this change).Recommendation: merge
Standards
A1 · ADVISORY ·
scripts/semaphore-deploy.sh:159, against the new gate at:103-121The gate refuses a scheme it does not know, but an https URL whose authority
carries userinfo is accepted, and the start-failure line then prints
${BASE}verbatim — so a password reaches the job log. Reproduced by hand against a TLS
stub (probe at
cache/scratch/the106/leakprobe.sh, wrong pin forced):The new header (
:95-101) says an address can carry a credential and is "refusedwithout any of it printed", and the suite pins exactly that for the no-scheme
shape (
scripts/tests/semaphore-deploy.test.sh:304). The https+userinfo shape isthe same class and is neither refused nor redacted. Line 159 is not in this diff,
so this is an advisory, not a blocker. One line clears it: refuse a
$BASEwhoseauthority carries
@, beside the scheme test inrequire_tls.Spec
S1 · ADVISORY · PR body, "Evidence"
"The branch has not been pushed, so no CI run is cited here" is false at this head:
the forge carries two green runs on
af86311(#837pr-checks45 s, #838plan18 s), and the combined status reads
successfor both required contexts. Everynumber the body reports reproduces locally, so the claim about behaviour is
unaffected — only that sentence about CI.
Nothing in THE-106 is missing or partial here. Its done-when ("no deploy workflow
sends a Semaphore token over http", "the script headers no longer cite TR-66
STD-2") holds:
grep -rn 'TR-66\|STD-2'over the head answers nothing, theworkflow carries no address of its own, and
:63makes https the default with arefusal for anything else.
Verified
mise exec -- make checkin a worktree ataf86311semaphore-deploy93 assertions 0 FAILED,deploy-workflow53,store-wait40,service-key36,key-mint194,env-test74,key-audit39;tofu validateSuccess!git statusclean)--cacert→ 20 FAIL · drop--proto→ 1 · accepthttp://→ 4 · drop the CA check → 2 · default back to http → 5 · break the default CA path → 3 ·deploy.ymlnaming an http address → 1sha256sumboth5a62c5816adbd382d4bfce8fe1ccb774f7e10173b391abafb90acf2c516fb13a;openssl verifyof cockpit'sserver.crtagainst it →OK;CA:TRUE, pathlen:0, name-constrained to10.12.0.143/32and127.0.0.1/32, notAfter 2036-11-14SEMAPHORE_CA_FILEanywhere indeploy.yml)require_tlsat:178precedesmake_configat:179; the http case'sassert_no_secret_filepins itpr-checks / check (pull_request)success ·plan / stack-plan-check (pull_request_target)success (branch protection read)981c986green in 5m17s, so the server this pin points at is liveCould not verify
10.12.0.143from this host. The TLS behaviour above isdriven against loopback stubs; the "wrong version number" red the body measured
against a plain-http listener was not re-driven here, only read.
main, not from the running guest.Named, not charged
mutants-deploy-script.shis not in this tree. The kills above are my own wave;the body's nine-mutant table stays the author's own tooling and is credited as such.
ci-*tokens) isdeferred to the design's rollout step 4 and recorded in the header (
:36-41).Nothing in this diff mints a token, so there is nothing here to charge.
AGENTS.md§Code comments asks for adocs/page instead of a long comment.The change does both — the header block grows and
docs/deploy.md:31-37carriesthe same explanation — but THE-106 requires the header to stop citing STD-2, so
the header's presence is the ticket's, and its length is the file's existing shape.
.forgejo/workflows/deploy.ymlmoved by four comment lines (:32-35). The fourthat compose a gate did not move: the workflow file (comments only), the required
contexts (
pr-checks / check (pull_request),plan / stack-plan-check (pull_request_target)— unchanged, green), the job name (deploy), and the target(
scripts/semaphore-deploy.sh start). The deploy workflow publishesdeploy / deploy (push), which is not a required context. I read this as a contentchange rather than a gate change; the four are named here so a human can overrule
that reading rather than inherit it.
Summary. Standards: 1 finding (1 advisory, 0 blocker). Spec: 1 finding (1
advisory, 0 blocker). Worst in Standards: the userinfo leak on the failure path
(A1). Worst in Spec: the false "not pushed / no CI" sentence (S1). Two advisories
and no blockers — under three, so the recommendation is merge; both travel as
advice, and neither earns a round trip on its own.