Skip to content

Bump updater to v0.2.3 for fail-closed attestation#309

Merged
TeoSlayer merged 1 commit into
mainfrom
bump-updater-v0.2.3
Jun 22, 2026
Merged

Bump updater to v0.2.3 for fail-closed attestation#309
TeoSlayer merged 1 commit into
mainfrom
bump-updater-v0.2.3

Conversation

@TeoSlayer

Copy link
Copy Markdown
Collaborator

What

Bumps github.com/pilot-protocol/updater from v0.2.2 to v0.2.3 in go.mod/go.sum.

Why

cmd/updater builds the auto-updater binary shipped to client daemons (Homebrew + auto-update). updater v0.2.3 makes SLSA attestation verification of checksums.txt fail closed when the gh CLI is absent — previously this was a silent no-op ("gh absent => pass"), which disabled the entire provenance gate on headless production hosts (install.sh never installs gh). That gap collapsed auto-update integrity to "anyone with GitHub repo-write access can ship a malicious release."

This bump is what actually ships the H5 fail-closed behavior to client daemons. The --skip-attestation flag (added in #307) was already wired to updater.Config.SkipAttestation, but the field was a passive opt-out until v0.2.3 introduced the fail-closed default.

Verification

  • GOWORK=off go get github.com/pilot-protocol/updater@v0.2.3 && go mod tidy — go.mod now pins v0.2.3, go.sum updated.
  • GOWORK=off go build ./cmd/updater/... — OK
  • go vet ./cmd/updater/... — OK
  • go test ./cmd/updater/... — PASS
  • gofmt -l cmd/updater/ — clean
  • Exported (non-test) API surface of the updater module is identical between v0.2.2 and v0.2.3 (same Config/Updater/New signatures; SkipAttestation bool field unchanged). The only deltas are added test functions exercising the fail-closed path. No other change to cmd/updater required.

Scope

Dependency bump only — go.mod + go.sum (3 insertions, 3 deletions). No source changes.

The updater module v0.2.3 makes SLSA attestation verification fail
closed when the gh CLI is absent (previously a silent no-op). Bumping
the dependency ships this behavior to the auto-updater binary built by
cmd/updater. The --skip-attestation flag (added in #307) continues to
wire to updater.Config.SkipAttestation as the explicit opt-out for
hosts genuinely without gh.
@TeoSlayer TeoSlayer merged commit 91fa07c into main Jun 22, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants