Skip to content

Conversation

@MustafaSaber
Copy link
Member

@MustafaSaber MustafaSaber commented Dec 8, 2025

Add dropRequestHeaderValueRegexp and dropResponseHeaderValueRegexp filters that allow selective removal of header values based on regex patterns, unlike the existing drop filters that remove entire headers.

  • Can Improve Add local caching for regex compilation

Replaces #3457

@MustafaSaber MustafaSaber force-pushed the filters/builtin/drop-header-value-regex branch from de49570 to b44dff5 Compare December 8, 2025 13:06
Add `dropRequestHeaderRegexp` and `dropResponseHeaderRegexp` filters that allow
selective removal of header values based on regex patterns, unlike the
existing drop filters that remove entire headers.

Replaces #3457

Signed-off-by: Mustafa Abdelrahman <mustafa.abdelrahman@zalando.de>
@MustafaSaber MustafaSaber force-pushed the filters/builtin/drop-header-value-regex branch from b44dff5 to 544ef83 Compare December 8, 2025 13:11
@szuecs
Copy link
Member

szuecs commented Dec 8, 2025

👍

1 similar comment
@MustafaSaber
Copy link
Member Author

👍

@MustafaSaber MustafaSaber merged commit f8d418a into master Dec 8, 2025
15 checks passed
@MustafaSaber MustafaSaber deleted the filters/builtin/drop-header-value-regex branch December 8, 2025 21:18
MustafaSaber added a commit that referenced this pull request Dec 8, 2025
Inline headerFilterConfig to reduce function return params
and reduce complexity. Remove some test functions in favour of
`assert` as it's already implementing same functionality.

Use `any` instead of `interface{}` when possible just for less
linters suggesstions.

Follow up on #3778
MustafaSaber added a commit that referenced this pull request Dec 9, 2025
Inline headerFilterConfig to reduce function return params
and reduce complexity. Remove some test functions in favour of
`assert` as it's already implementing same functionality.

Use `any` instead of `interface{}` when possible just for less
linters suggesstions.

Follow up on #3778

Signed-off-by: Mustafa Abdelrahman <mustafa.abdelrahman@zalando.de>
MustafaSaber added a commit that referenced this pull request Dec 9, 2025
Inline headerFilterConfig to reduce function return params and reduce
complexity. Remove some test functions in favour of `assert` as it's
already implementing same functionality.

Use `any` instead of `interface{}` when possible just for less linters
suggesstions.

Follow up on #3778

Signed-off-by: Mustafa Abdelrahman <mustafa.abdelrahman@zalando.de>
wisinghe pushed a commit to wisinghe/skipper that referenced this pull request Dec 15, 2025
Add `dropRequestHeaderValueRegexp` and `dropResponseHeaderValueRegexp` filters
that allow selective removal of header values based on regex patterns,
unlike the existing drop filters that remove entire headers.

- [ ] **Can Improve** Add local caching for regex compilation

Replaces zalando#3457

Signed-off-by: Mustafa Abdelrahman <mustafa.abdelrahman@zalando.de>
wisinghe pushed a commit to wisinghe/skipper that referenced this pull request Dec 15, 2025
…3779)

Inline headerFilterConfig to reduce function return params and reduce
complexity. Remove some test functions in favour of `assert` as it's
already implementing same functionality.

Use `any` instead of `interface{}` when possible just for less linters
suggesstions.

Follow up on zalando#3778

Signed-off-by: Mustafa Abdelrahman <mustafa.abdelrahman@zalando.de>
wisinghe pushed a commit to wisinghe/skipper that referenced this pull request Dec 15, 2025
Add `dropRequestHeaderValueRegexp` and `dropResponseHeaderValueRegexp` filters
that allow selective removal of header values based on regex patterns,
unlike the existing drop filters that remove entire headers.

- [ ] **Can Improve** Add local caching for regex compilation

Replaces zalando#3457

Signed-off-by: Mustafa Abdelrahman <mustafa.abdelrahman@zalando.de>
Signed-off-by: wisinghe <nuwandi.wickramasinghe@zalando.de>
wisinghe pushed a commit to wisinghe/skipper that referenced this pull request Dec 15, 2025
…3779)

Inline headerFilterConfig to reduce function return params and reduce
complexity. Remove some test functions in favour of `assert` as it's
already implementing same functionality.

Use `any` instead of `interface{}` when possible just for less linters
suggesstions.

Follow up on zalando#3778

Signed-off-by: Mustafa Abdelrahman <mustafa.abdelrahman@zalando.de>
Signed-off-by: wisinghe <nuwandi.wickramasinghe@zalando.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants