ip-tagging filter: add support for an optional ip-tag-header field (#36434)
# Description This change adds support for specifying an optional header to ip-tagging filter instead of the default header that it uses (`x-envoy-ip-tags`). example ``` http_filters - name: ip.tagging typed_config: "@type": type.googleapis.com/envoy.extensions.filters.http.ip_tagging.v3.IPTagging request_type: BOTH ip_tag_header: "x-slack-foo-bar" ip_tags: [] ``` # Why Currently, the ip-tagging filter always writes its output into the `x-envoy-ip-tags` header. When this filter is used for more than one purpose in the same filter chain which we do at Slack in our production environment, we do need to take care of cleaning up the header in between which has been proven a bit tricky sometimes. Leaking the values in between the filter chain is bad so we try to avoid that. We would like this to be configurable. This way we can use the optional header instead of trying the use the same header however many times the same filter is used on the same filter chain in a listener. # Risk Level this is a new feature, doesn't affect the existing functionality so guessing low but open to changing if I'm wrong. # Testing added test Docs Changes: Added, alongside release notes Co-authored-by: Ariane van der Steldt [avandersteldt@slack-corp.com](mailto:avandersteldt@slack-corp.com) Signed-off-by: Radha Kumari [rkumari@slack-corp.com](mailto:rkumari@slack-corp.com) --------- Signed-off-by: Radha Kumari <rkumari@slack-corp.com> Signed-off-by: Radha <kumari.radha3@gmail.com> Signed-off-by: Radha <rkumari@slack-corp.com> Signed-off-by: Ariane van der Steldt <avandersteldt@slack-corp.com> Co-authored-by: Adi (Suissa) Peleg <adip@google.com> Co-authored-by: Ariane van der Steldt <avandersteldt@slack-corp.com> Mirrored from https://github.com/envoyproxy/envoy @ 414ad34fb35ea90e50c04d6ed85f884dd3921de7main
parent
51ab040126
commit
4ace91458e
1 changed files with 38 additions and 0 deletions
Loading…
Reference in new issue