Skip to content

cluster pull: a file pulled whole is checked against the manifest's hash - #3043

Merged
ashhart merged 2 commits into
mainfrom
security/cluster-pull-hash
Nov 13, 2026
Merged

ashhart merged 2 commits into
mainfrom
security/cluster-pull-hash

Conversation

@ashhart

@ashhart ashhart commented Nov 12, 2026

Copy link
Copy Markdown
Owner

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.

  • Issue: n/a. SECURITY.md asks for private reports, so there is no public issue.
  • Stacked on: main.
  • atc overlap --json: not run.

Checks on this head

  • Head commit: a03f28362ceaac3c2a491a16e3ee5255f3a7b8a5
  • Lean checker, python3 tools/zig/lean_check.py, on the base and on this head: 345 on the base, 345 on this head, 0 new.
  • Tests run, with the command and pass, fail and skip counts:
    • zig fmt --check on 2 files: passes
    • git diff --check: passes
    • zig build test-cluster-loader-host test-pull-host: 9/9 steps succeeded; 22/24 tests passed (2 skipped)
    • zig build native: 66/66 steps succeeded
    • zig build test-golden test-server-security test-pull-security: 76/76 steps succeeded
  • New tests:
    • security: a file pulled whole is checked against the manifest, whatever hash its sender gave
    • security: bytes pulled into a file still held in part are reported as unverified
  • CI: runs on this push.
  • Not run, and why: Not run between two real hosts. zig build test and 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

  • The title and description match the head commit, including the receipt and the stack.
  • New tests fail before the change, pass after it, and skip cleanly without their dependency. Main with only this branch's tests added, zig build test-cluster-loader-host: exit 1. It does not compile: the new tests read Report.unverified_bytes, which the fix adds, so this base shows no failure on behavior. On the earlier base b38a4dd02 the tests failed with the fix taken out.
  • Comments and docstrings are one line. No measurements or history in the source.
  • No personal data, machine names, internal hosts or local paths in the diff or its commits. No AI attribution lines.

Notes for the reviewer

  • Partly fixed. A sparse pull cannot be verified until the manifest carries per-range hashes.

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.

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
ashhart force-pushed the security/cluster-pull-hash branch from a03f283 to a5e95b0 Compare November 13, 2026 00:03
@ashhart
ashhart merged commit eeca14c into main Nov 13, 2026
2 of 10 checks passed
@ashhart
ashhart deleted the security/cluster-pull-hash branch November 13, 2026 00:04
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