Repository navigation
cluster pull: a file pulled whole is checked against the manifest's hash - #3043
Merged
Merged
Conversation
ashhart
marked this pull request as ready for review
November 12, 2026 17:30
A pulled range was compared only with the hash its sender supplied. A file pulled whole is now hashed against the manifest and removed if it differs, and bytes pulled into a partly held file are reported as unverified_bytes.
ashhart
force-pushed
the
security/cluster-pull-hash
branch
from
November 13, 2026 00:03
a03f283 to
a5e95b0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
Before: a pulled range was compared only with the hash its sender supplied, so a cluster peer could feed another node weights of its choosing. After: a file pulled whole is hashed against the manifest and removed when it differs, and bytes pulled into a partly held file are reported as
unverified_bytes.SECURITY.mdasks for private reports, so there is no public issue.atc overlap --json: not run.Checks on this head
a03f28362ceaac3c2a491a16e3ee5255f3a7b8a5python3 tools/zig/lean_check.py, on the base and on this head: 345 on the base, 345 on this head, 0 new.zig fmt --checkon 2 files: passesgit diff --check: passeszig build test-cluster-loader-host test-pull-host: 9/9 steps succeeded; 22/24 tests passed (2 skipped)zig build native: 66/66 steps succeededzig build test-golden test-server-security test-pull-security: 76/76 steps succeededsecurity: a file pulled whole is checked against the manifest, whatever hash its sender gavesecurity: bytes pulled into a file still held in part are reported as unverifiedzig build testand every step that runs on a GPU were not run: this Mac's GPU was serving a model, and no CUDA, ROCm or Intel hardware was available.Receipt
n/a. This change cannot reach inference: it is the cluster's weight pull, before any model is loaded.
Checklist
zig build test-cluster-loader-host: exit 1. It does not compile: the new tests readReport.unverified_bytes, which the fix adds, so this base shows no failure on behavior. On the earlier baseb38a4dd02the tests failed with the fix taken out.Notes for the reviewer
Suggested changelog line
Cluster: a file pulled whole is checked against the manifest's hash and removed if it differs. Bytes pulled into a partly held file are reported as unverified.