Repository navigation
Conversation
Owner
Author
|
Review: the same record layer as #3075, on the Flash Next pair's link. The Before landing:
We'll do the first three and the run.
|
ashhart
force-pushed
the
security/rank-link-frames
branch
from
November 12, 2026 23:39
3ce5b18 to
16314b8
Compare
ashhart
force-pushed
the
security/rank-link-frames-flashnext
branch
from
November 12, 2026 23:39
4ebf356 to
bed1a8a
Compare
Owner
Author
|
Rebased onto the fixed #3075 and #3041's current head, now at bed1a8a:
Results:
Next: the two-GB10 run at TP=2 with a key on both, against #3041. This lands after #3041 and #3075.
|
This was referenced Nov 13, 2026
ashhart
force-pushed
the
security/rank-link-frames
branch
from
November 14, 2026 03:27
16314b8 to
a90c289
Compare
Merged
8 tasks done
…tocol byte The TCP links between the ranks of a multi-GPU group took whichever host connected first. Both ends now send a fresh nonce and an HMAC-SHA256 over the nonces, the link, the rank and the group size, on the bootstrap, the liveness lines, the HIP link and the Flash Next pair. A connection that fails is closed and cannot stop the group. Ranks with no key meet on one host only. TF_RANK_SECRET_FILE or --rank-secret names the key file. Later frames are not signed and the links are not encrypted.
… gets 2 s - The key file opens through symbolic links, as secret mounts give it; the type and mode checks still run on the opened file, so a link to a file others can read is refused. - Rank keys need 32 bytes after trailing whitespace. The shared loader takes the minimum from its caller: rank links pass 32 and the stage ring keeps its 16, so every stage ring that starts today keeps starting. - A missing, different or short key's error names serve --rank-secret FILE and a one-line command that makes a key. - Rank 0 logs each refused connection with the peer's address and the reason. - An acceptor waits 2 s for the hello, so a silent connection no longer holds the serial accept for the whole 10 s budget. - The Flash Next CUDA rank device test passes the new secret argument to Link.open.
…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.
…nk in sealed records After the proof the Flash Next pair's control link ran in clear text, so a host on the path read the frame headers and the forward frames' token ids and could change them. Both ranks now send every byte after the proof in the rank seal's ChaCha20-Poly1305 records. A record that does not open ends the link. A test's socket pair, on which no proof ran, has no seal and stays clear. The tensor-parallel bootstrap, plan and liveness links and the NCCL traffic are still clear.
…t's key has 32 bytes
ashhart
force-pushed
the
security/rank-link-frames-flashnext
branch
from
November 14, 2026 20:13
bed1a8a to
f9ca20f
Compare
3 of 4 tasks
ashhart
force-pushed
the
security/rank-link-frames
branch
3 times, most recently
from
November 21, 2026 04:51
5d1c7e7 to
89da63e
Compare
This was referenced Nov 21, 2026
Merged
This was referenced Nov 21, 2026
Draft
ashhart
force-pushed
the
security/rank-link-frames
branch
3 times, most recently
from
November 23, 2026 19:47
3c7b2a9 to
1c79eff
Compare
4 of 5 tasks
ashhart
force-pushed
the
security/rank-link-frames
branch
2 times, most recently
from
November 23, 2026 22:13
784c302 to
ca9dfc3
Compare
4 tasks done
8 tasks done
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: after the key proof the Flash Next pair's control link ran in clear text, so a host on the path read the frame headers and the forward frames' token ids and could change them. After: both ranks send every byte after the proof in the rank seal's ChaCha20-Poly1305 records, and a record that does not open ends the link.
SECURITY.mdasks for private reports, so there is no public issue.atc overlap --json: not run.Checks on this head
4ebf3565973d77a366cd0defa195d639a4ea4827python3 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 check-native-cuda-host compile-flashnext-mtp-parity-host compile-glm-native-open: 11/11 steps succeededzig build test-cuda-host: 391/391 steps succeeded; 6268/6309 tests passed (41 skipped)zig build native: 66/66 steps succeededzig build test-rank-auth-host test-tp: 18/18 steps succeededzig build test-golden test-server-security test-pull-security: 76/76 steps succeededsecurity: the pair's frames cross sealed, and a bit changed on the way ends the linkzig 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
openreturns has one.zig/src/families/flashnext/cuda_rank_wire.zigis a pinned serving source. Its hash on this head isd1fb41b640a7eb6b30d272b9bc95e55a1a11fb0f2f115037243170a4788c22d6, for the re-pin after merge.Suggested changelog line
Flash Next on CUDA: every byte after the key proof crosses the pair's control link in sealed records.