Skip to content

Fix hash verification for CGW pipelines (tkn) - #168

Merged
snecklifter merged 1 commit into
mainfrom
fix/tkn-hash-verification
Aug 7, 2026
Merged

Fix hash verification for CGW pipelines (tkn)#168
snecklifter merged 1 commit into
mainfrom
fix/tkn-hash-verification

Conversation

@snecklifter

Copy link
Copy Markdown
Contributor

Summary

  • The isHashMissing override was only checked when no hash file existed in the directory listing
  • CGW pipelines has a sha256sum.txt, but it hashes individual binaries (linux/amd64/tkn) rather than tarballs (tkn-linux-amd64.tar.gz), so the lookup fails with Did not find file "tkn-linux-amd64.tar.gz" in the given hash file
  • Moves the isHashMissing check to the top of getOnlineHash() so it short-circuits before fetching or parsing the hash file

Reported upstream to the pipelines team — this can be reverted once they fix their sha256sum.txt generation.

Test plan

  • Known version mirror job passes with tkn: "1.15"
  • CGW mirror clients job passes with tkn: "latest"
  • Other clients' hash verification still works (helm, argocd, oc, etc.)

🤖 Generated with Claude Code

The isHashMissing check was only evaluated when no hash file existed
in the directory. CGW pipelines has a sha256sum.txt but it hashes
individual binaries (linux/amd64/tkn) rather than tarballs
(tkn-linux-amd64.tar.gz), causing verification to fail.

Move the isHashMissing check to the top of getOnlineHash() so it
short-circuits before looking for hash files in the directory.

Reported upstream to the pipelines team.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@snecklifter
snecklifter requested a review from a team as a code owner August 7, 2026 07:03
@snecklifter
snecklifter merged commit d173de3 into main Aug 7, 2026
34 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.

1 participant