Page MenuHomePhabricator

rest-gateway: define a catch-all rate limit
Closed, ResolvedPublic

Description

Rate limits within a "policy" are determined by the user class (the requests ratelimit class). The class is currently set in a Lua filter in Envoy, but should eventually come from a JWT. There is a risk of misalignment between classes in requests and classes for which we have limits defined. We need a catch-all limit definition so unknown classes don't just bypass ratelimiting.

Event Timeline

Envoy's ratelimit service configuration supports catch-all rules, but unfortunately they don't play well with metrics keys. relevant upstream ticket: https://github.com/envoyproxy/ratelimit/pull/996. Looks like someone is working on it.

Change #1202998 had a related patch set uploaded (by Daniel Kinzler; author: Daniel Kinzler):

[operations/deployment-charts@master] rest-gateway: define catch-all rate limit

https://gerrit.wikimedia.org/r/1202998

daniel changed the task status from Open to In Progress.Nov 7 2025, 12:00 PM

Change #1202998 merged by jenkins-bot:

[operations/deployment-charts@master] rest-gateway: define catch-all rate limit

https://gerrit.wikimedia.org/r/1202998