installer 2.0.0: key-based release check, claims from the signed payload only (#114) #117

Closed
venus wants to merge 3 commits from venus/114-installer-2 into main
Member

Refs #114 (step 2 of the build order in c3129). Installer 2.0.0: the release signature is checked against host00's signer key (signer-keys.pub) with node:crypto, and every claim (image, repo=, ref=v, digest) is read from the signed simple-signing payload only, never from the .sig manifest annotations (T9). Sigstore leaves the shipped package. The floor and its downgrade notice are unchanged. The installer pulls as martha-reader (token from ~/.config/forge/martha-reader.token) and refuses without it (F5). The registry and image locations live in installer/package.json only.

Not in this PR: pin_the_installer, release.yml, installer.yml and the dry run move in step 3. It lands after the fleet signer change (step 1).

Refs #114 (step 2 of the build order in c3129). Installer 2.0.0: the release signature is checked against host00's signer key (signer-keys.pub) with node:crypto, and every claim (image, repo=, ref=v<version>, digest) is read from the signed simple-signing payload only, never from the .sig manifest annotations (T9). Sigstore leaves the shipped package. The floor and its downgrade notice are unchanged. The installer pulls as martha-reader (token from ~/.config/forge/martha-reader.token) and refuses without it (F5). The registry and image locations live in installer/package.json only. Not in this PR: pin_the_installer, release.yml, installer.yml and the dry run move in step 3. It lands after the fleet signer change (step 1).
The forge has no OIDC issuer Fulcio accepts, so the keyless check can never pass for a release made off GitHub.
Installer 2.0.0 verifies cosign's key-based signature with node:crypto against signer-keys.pub (the fleet signer's
public key) and reads the image, repo=, ref=v<version> and the digest from the signed simple-signing payload alone,
never from the .sig manifest's unsigned annotations (T9). Sigstore leaves the shipped package; the version floor and
its downgrade notice are unchanged.

The release image and installer stay private in macula-io: the installer pulls as the read-only martha-reader
account, with its token from ~/.config/forge/martha-reader.token, and refuses with no token there (F5). The token
service is the one the registry's own challenge names, same origin only.

The registry and image locations live in installer/package.json "martha" alone. pin_the_installer and the
workflows are untouched here; they move in the release.yml / installer.yml port.

Refs #114
installer 2.0.0: an empty reader token file is refused by name, held by a test (#114)
Some checks failed
CI / gate coverage (pull_request) Has been skipped
dependency advisories / node in . (pull_request) Successful in 12s
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (pull_request) Successful in 13s
dependency advisories / node in installer (pull_request) Successful in 13s
dependency advisories / node in . (container) (pull_request) Has been skipped
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (container) (pull_request) Has been skipped
dependency advisories / node in installer (container) (pull_request) Has been skipped
dependency advisories / advisories (pull_request) Successful in 0s
c4 model / c4-model-1 (pull_request) Successful in 6s
c4 model / c4-model (pull_request) Successful in 0s
CI / links resolve (pull_request) Successful in 6s
CI / structural floor (pull_request) Successful in 29s
CI / no import cycle (pull_request) Successful in 29s
CI / Martha's names are its own (pull_request) Successful in 32s
CI / the host drift check bites (pull_request) Successful in 1m16s
CI / the posted text check bites (pull_request) Successful in 15s
CI / the engine drift check bites (pull_request) Successful in 32s
CI / the ring reaches the owner on the live run's tmux (pull_request) Successful in 15s
CI / workflows are valid (pull_request) Successful in 13s
CI / installer (pull_request) Successful in 2m16s
CI / nothing private (pull_request) Has been skipped
CI / no test the base passed goes missing (pull_request) Failing after 38s
CI / the pictures change only with the version (pull_request) Successful in 22s
CI / no literal restates a defined value (pull_request) Successful in 1m1s
CI / every check runs in a job (pull_request) Successful in 14s
CI / every job has a timeout (pull_request) Successful in 15s
standalone / standalone Martha runs alone (ubuntu-latest) (pull_request) Successful in 31s
standalone / the pinned Node is nodejs.org's (pull_request) Successful in 16s
CI / the relay loads in the recorded host (pull_request) Has been cancelled
CI / the clean-install proof removes its container (pull_request) Has been cancelled
1339664112
Refs #114
installer 2.0.0: name the tests the move off sigstore drops (#114)
All checks were successful
CI / the relay loads in the recorded host (pull_request) Successful in 15m32s
dependency advisories / node in . (pull_request) Successful in 14s
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (pull_request) Successful in 16s
dependency advisories / node in . (container) (pull_request) Has been skipped
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (container) (pull_request) Has been skipped
dependency advisories / advisories (pull_request) Successful in 0s
c4 model / c4-model-1 (pull_request) Successful in 4s
c4 model / c4-model (pull_request) Successful in 0s
dependency advisories / node in installer (container) (pull_request) Has been skipped
dependency advisories / node in installer (pull_request) Successful in 10s
CI / links resolve (pull_request) Successful in 6s
CI / gate coverage (pull_request) Has been skipped
CI / structural floor (pull_request) Successful in 32s
CI / Martha's names are its own (pull_request) Successful in 30s
CI / the clean-install proof removes its container (pull_request) Successful in 16m50s
CI / no import cycle (pull_request) Successful in 30s
CI / the host drift check bites (pull_request) Successful in 1m16s
CI / the posted text check bites (pull_request) Successful in 15s
CI / the engine drift check bites (pull_request) Successful in 33s
CI / the ring reaches the owner on the live run's tmux (pull_request) Successful in 12s
CI / workflows are valid (pull_request) Successful in 14s
CI / nothing private (pull_request) Has been skipped
CI / no test the base passed goes missing (pull_request) Successful in 33s
CI / the pictures change only with the version (pull_request) Successful in 17s
CI / no literal restates a defined value (pull_request) Successful in 1m7s
CI / every check runs in a job (pull_request) Successful in 14s
CI / every job has a timeout (pull_request) Successful in 14s
CI / installer (pull_request) Successful in 3m47s
standalone / standalone Martha runs alone (ubuntu-latest) (pull_request) Successful in 32s
standalone / the pinned Node is nodejs.org's (pull_request) Successful in 45s
cb7dcb08ec
Installer 2.0.0 checks host00's cosign key with node:crypto, so the sigstore-only tests go: the
bundled matchers file, the listed-signer and Fulcio identity checks, the trust-root and bundle-size reads, and
the bundled-sigstore pack check. Where 2.0.0 keeps a check, its test sits in the same file under a new title. Doc nits from
r=1: the header step 2 names the reader login, the README says nothing checks the 0600, and signer-keys.pub says
why its rotation differs from the fleet one-key rule.

Drops-test-file: installer/verify_the_release_signature/the_bundled_matchers_keep_their_call_shape.node-test.mjs
Drops-test: installer/bin/martha-install.node-test.mjs :: the packed installer runs from under node_modules, ships .mjs only, and carries sigstore
Drops-test: installer/install_a_release/hold_the_version_floor.node-test.mjs :: refused: a withdrawal whose release is unsigned, or signed for another repository, ref or an unlisted signer
Drops-test: installer/keep_the_names_in_one_place/names.node-test.mjs :: every signing call is to a sha the installer lists
Drops-test: installer/read_the_release_registry/read_the_release_registry.node-test.mjs :: signature entries: 16 are read, 17 are refused before one is fetched
Drops-test: installer/read_the_release_registry/read_the_release_registry.node-test.mjs :: refused: a signature bundle over 64 KiB, named in its manifest before it is fetched
Drops-test: installer/read_the_release_registry/read_the_release_registry.node-test.mjs :: refused: a signature manifest whose layer is not a sigstore bundle
Drops-test: installer/read_the_release_registry/read_the_release_registry.node-test.mjs :: refused: a signature bundle served longer than its manifest says
Drops-test: installer/verify_the_release_signature/verify_the_release_signature.node-test.mjs :: a release signed by a listed signer, for this repository and its own tag, is signed by that signer
Drops-test: installer/verify_the_release_signature/verify_the_release_signature.node-test.mjs :: refused: a signer not on the list
Drops-test: installer/verify_the_release_signature/verify_the_release_signature.node-test.mjs :: refused: a signature by an attest-image.yml sha from before its guard
Drops-test: installer/verify_the_release_signature/verify_the_release_signature.node-test.mjs :: the shipped signer list holds full shas only, and none from before the guard
Drops-test: installer/verify_the_release_signature/verify_the_release_signature.node-test.mjs :: the identity is matched whole: a sha that only starts with a listed one, or a fork path, does not match
Drops-test: installer/verify_the_release_signature/verify_the_release_signature.node-test.mjs :: refused: a release signed in another repository, even one of ours
Drops-test: installer/verify_the_release_signature/verify_the_release_signature.node-test.mjs :: refused: a release signed for another ref (an older release served as a newer one)
Drops-test: installer/verify_the_release_signature/verify_the_release_signature.node-test.mjs :: refused: a bundle over another digest
Drops-test: installer/verify_the_release_signature/verify_the_release_signature.node-test.mjs :: a trust root that does not arrive is "could not check", never "unsigned"
Drops-test: installer/verify_the_release_signature/verify_the_release_signature.node-test.mjs :: a verifier that breaks for any other reason is "could not check" too
Owner

Closed by the Supervisor: Raf 2026-11-24 "yes simplify it". A Martha release becomes a tag + forge CI build (pack and publish to the forge npm registry); the host00 key signer and the installer key check are dropped. The branch is kept.

Closed by the Supervisor: Raf 2026-11-24 "yes simplify it". A Martha release becomes a tag + forge CI build (pack and publish to the forge npm registry); the host00 key signer and the installer key check are dropped. The branch is kept.
supervisor closed this pull request 2026-11-24 06:36:33 +00:00
All checks were successful
CI / the relay loads in the recorded host (pull_request) Successful in 15m32s
dependency advisories / node in . (pull_request) Successful in 14s
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (pull_request) Successful in 16s
dependency advisories / node in . (container) (pull_request) Has been skipped
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (container) (pull_request) Has been skipped
dependency advisories / advisories (pull_request) Successful in 0s
c4 model / c4-model-1 (pull_request) Successful in 4s
c4 model / c4-model (pull_request) Successful in 0s
dependency advisories / node in installer (container) (pull_request) Has been skipped
dependency advisories / node in installer (pull_request) Successful in 10s
CI / links resolve (pull_request) Successful in 6s
CI / gate coverage (pull_request) Has been skipped
CI / structural floor (pull_request) Successful in 32s
CI / Martha's names are its own (pull_request) Successful in 30s
CI / the clean-install proof removes its container (pull_request) Successful in 16m50s
CI / no import cycle (pull_request) Successful in 30s
CI / the host drift check bites (pull_request) Successful in 1m16s
CI / the posted text check bites (pull_request) Successful in 15s
CI / the engine drift check bites (pull_request) Successful in 33s
CI / the ring reaches the owner on the live run's tmux (pull_request) Successful in 12s
CI / workflows are valid (pull_request) Successful in 14s
CI / nothing private (pull_request) Has been skipped
CI / no test the base passed goes missing (pull_request) Successful in 33s
CI / the pictures change only with the version (pull_request) Successful in 17s
CI / no literal restates a defined value (pull_request) Successful in 1m7s
CI / every check runs in a job (pull_request) Successful in 14s
CI / every job has a timeout (pull_request) Successful in 14s
CI / installer (pull_request) Successful in 3m47s
standalone / standalone Martha runs alone (ubuntu-latest) (pull_request) Successful in 32s
standalone / the pinned Node is nodejs.org's (pull_request) Successful in 45s

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
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
martha-ai/martha!117
No description provided.