Skip to content

fix(cli): self update attestation failure names the recovery step #2284 - #2285

Merged
nc9 merged 1 commit into
mainfrom
boat/attest-msg-2284
Nov 23, 2026
Merged

nc9 merged 1 commit into
mainfrom
boat/attest-msg-2284

Conversation

@nc9

@nc9 nc9 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Closes #2284

Attestation failures no longer say the binary was not built by the release workflow (a release built outside GitHub Actions has no attestation and is not necessarily tampered). Every attestation, signature and signed-era failure now appends the recovery step (curl one-liner, or install.ps1 on Windows) and the docs link. New docs section in docs/install.mdx.

Acceptance:

  • Valid pinned-key signature never reaches the attestation path: provenance.test.ts 'a valid signature verifies on its own: gh is never asked'; attestation message no longer contains 'not built by' (attestation.test.ts, provenance.test.ts).
  • Recovery step on every failure for both platforms: attestation.test.ts 'reinstallHint (self update: an attestation failure must not claim the binary wasn't built by us, and must name the recovery step #2284)' (linux and win32), plus message assertions.
  • Tampered bytes still abort: provenance.test.ts 'a binary changed by one byte fails the asset signature' and unpinned-key test assert 'verification failed' and 'Nothing was installed'.
  • Docs: docs/install.mdx 'If squirrel self update says verification failed'.

Gates: format:check, lint, typecheck pass; changelog check OK; docs make validate 74 pass; tests self/{updater,install,telemetry,release-keys,provenance,attestation} + mcp/docs-sync pass.
Skill change needed: no.

… wasn't built by us and names the recovery step #2284

Signed-off-by: Nik Cubrilovic <[email protected]>
@nc9
nc9 marked this pull request as ready for review November 23, 2026 14:28
@nc9
nc9 merged commit 2715d2b into main Nov 23, 2026
10 checks passed
@nc9
nc9 deleted the boat/attest-msg-2284 branch November 23, 2026 20:02
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.

self update: an attestation failure must not claim the binary wasn't built by us, and must name the recovery step

1 participant