Skip to content

feat(release): sign releases and verify provenance in the install path #169

Description

@nc9

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:

  1. GitHub Actions artifact attestations: add actions/attest-build-provenance to the release workflow; verify with gh attestation verify where the tool is present, and document the manual verification command. Near-zero key management; trust root is Sigstore/GitHub.
  2. minisign: sign manifest.json in the release workflow; pin the public key inside install.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

  1. added
    enhancement
    P2
    size: L
    security
    on Sep 1, 2026
  2. nc9 commented on Sep 23, 2026

    @nc9
    ContributorAuthor

    Criterion 1 is already met: .github/workflows/release.yml:304 runs actions/attest-build-provenance (pinned) with attestations: write, in place since 1f59d0e. Still open: no install surface verifies it (install.sh, install.ps1 and squirrel self update have no gh attestation verify or signature check), and the docs do not describe manual verification.

  3. added theissue type on Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2enhancementsecuritysize: L

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions