Repository navigation
docs(adr): per-IP rate-limit rows say relay-only connections skip the layer - #2579
Merged
Merged
Conversation
… layer ADR 005 and ADR 022 described the per-IP layer as keying every connection, including "after iroh-relay unwrapping". The code does no unwrapping: rate_limit::peer_ip returns None for relay-only connections and RateLimiter::try_admit_one skips layer 2 for them, keying direct-path IPs masked to /64 for IPv6. Both Per-IP rows and both "Why three layers" paragraphs now state that behavior. Closes #2504 Co-Authored-By: Claude Fable 5 <[email protected]>
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
…only binding layer The per-IP rows said the per-peer and global layers still bound a relay-only connection, but per-peer does not bind a relay peer that rotates NodeId; only the global cap does. ADR 005 (Sybil hold-budget sentence, token accounting), ADR 022 (token accounting), ADR 003 Probe fishing and the probe rate-limit metric descriptions repeated the unqualified per-IP claim. Each now scopes the per-IP layer to direct-path connections. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
ADR 005 § Probe rate limiting and the ADR 022 rate-limit table described the per-IP layer as keying every connection, including "after iroh-relay unwrapping". The code does no unwrapping:
rate_limit::peer_ipreturnsNonefor relay-only connections andRateLimiter::try_admit_oneskips layer 2 for them, keying direct-path IPs masked to /64 for IPv6. Both Per-IP rows and both "Why three layers" paragraphs now state that behavior, including that a relay peer that rotatesNodeIdmeets only the global cap.The same unqualified per-IP claim is also fixed where it repeats:
The design question of whether to keep, cut, or reshape these layers stays open in #2505.
Closes #2504
🤖 Generated with Claude Code