Replies: 2 comments 3 replies
-
is the limit dynamic or the usage ? |
Beta Was this translation helpful? Give feedback.
3 replies
-
Got my answer from envoyproxy/ai-gateway#557, not supported by Envoy in general. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I'm inquiring if there's currently a way to set the global rate limit dynamically using a request header.
This is how we normally use Envoy Gateway to set a 3 RPH global rate limit on every unique users:
In our use case, Envoy Gateway is used internally to protect an internal service, which is utilized only by an external service that hosts all the user configurations. Instead of building a delta user configuration reload pipeline for EG, we are wondering whether we could pass user configurations to EG via request headers instead.
For example, we could pass to EG this request header
x-envoy-ratelimit-global-limit-requests: 3hr
, which sets the RPH in theBackendTrafficPolicy
or override the existing default configuration for a unique user ID value.I came across the Envoy Header-To-Metadata filter and the concept of "dynamic metadata", which appears to be close to how it could be done generally but I'm currently unsure.
Beta Was this translation helpful? Give feedback.
All reactions