ratelimit: allow metadata descriptors to be skipped (#24234)
Signed-off-by: Thomas van Noort thomas.vannoort@datadoghq.com Commit Message: ratelimit: allow metadata descriptors to be skipped Risk Level: low Testing: added unit tests Docs Changes: per the protobuf definitions Release Notes: N/A Platform Specific Features: N/A Additional Description: The default behaviour was to skip calling the rate limiting service whenever the metadata key was not found and the default value was not set. This was not correctly documented (nor tested) since it mentioned that only the descriptor was skipped whereas the rate limiting service was skipped altogether. This adds a skip_if_absent field in the same spirit as for the request headers action: if set to true it skips the descriptor but still calls the rate limiting service, otherwise it skips the rate limiting service. Note that the deprecated dynamic metadata action does not support this field and defaults to false. Mirrored from https://github.com/envoyproxy/envoy @ 40fb636fb3ba7d502625614ed613d4e97e140b3epull/626/head
parent
d5e21bce6d
commit
c5f3a6e900
2 changed files with 16 additions and 2 deletions
Loading…
Reference in new issue