-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remote_address #97
Comments
About XFF and rate limiting on an edge gateway using it, caution is required, as the header can be easily forged. See https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_conn_man/headers#x-forwarded-for for more information on how the header is treated by envoy depending on user's configuration. Specifically talking about istio, the user needs to specify the number of trusted hops in front of the gateway in order for istio to make the required configurations so the remote address is properly guessed from the header. See https://istio.io/latest/docs/ops/configuration/traffic-management/network-topologies/#configuring-x-forwarded-for-headers. Might be something worth documenting somewhere within kudrant/limitador? |
@roivaz thanks for the heads up. I have done some tests about how Envoy behaves. I will write details on the PR implementing this feature, but TL;DR is that the implementation in the Kuadrant's Wasm module will delegate the computation of the
|
@eguzki for sail operator you can basically use any configuration option that the Istio helm charts expose. The field
|
remote_address
is the action name exposed by Envoy filter envoy.filters.http.ratelimit. The description of remote_addressThis seems pretty fundamental feature to rate limit by IP.
The ask here is to create a WellKnownAttribute ™️ that reproduces the same behavior.
Related info
trusted client address
computation based onX-Forwarded-For
header https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_conn_man/headers#x-forwarded-fornumTrustedProxies
using Istio https://istio.io/latest/docs/ops/configuration/traffic-management/network-topologies/#configuring-x-forwarded-for-headersThe text was updated successfully, but these errors were encountered: