Repository navigation
fix(id): authenticate and bound peer discovery (#2944) - #4280
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 54 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
@codex review — this PR is ready for review. It implements code#2944: signed, versioned peer-announcement frames verified against the claimed EndpointId (delivered_from is never treated as the author), a 1,000-peer table cap with deterministic stale eviction, and stale probing bounded to 4 peers per pass with round-robin rotation. Targeted tests verified on the laptop: id-core discovery suite 42 passed, id lib peer_announcement/stale/signed filters 31 passed, discovery filter run 44 passed / 0 failed across all binaries. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Chef's kiss. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Summary
The plain
PeerAnnouncementand/iroh-meta/2layout stay unchanged. New receivers intentionally drop unsigned legacy gossip.Evidence
cargo test -p id discoveryis running in the laptop worktree; it is still compiling dependencies. The result will be recorded before merge. CI will run on this draft PR.Merge Danger
Door: Two-way; the code can be reverted, but mixed-version nodes will not learn peers from the old unsigned gossip format.
Blast Radius: Networked
New receivers reject old unsigned announcements rather than silently preserving the spoofable fallback. The versioned frame affects peer discovery gossip only; the
/iroh-meta/2response wire shape remains unchanged.Need help on this PR? Tag
@codesmith-botwith what you need.