I’d like to use envoy’s local ratelimit to protect a workload in my scenario
I’m trying to use the envoy filter to merge the configuration with this
apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
name: ratelimit-test-workload
namespace: test
spec:
workloadSelector:
labels:
app: test-workload
configPatches:
- applyTo: HTTP_ROUTE
match:
context: SIDECAR_INBOUND
routeConfiguration:
name: default
patch:
operation: MERGE
value:
typed_per_filter_config:
envoy.filters.http.local_ratelimit:
"@type": type.googleapis.com/envoy.extensions.filters.http.local_ratelimit.v3.LocalRateLimit
stat_prefix: http_local_rate_limiter
token_bucket:
max_tokens: 100
tokens_per_fill: 100
fill_interval: 1s
filter_enabled:
runtime_key: local_rate_limit_enabled
default_value:
numerator: 100
denominator: HUNDRED
filter_enforced:
runtime_key: local_rate_limit_enforced
default_value:
numerator: 100
denominator: HUNDRED
response_headers_to_add:
- append: false
header:
key: x-local-rate-limit
value: 'true'
but I’m receiving this error
admission webhook “validation.istio.io” denied the request: configuration is invalid: Envoy filter: unknown message type “envoy.extensions.filters.http.local_ratelimit.v3.LocalRateLimit”
I’m using istio 1.5.10