Closed
Copy link
Labels
Description
Part of #164.
Every install/update surface (install.sh, install.ps1, squirrel self update) verifies sha256 checksums from manifest.json. The manifest is served from the same origins as the binaries, so this protects against corruption, truncation, and CDN issues, but not against a compromised release origin: whoever can replace the binary can replace the manifest next to it. The structural upgrade is a signature or provenance check whose trust root does not live on the download origin.
Two viable designs, pick one during implementation:
- GitHub Actions artifact attestations: add
actions/attest-build-provenanceto the release workflow; verify withgh attestation verifywhere the tool is present, and document the manual verification command. Near-zero key management; trust root is Sigstore/GitHub. - minisign: sign
manifest.jsonin the release workflow; pin the public key insideinstall.sh,install.ps1, and the CLI updater; verify the signature before trusting any checksum. No external tooling dependency at verify time beyond minisign itself, but requires key custody and a rotation story.
Either way the shipped checksum flow stays as-is; the signature layer wraps it.
Acceptance Criteria
- release artifacts, or the manifest that names their checksums, carry a verifiable signature or provenance attestation produced by the release workflow
- at least one install surface verifies it automatically when the required tooling is present, and degrades with a visible warning rather than a hard fail when it is absent
- docs describe how a user verifies a downloaded binary by hand
- the trust root used for verification is not served from the same origin as the binaries
Activity
nc9 commentedon Sep 23, 2026
Criterion 1 is already met:
.github/workflows/release.yml:304runsactions/attest-build-provenance(pinned) withattestations: write, in place since 1f59d0e. Still open: no install surface verifies it (install.sh,install.ps1andsquirrel self updatehave nogh attestation verifyor signature check), and the docs do not describe manual verification.fix(release): bound every gh call in the attestation check, pin auth …
feat(release): verify GitHub build attestation in install.sh, install…
fix(release): bound every gh call in the attestation check, pin auth …
fix(release): pin attestation to the release workflow on main, deny s…
feat(release): verify GitHub build attestation in install.sh, install…
fix(release): bound every gh call in the attestation check, pin auth …
fix(release): pin attestation to the release workflow on main, deny s…
test(install): pre-signed-era fixtures for the attestation and harden…