Title: Rate limiting for different IPs in different endpoints
I can not make envoy to use the ratelimiter as intended with the following setup for ratelimit, envoy and compose. Is there anything I am missing? The goal is to allow a certain ip on /api endpoint to have unlimited access and for other endpoints, we can have the same rule for all ips.
config.yaml for envoyproxy/ratelimit:
domain: edge_proxy_per_ip
descriptors:
# Descriptor for the specific IP address with unlimited access to the /api endpoint
- key: remote_address
value: <some-ip-address>
descriptors:
- key: api_path
value: "/api"
rate_limit:
unlimied: true
- key: remote_address
descriptors:
- key: api_path
value: "/api"
rate_limit:
unit: minute
requests_per_unit: 100
- key: default_path
value: "/"
rate_limit:
unit: minute
requests_per_unit: 500
I was able to resolve this. Redefined the route rate_limiter by going through envoy's official documentation and also the config.yaml file for envoyproxy/ratelimit. Working now.
Title: Rate limiting for different IPs in different endpoints
I can not make envoy to use the ratelimiter as intended with the following setup for ratelimit, envoy and compose. Is there anything I am missing? The goal is to allow a certain ip on /api endpoint to have unlimited access and for other endpoints, we can have the same rule for all ips.
config.yaml for envoyproxy/ratelimit:
envoy.yaml
compose file for ratelimit service
[optional Relevant Links:]