Net: expose the peer address on ServerRequest #57

Closed
opened 2026-12-04 06:09:06 +00:00 by faumaray · 0 comments
Owner

Context: Forge M08 rate-limits anonymous/public API traffic per client IP prefix, but Void::Net::ServerRequest exposes no peer address, so every anonymous request shares one bucket.

Need: the peer address (and, if behind a proxy, a documented trusted-proxy header policy) on ServerRequest, or a connection-info accessor on the server/route handler.

Tests/gate: a request from loopback reports 127.0.0.1/::1; a trusted-proxy configuration is explicit and spoofing-resistant. Forge degrades to a global bucket until this lands.

Context: Forge M08 rate-limits anonymous/public API traffic per client IP prefix, but `Void::Net::ServerRequest` exposes no peer address, so every anonymous request shares one bucket. Need: the peer address (and, if behind a proxy, a documented trusted-proxy header policy) on `ServerRequest`, or a connection-info accessor on the server/route handler. Tests/gate: a request from loopback reports 127.0.0.1/::1; a trusted-proxy configuration is explicit and spoofing-resistant. Forge degrades to a global bucket until this lands.
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Void/Library#57