#84 residual: per-homeserver-domain fair-pending sub-cap #88

Closed
opened 2026-07-11 16:51:02 +00:00 by robocub · 1 comment
Collaborator

Follow-up to the #84 core (shipped alpha.18: global cross-MXID rate limiter + swept stamp maps). Residual: the global 16-slot PENDING_LINK_CAP can still be filled by a federated-MXID Sybil set sharing one homeserver, freezing honest onboarding. Fix: a per-source-homeserver-domain sub-cap under PENDING_LINK_CAP (extract domain from requester MXID), reserving headroom so no single origin domain occupies the whole table; expire idle-unapproved entries faster when near-full.

Follow-up to the #84 core (shipped alpha.18: global cross-MXID rate limiter + swept stamp maps). Residual: the global 16-slot PENDING_LINK_CAP can still be filled by a federated-MXID Sybil set sharing one homeserver, freezing honest onboarding. Fix: a per-source-homeserver-domain sub-cap under PENDING_LINK_CAP (extract domain from requester MXID), reserving headroom so no single origin domain occupies the whole table; expire idle-unapproved entries faster when near-full.
Author
Collaborator

Fixed + shipped in v0.3.0-alpha.19 (deployed 2026-07-11). A per-foreign-domain cap (PER_DOMAIN_PENDING_CAP=3) bounds how much of the shared 16-slot pending table one homeserver's users can hold. The home server is exempt — it is invite-gated (not a Sybil vector), and capping it would throttle legitimate concurrent onboarding. Hardcoded for now; promote to a [limits] knob later if a deployment needs tuning.

Fixed + shipped in **v0.3.0-alpha.19** (deployed 2026-07-11). A per-foreign-domain cap (`PER_DOMAIN_PENDING_CAP=3`) bounds how much of the shared 16-slot pending table one homeserver's users can hold. The home server is **exempt** — it is invite-gated (not a Sybil vector), and capping it would throttle legitimate concurrent onboarding. Hardcoded for now; promote to a `[limits]` knob later if a deployment needs tuning.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
dark/nether-voicebridge#88
No description provided.