Signing keys: minisign, SHA256SUMS, Authenticode digests, the household CA, the audit log; v0.9.0 #11
Reference in New Issue
Block a user
Delete Branch "feature/signing"
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?
Signing keys for Fabrica Domi · Artifex: releases are signed inside the vault, and the key never leaves it.
docs/SIGNING.mdis the contract;docs/FORMAT.mdgains the optionalsigningbody member. v0.9.0.What
custos-sign(new):ED, over a BLAKE2b-512 digest; this is what minisign 0.12 writes by default and what Tauri's updater (minisign-verify) checks;SHA256SUMS, checked and then signed;signtool sign /dgwrites;x509-cert.custos-vault: thesigningbody member.domi-release,domi-root,domi-code-signing) and a test set, whose leaf sits under its own test root that no PC trusts.*for any.signing_check,signing_sign,signing_refuse,signing_keys,signing_export_cert. Release keys sign only withApproval::Mark; test keys never sign for atagtrigger.tools/signing/interop.ps1: the real minisign, signtool and osslsigncode againstcustos-sign.Departure from the Day 3 prompt: the keys are a body member like
identity, not new item types.Corrupted), which would be a format change in all but name.As with
identity, an older Custos dropssigningwhen it saves.Tests: 140 green (
cargo test --workspace). The new ones:custos-signknown answers (9). minisign's signature and public key are byte-equal to the real minisign 0.12's (fixtures it made). The Authenticode signature is byte-equal toopenssl pkeyutl's. The CA chain verifies, and the canonical-manifest rules and redaction are covered.custos-vaulttests/signing.rs(6): every kind signs and verifies; scope is refused even when approved; release keys never auto-sign and test keys never sign a tag; malformed requests and the root are refused; the audit log records every outcome and survives a reopen.Interop (
tools/signing/interop.ps1):minisign -Vaccepts a signature and a signed SHA256SUMS, and rejects a changed file.signtool /dg→ custos-sign →/di→osslsigncode verify -CAfile <test root>succeeds.signtool verify /pastops only at "not trusted", because the test root is not installed here.Self-review
signingfeature could leave them out; the vault would then have to carry the member through untouched.rsa/x509-certbringrand_core0.6 and getrandom 0.2.custos-signdraws fromrand'sSysRng, andcustos-wasmroutes getrandom 0.2's custom backend to the samerandom_fill. Built for wasm32 with the Nix toolchain, andjs/test.mjspasses.rsaandnum-bigint-digat opt-level 3 in dev.secret, which is used only insidesigning.rs; aDebugthat prints a key (Key,Ed25519SecretandRsaSecretall redact); a refusal recorded as a signature (signing_refuseturns approved/auto into refused).cargo fmt --allhad reformatted files this branch does not change; that is reverted, and CLAUDE.md now names the trap.