Skip to content

dynamic_modules: add support for disabling HTTP per-route filter#42766

Merged
agrawroh merged 3 commits intoenvoyproxy:mainfrom
agrawroh:feat-dm-http-disabled
Dec 24, 2025
Merged

dynamic_modules: add support for disabling HTTP per-route filter#42766
agrawroh merged 3 commits intoenvoyproxy:mainfrom
agrawroh:feat-dm-http-disabled

Conversation

@agrawroh
Copy link
Copy Markdown
Member

Description

In this PR we are adding a new disabled flag to the per-route configuration for the dynamic modules HTTP filter which could be used to disable the dynamic modules on a per-route basis if needed. This matches the functionality we offer in other filters like ExtAuthZ, etc.


Commit Message: dynamic_modules: add support for disabling HTTP per-route filter
Additional Description: Added a new disabled flag to the per-route configuration for the dynamic modules HTTP filter which could be used to disable the dynamic modules on a per-route basis
Risk Level: Low
Testing: Added Tests
Docs Changes: Added
Release Notes: Added

@repokitteh-read-only
Copy link
Copy Markdown

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to (api/envoy/|docs/root/api-docs/).
envoyproxy/api-shepherds assignee is @wbpcode
CC @envoyproxy/api-watchers: FYI only for changes made to (api/envoy/|docs/root/api-docs/).

🐱

Caused by: #42766 was opened by agrawroh.

see: more, trace.

@agrawroh agrawroh force-pushed the feat-dm-http-disabled branch from d3bde3a to babe5a5 Compare December 24, 2025 10:57
Signed-off-by: Rohit Agrawal <rohit.agrawal@databricks.com>
@agrawroh agrawroh force-pushed the feat-dm-http-disabled branch from babe5a5 to a5ef86d Compare December 24, 2025 12:39
Comment thread source/extensions/filters/http/dynamic_modules/filter.cc
Signed-off-by: Rohit Agrawal <rohit.agrawal@databricks.com>
@agrawroh agrawroh requested a review from wbpcode as a code owner December 24, 2025 22:43
@agrawroh agrawroh enabled auto-merge (squash) December 24, 2025 22:51
@agrawroh agrawroh merged commit 1f516f1 into envoyproxy:main Dec 24, 2025
24 of 25 checks passed
Comment on lines +123 to +129

// Disable the filter for this particular vhost or route.
// If this field is specified in multiple per-filter-configs, the most specific
// one will be used.
//
// If this field is not specified, the filter would remain enabled.
bool disabled = 4;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we have provided common disabled flag in the route.v3.FilterConfig and it's not encouraged to add new disabled flag in new plugin.

And FWIW, the API need to be reviewed first before merge the PR.

wbpcode added a commit to wbpcode/envoy that referenced this pull request Dec 25, 2025
wbpcode added a commit that referenced this pull request Dec 25, 2025
…ter (#42766)" (#42771)

Commit Message: Revert "dynamic_modules: add support for disabling HTTP
per-route filter (#42766)"
Additional Description: 

We have provided common disabled flag in the route configuration and
this API may be unnecessary (and new api shepherd reviewed it. We need
to revisit it before put int into our main.


Risk Level: low.
Testing: n/a.
Docs Changes: n/a.
Release Notes: n/a.
Platform Specific Features: n/a.
grnmeira pushed a commit to grnmeira/envoy that referenced this pull request Mar 20, 2026
…oyproxy#42766)

## Description

In this PR we are adding a new `disabled` flag to the per-route
configuration for the dynamic modules HTTP filter which could be used to
disable the dynamic modules on a per-route basis if needed. This matches
the functionality we offer in other filters like ExtAuthZ, etc.

---

**Commit Message:** dynamic_modules: add support for disabling HTTP
per-route filter
**Additional Description:** Added a new `disabled` flag to the per-route
configuration for the dynamic modules HTTP filter which could be used to
disable the dynamic modules on a per-route basis
**Risk Level:** Low
**Testing:** Added Tests
**Docs Changes:** Added
**Release Notes:** Added

---------

Signed-off-by: Rohit Agrawal <rohit.agrawal@databricks.com>
Signed-off-by: Gustavo <grnmeira@gmail.com>
grnmeira pushed a commit to grnmeira/envoy that referenced this pull request Mar 20, 2026
…ter (envoyproxy#42766)" (envoyproxy#42771)

Commit Message: Revert "dynamic_modules: add support for disabling HTTP
per-route filter (envoyproxy#42766)"
Additional Description:

We have provided common disabled flag in the route configuration and
this API may be unnecessary (and new api shepherd reviewed it. We need
to revisit it before put int into our main.

Risk Level: low.
Testing: n/a.
Docs Changes: n/a.
Release Notes: n/a.
Platform Specific Features: n/a.

Signed-off-by: Gustavo <grnmeira@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants