You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
install: pin the one-line installer to a release and decide on archive signing #95
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.
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.
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:
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.
Activity
feat(release): install from the released installer, with provenance (#…
release: 0.2.0 (#122)
TusanHomichi commentedon Oct 15, 2026
Post-release verification of v0.2.0. The tag points to
e4fc1d3, and release run 38761241422 published it at 2026-10-15T15:36:10Z.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 --versionprintedconsolebook 0.2.0 (e4fc1d397259).install.shcontainsRELEASED_VERSION="0.2.0". Its sha256 is68730e83…, which matchesinstall.sh.sha256. The x86_64 tarball's sha256 isfcee4901…, which matches its.sha256.install.sh, and their.sha256files) has exactly one attestation, according toGET /repos/FieldmouseWorks/consolebook/attestations/sha256:<digest>. For the x86_64 tarball andinstall.sh, I decoded the SLSA v1 predicate:FieldmouseWorks/consolebookrefs/tags/v0.2.0.github/workflows/release.ymle4fc1d397259fe4652fb6bca090e037581f97fefgh attestation verify, the signature check against Sigstore, becauseghcould 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 rungh attestation verify consolebook-linux-x86_64.tar.gz -R FieldmouseWorks/consolebook.--no-service, and this container has no systemd. The release workflow's own install job covers that path.Generated by Claude Code
TusanHomichi commentedon Oct 15, 2026
Follow-up to the post-release check above: the attestation signatures are now verified for v0.2.0. This closes the "Not run" item.
gh2.102.0, taken from the cli/cli release. Its tarball checksum matchedgh_2.102.0_checksums.txt. It ran from a scratch directory and was not installed; the maintainer machine's packagedgh2.46 has noattestationcommand. Authenticated as a maintainer.gh release download v0.2.0:release.yml@refs/tags/v0.2.0on a GitHub-hosted runner, and each verification included a transparency-log timestamp. The release carries three attestations, each with two subjects: an archive orinstall.sh, plus its.sha256file. Every downloaded file's sha256 is a verified subject. The x86_64 tarball isfcee4901…,install.shis68730e83…, and the aarch64 tarball is8234ee84….install.shwith one appended line found no attestation for its digest (HTTP 404). The realinstall.shchecked with--source-ref refs/tags/v0.1.0was refused with "expected SourceRepositoryRef to be refs/tags/v0.1.0, got refs/tags/v0.2.0".RECEIPT.mdsha256 is4c78932a….Still not covered here: the systemd service path. The release workflow's install job covers it.
Generated by Claude Code