Repository navigation
Conversation
Draft
6 of 8 tasks
Owner
Author
|
Review: the record layer is sound. It's ChaCha20-Poly1305 with the length as associated data, one key per direction derived from the session key, and fresh session randomness from both ends, so a reconnect never reuses a nonce. Replay, reordering, reflection and a wrong key all fail, with tests. On cost, a verify step of about 650 B pays two records, so at most about 35 µs a round, well under 1% of a decode round. Before landing:
We'll push both.
|
ashhart
force-pushed
the
security/rank-link-frames
branch
from
November 12, 2026 23:39
3ce5b18 to
16314b8
Compare
Owner
Author
|
Rebased onto #3041's current head (41354b8) and fixed, now at 16314b8:
Results:
We have no AMD card, so the HIP path is covered by these host tests and the HIP nightly. This lands after #3041.
|
ashhart
marked this pull request as ready for review
November 13, 2026 00:06
ashhart
force-pushed
the
security/rank-link-key
branch
from
November 14, 2026 03:26
d4d101a to
051bbf0
Compare
ashhart
force-pushed
the
security/rank-link-frames
branch
from
November 14, 2026 03:27
16314b8 to
a90c289
Compare
Merged
8 tasks done
ashhart
force-pushed
the
security/rank-link-key
branch
from
November 17, 2026 09:05
051bbf0 to
b604acf
Compare
ashhart
force-pushed
the
security/rank-link-frames
branch
from
November 17, 2026 09:06
a90c289 to
e855d5e
Compare
ashhart
force-pushed
the
security/rank-link-key
branch
from
November 18, 2026 02:04
b604acf to
04cb5b8
Compare
ashhart
force-pushed
the
security/rank-link-frames
branch
2 times, most recently
from
November 21, 2026 04:51
5d1c7e7 to
89da63e
Compare
ashhart
force-pushed
the
security/rank-link-key
branch
2 times, most recently
from
November 21, 2026 14:38
7693e45 to
f78ed60
Compare
ashhart
force-pushed
the
security/rank-link-frames
branch
from
November 21, 2026 17:38
89da63e to
f73e87e
Compare
ashhart
force-pushed
the
security/rank-link-key
branch
from
November 21, 2026 19:34
f78ed60 to
85da6c9
Compare
ashhart
force-pushed
the
security/rank-link-frames
branch
from
November 21, 2026 23:50
f73e87e to
3c7b2a9
Compare
ashhart
force-pushed
the
security/rank-link-key
branch
from
November 23, 2026 19:43
85da6c9 to
bf1d50b
Compare
ashhart
force-pushed
the
security/rank-link-frames
branch
2 times, most recently
from
November 23, 2026 21:34
1c79eff to
784c302
Compare
…records The proof showed which process connected, and then the ROCm ranks' command link ran in clear text: a host on the path read rank 0's words and could change them. Both ends now seal every byte after the proof in ChaCha20-Poly1305 records under keys derived from the proof's session key, one for each direction, with the record's place in its direction as the nonce. A record altered, replayed, moved, sent back or sealed under another key does not open, and the link closes. rank_seal.zig holds the record layer for the other rank links to use. The CUDA control links and the NCCL, RCCL and RDMA traffic are still clear.
ashhart
force-pushed
the
security/rank-link-frames
branch
from
November 23, 2026 22:13
784c302 to
ca9dfc3
Compare
This branch has not been deployed
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: the key proof of #3041 showed which process connected, and then the ROCm ranks' command link ran in clear text, so a host on the path read rank 0's words and could change them. After: both ends seal every byte after the proof in ChaCha20-Poly1305 records under keys derived from the proof's session key, one for each direction, with the record's place in its direction as the nonce. A record altered, replayed, moved, sent back or sealed under another key does not open, and the link closes.
SECURITY.mdasks for private reports, so there is no public issue.atc overlap --json: not run.Checks on this head
3ce5b18424440cc15a8ce321654346aaf4098154python3 tools/zig/lean_check.py, on the base and on this head: 345 on the base, 345 on this head, 0 new.zig fmt --checkandgit diff --check: passzig build test-rank-auth-host test-tp test-stage test-cli: 85/85 steps succeeded; 139/156 tests passed (17 skipped)zig build -Dhip=true test-rank-link-hip-host check-native-hip-host test-native-hip-host test-environment-hip-host test-hip-family-offers-host: 19/19 steps succeeded; the link's 13 tests passzig build check-native-cuda-host compile-flashnext-mtp-parity-host compile-glm-native-open: 11/11 steps succeededzig build native: 66/66 steps succeededzig build test-server-cpu: 5/5 steps succeeded; 1326/1333 tests passed (7 skipped)zig build test-golden test-server-security test-pull-security: 76/76 steps succeededrank seal: bytes sealed at one end open at the other, across records and in both directionssecurity: a record altered, replayed, moved, sent back or sealed under another key does not opensecurity: the wire shows none of the bytes a record carriessecurity: rank 0's words cross the link sealed, and a bit changed on the way closes itzig 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
TF_RANK_SECRET_FILE.Checklist
For a change that reaches inference:
"draft": false, a resumed prompt equals a fresh one, and concurrent equals solo. Not measured: no served run.Notes for the reviewer
rank_seal.zigholds the record layer, for the other rank links to use.SECURITY.mdsays so. The bootstrap's sockets pass to the TCP tensor transport, the plan link and the fate watcher, which read them with their own framing, so sealing those is a change to that transport and wants its own review.Suggested changelog line
ROCm ranks: every byte after the key proof crosses the command link in sealed records, so a host on the path can neither read nor change it.