Skip to content

feat: add a VerifyChecksums hook to ArchiveInstaller - #17

Merged
bfirestone merged 2 commits into
mainfrom
feat/verify-checksums-hook
Nov 4, 2026
Merged

bfirestone merged 2 commits into
mainfrom
feat/verify-checksums-hook

Conversation

@bfirestone

Copy link
Copy Markdown
Contributor

Adds ArchiveInstaller.VerifyChecksums, a hook that runs on the downloaded checksum file before the library trusts it, so a caller can check a signature or attestation. The file is saved under the temp dir's verify/ subdirectory, and the hook runs before the archive is requested. Verification then uses exactly the bytes the hook saw. A hook error stops the update with no archive download. Setting the hook with SkipChecksum is refused. An unlisted checksum size is capped at 1 MiB. A nil hook keeps the old behavior. tilt-tui will be the first caller, running gh attestation verify. Verify with go test -race ./....

@bfirestone
bfirestone merged commit 9c38682 into main Nov 4, 2026
3 checks passed
@bfirestone
bfirestone deleted the feat/verify-checksums-hook branch November 4, 2026 23:45
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.

1 participant