You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps did you take and what happened:
When applying a rateLimitPolicy on an HTTPProxy using a genericKey entry, the key field of the genericKey is ignored and the default value (generic_key) is passed on to the RLS.
Example configuration (using a kuard deployment as example and the envoy ratelimit service).
level=debug msg="starting cache lookup"
level=debug msg="returning normal response"
level=debug msg="got descriptor: (generic_key=bar)"
level=debug msg="starting get limit lookup"
level=debug msg="looking up key: generic_key_bar"
level=debug msg="looking up key: generic_key"
level=debug msg="descriptor does not match any limit, no limits applied"
What did you expect to happen:
Contour should set the genericKey key value properly and pass that value on to the RLS.
The RLS should get the following descriptor:
descriptor: (foo=bar)
instead of
descriptor: (generic_key=bar)
Anything else you would like to add:
This happens for a RL policy defined on the virtualhost as well for a RL policy defined at the route.
Fixes a bug where a generic key descriptor's key
was not being configured in the Envoy descriptor
if it was specified, resulting in Envoy always
generating the default key of "generic_key".
Fixesprojectcontour#3443.
Signed-off-by: Steve Kriss <krisss@vmware.com>
Fixes a bug where a generic key descriptor's key
was not being configured in the Envoy descriptor
if it was specified, resulting in Envoy always
generating the default key of "generic_key".
Fixesprojectcontour#3443.
Signed-off-by: Steve Kriss <krisss@vmware.com>
Fixes a bug where a generic key descriptor's key
was not being configured in the Envoy descriptor
if it was specified, resulting in Envoy always
generating the default key of "generic_key".
Fixes#3443.
Signed-off-by: Steve Kriss <krisss@vmware.com>
What steps did you take and what happened:
When applying a rateLimitPolicy on an HTTPProxy using a
genericKey
entry, thekey
field of thegenericKey
is ignored and the default value (generic_key
) is passed on to the RLS.Example configuration (using a kuard deployment as example and the envoy ratelimit service).
HTTPProxy
Envoy ratelimit config
Envoy ratelimit debug logs
What did you expect to happen:
Contour should set the genericKey key value properly and pass that value on to the RLS.
The RLS should get the following descriptor:
instead of
Anything else you would like to add:
This happens for a RL policy defined on the virtualhost as well for a RL policy defined at the route.
Environment:
kubectl version
): v1.19.4+k3s1/etc/os-release
): /The text was updated successfully, but these errors were encountered: