We are trying to create an EnvoyFilter to limit traffic based on the existence of a header, so if the header is not present, it will apply the rate limit.
We’d like to use “local” rate limit since it seems to penalize less the infrastructure (not depending on an external service).
Based on this example from Istio and this other one from envoy we try to configure a local ratelimit that implements headervaluematch since it seems the option
expect_match configured to
false could help accomplishing our goals, which is applying the rate limit only to traffic that do not contain the header X-Pakalu-Client: Papito.
Could anyone please share a working example or an approximation of it to achieve this implementation?