You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following some discussions, we could provide the feature to rate-limit calls on listener, frontends or clusters (you should discuss at which level, we implements that)?
There is a rfc drafted by the ietf, based on feedbacks from how Twitter and GitHub have implemented it.
Design landed on feat/h2-mux (PR #1209) but implementation is still pending:
0031aadb docs(rate-limit): design for per-tenant 429 + per-source-IP cap (B3-x) — captures the per-tenant 429 and per-source-IP cap design (see doc/rate-limit-design.md). Reject responses emit Retry-After + X-Sozu-RateLimit-Rule headers via the existing answers::HttpAnswers machinery, and a rate_limit.rejected.* counter family.
Implementation (token bucket accounting, listener/cluster scoping, wire-up to the config parser) will land in a follow-up. Aligning the response headers with draft-polli-ratelimit-headers (referenced in the original post) is not part of the current design and would be a separate addition.
Keep this issue open until the implementation ships.
Activity
feat: add per-IP connection limiting
docs(rate-limit): design for per-tenant 429 + per-source-IP cap (B3-x)
docs(tasks): update audit-findings — B3-j shipped, B3-x design, B3-p …
docs(rate-limit): design for per-tenant 429 + per-source-IP cap (B3-x)
docs(tasks): update audit-findings — B3-j shipped, B3-x design, B3-p …
feat(server,mux,tcp,cli): per-cluster per-IP connection limit with HT…
feat(server,mux,tcp,cli): per-cluster per-IP connection limit with HT…
feat(server,mux,tcp,cli): per-cluster per-IP connection limit with HT…
test(e2e): full 4-cell matrix coverage for 302 + 308 redirects + rewr…
test(e2e): full 4-cell matrix coverage for 302 + 308 redirects + rewr…
docs(rate-limit): design for per-tenant 429 + per-source-IP cap (B3-x)
docs(tasks): update audit-findings — B3-j shipped, B3-x design, B3-p …
feat(server,mux,tcp,cli): per-cluster per-IP connection limit with HT…
test(e2e): full 4-cell matrix coverage for 302 + 308 redirects + rewr…