Skip to content

fix(remote): verify the pinned checksum on remote cache hits - #2980

Merged
vmaerten merged 3 commits into
mainfrom
fix/verify-checksum-pin-on-cache-hit
Aug 14, 2026
Merged

fix(remote): verify the pinned checksum on remote cache hits#2980
vmaerten merged 3 commits into
mainfrom
fix/verify-checksum-pin-on-cache-hit

Conversation

@vmaerten

Copy link
Copy Markdown
Member

Summary

A cache hit returned the cached Taskfile straight away, without ever comparing it to the checksum pinned on the include. The pin was only ever checked against freshly downloaded bytes, so a tampered cache entry bypassed it entirely. The same applies to the offline and cancelled download paths.

A timestamp dated in the future also kept an entry valid past any expiry duration, since nothing bounded the value read back from disk.

A cache hit returned the cached Taskfile straight away, without ever
comparing it to the checksum pinned on the include. The pin was only
ever checked against freshly downloaded bytes, so a tampered cache entry
bypassed it entirely. The same applies to the offline and cancelled
download paths.

A timestamp dated in the future also kept an entry valid past any expiry
duration, since nothing bounded the value read back from disk.
@vmaerten vmaerten changed the title fix(taskfile): verify the pinned checksum on remote cache hits fix(remote): verify the pinned checksum on remote cache hits Aug 14, 2026
readNodeContent carried its own copy of the check, identical to the one
now used on the cache paths.
@vmaerten
vmaerten marked this pull request as ready for review August 14, 2026 17:45
@vmaerten
vmaerten merged commit 1868ad2 into main Aug 14, 2026
20 checks passed
@vmaerten
vmaerten deleted the fix/verify-checksum-pin-on-cache-hit branch August 14, 2026 17:46
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