Skip to content

install: pin the one-line installer to a release and decide on archive signing #95

Closed

Description

@TusanHomichi

Existing issue check

  • I searched open and closed issues for this work.

Problem or outcome

The documented command pipes install/install.sh from main, not from a release. The archive's SHA-256 is fetched from the same release as the archive. The checksum therefore catches corruption but not a compromised origin, and an unreviewed change on main reaches every new install immediately. ADR 0023 lists both as open decisions.

Scope

In scope:

  • Publish install.sh as a release asset, and point the one-liner at the latest release's copy.
  • Decide, in an ADR, whether and how archives are signed or carry provenance. Options include Sigstore or GitHub build attestations, or a long-lived key. Implement the decision.

Out of scope:

  • Distribution package repositories (apt or dnf).

Acceptance criteria

  • The documented command fetches the installer from a release, and the release workflow publishes it.
  • The ADR records the signing or provenance decision. If signing is adopted, the installer verifies the signature and refuses a mismatch.

Expected proof

  • The release workflow run on a tag, and an install from the published one-liner.
  • A negative control for signature verification, if signing is adopted.

Execution record

  • Authority and source: filed by the integrator from the 2026-10-14 project survey, requested by the maintainer. Not yet selected for work.
  • Next action: maintainer prioritization.

Related roadmap, decisions, or issues

  • ADR 0022 (versioning), ADR 0023 (installation lifecycle), docs/releasing.md

Activity

  1. added 2 commits that reference this issue on Oct 15, 2026
    8befd2b
    e4fc1d3
  2. TusanHomichi commented on Oct 15, 2026

    @TusanHomichi
    MemberAuthor

    Post-release verification of v0.2.0. The tag points to e4fc1d3, and release run 38761241422 published it at 2026-10-15T15:36:10Z.

    • One-liner: curl -fsSL https://github.com/FieldmouseWorks/consolebook/releases/latest/download/install.sh | sh -s -- --no-service. It printed "Checksum verified" and "Installed consolebook 0.2.0 (e4fc1d3)" and exited 0. consolebook --version printed consolebook 0.2.0 (e4fc1d397259).
    • Stamp: the published install.sh contains RELEASED_VERSION="0.2.0". Its sha256 is 68730e83…, which matches install.sh.sha256. The x86_64 tarball's sha256 is fcee4901…, which matches its .sha256.
    • Provenance: each of the six release assets (both tarballs, install.sh, and their .sha256 files) has exactly one attestation, according to GET /repos/FieldmouseWorks/consolebook/attestations/sha256:<digest>. For the x86_64 tarball and install.sh, I decoded the SLSA v1 predicate:
      • repository FieldmouseWorks/consolebook
      • ref refs/tags/v0.2.0
      • workflow .github/workflows/release.yml
      • commit e4fc1d397259fe4652fb6bca090e037581f97fef
    • Not run: gh attestation verify, the signature check against Sigstore, because gh could not authenticate in this environment. The check above confirms which attestations exist and what they say, but it does not verify their signatures. To finish that, a maintainer can run gh attestation verify consolebook-linux-x86_64.tar.gz -R FieldmouseWorks/consolebook.
    • Not covered: the systemd service path. The install above used --no-service, and this container has no systemd. The release workflow's own install job covers that path.

    Generated by Claude Code

  3. TusanHomichi commented on Oct 15, 2026

    @TusanHomichi
    MemberAuthor

    Follow-up to the post-release check above: the attestation signatures are now verified for v0.2.0. This closes the "Not run" item.

    • Tool: the official gh 2.102.0, taken from the cli/cli release. Its tarball checksum matched gh_2.102.0_checksums.txt. It ran from a scratch directory and was not installed; the maintainer machine's packaged gh 2.46 has no attestation command. Authenticated as a maintainer.
    • Command, run on each of the six assets from gh release download v0.2.0:
      gh attestation verify <asset> -R FieldmouseWorks/consolebook \
        --signer-workflow FieldmouseWorks/consolebook/.github/workflows/release.yml \
        --source-ref refs/tags/v0.2.0 \
        --source-digest e4fc1d397259fe4652fb6bca090e037581f97fef \
        --deny-self-hosted-runners
      All six exited 0. The signer was release.yml@refs/tags/v0.2.0 on a GitHub-hosted runner, and each verification included a transparency-log timestamp. The release carries three attestations, each with two subjects: an archive or install.sh, plus its .sha256 file. Every downloaded file's sha256 is a verified subject. The x86_64 tarball is fcee4901…, install.sh is 68730e83…, and the aarch64 tarball is 8234ee84….
    • Negative controls, both exiting 1: a copy of install.sh with one appended line found no attestation for its digest (HTTP 404). The real install.sh checked with --source-ref refs/tags/v0.1.0 was refused with "expected SourceRepositoryRef to be refs/tags/v0.1.0, got refs/tags/v0.2.0".
    • Receipts: kept on the maintainer machine. They include the JSON verification output, the logs, and the asset digests. RECEIPT.md sha256 is 4c78932a….

    Still not covered here: the systemd service path. The release workflow's install job covers it.


    Generated by Claude Code

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions