Skip to content

docs(adr): record why the node keeps no per-source connection count - #2503

Merged
thiras merged 1 commit into
mainfrom
docs/adr-013-no-per-source-count
Oct 17, 2026
Merged

thiras merged 1 commit into
mainfrom
docs/adr-013-no-per-source-count

Conversation

@thiras

@thiras thiras commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

Adds one line to ADR 013, after the max_concurrent_handlers bound: the node keeps no count of connections per source.

Why: a relay-routed connection carries no source address (rate_limit::peer_ip returns None), so a per-source count binds no attacker. It would refuse honest clients behind a shared NAT address. Requesters already route around RATE_LIMITED. Full reasoning is in #2502 (comment).

Refs #2502 (closed as not planned).

🤖 Generated with Claude Code

A relay-routed connection carries no source address, so a per-source
connection count binds no attacker and refuses honest clients behind a
shared NAT address. Requesters route around RATE_LIMITED instead.

Refs #2502

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 17, 2026 17:40
@thiras thiras self-assigned this Oct 17, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The documentation-only change matches the linked decision and has no unresolved findings.

No open issues 🎉

What changed in this PR

Documents why deCDN keeps no per-source connection count, matching the decision in #2502.

Changes:

  • Explains relay-based evasion and the impact on honest clients sharing a NAT address.
  • Records requester fallback after RATE_LIMITED; no runtime behavior changes.
File Description
adr/​013-schema-evolution.md Adds rationale for omitting per-source connection counts.

Review effort: Balanced

@thiras
thiras merged commit d24dd05 into main Oct 17, 2026
31 checks passed
@thiras
thiras deleted the docs/adr-013-no-per-source-count branch October 17, 2026 17:44
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.

2 participants