header: New HeaderMatcher and StringMatcher type - Contains (#12623)
For matching values in the header that might be somewhere in the middle of the header, the present option is to use Regex in the form .Search-Pattern.. This can cause catastrophic backtracking as described in #7728 As a solution, I have introduced another header match type called contains which is based on absl::StrContains(). Risk Level: Low Testing: Unit tests are included and manual testing was performed. Fixes #12590 Signed-off-by: Shivanshu Goswami <shigoswami@ebay.com> Mirrored from https://github.com/envoyproxy/envoy @ e322daaf0ca70fd3fcb1c1405830c73395510d93master-ci-test
parent
c9098d1165
commit
d4a7391cfa
4 changed files with 38 additions and 4 deletions
Loading…
Reference in new issue