Repository navigation
Closed
Labels
Description
I will dedicate this is the tracking issue for the dynamic module feature. The description here will be updated as we make progress.
This issue will serve as a central place for tracking the progress as well as the feature requests, etc.
General Info
- The high-level documentation is here.
- The example repository: envoyproxy/envoy-dynamic-module-example
- Dynamic Modules slack channel: #envoy-dynamic-modules in Envoy slack
Released in v1.34
- (@mathetake) Add "remove header" callbacks. dynamic_modules: adds support for header removal #38432
- I think making set_xxx_header/trailer callbacks accept null pointer indicating removal would be simpler'
- (@mathetake) Initial support for attributes dynamic_modules: initial support for attributes #38519
- (@mathetake) Remove "WIP" from the config API. api: removes 'wip' from dynamic_modules #38956
- This will be by the end of next March.
Released in v1.35
- (@mathetake) Add a minimal test target here to ensure the linking work on macos. My attempt: build: make dynamic modules work on macos #38437
- As indicated in chore: fix build on m1 mac #38363, macos linker doesn't support
--export-dynamicso I suspect that the loading is not working right now. Since we are not running tests at all right now, I would like to add//test/extensions/dynamic_modules/http:filter_testthere and fix the linker stuff accordingly.
- As indicated in chore: fix build on m1 mac #38363, macos linker doesn't support
- (@mathetake) Build a foundational asynchronous callback mechanism for dynamic modules. dynamic_modules: scheduler ABI for generic non-blocking async operations #39765
- Proper life cycle management via something like a manual new/delete callback would be needed to provide the safe interface.
- Callout related ABI. dynamic_modules: support for http callouts #39151
Released in v1.36
- Upstream HTTP filter support: Upstream HTTP Filter Support for Dynamic Modules #38448
- filter state: dynamic_modules: add filter state support for http filter #38979
- Add stats/metrics callbacks to allow dynamic modules to emit metrics. dynamic_modules: add support for user-defined metrics #40661 dynamic modules: support metrics with labels by defining metric vector counterparts #41003
- Logger API: dynamic modules: log ABI support #40143
- Terminal HTTP Filter
Other outstanding items / Open questions
- Network filter support
- Add more attributes implementation left as TODOs in dynamic_modules: initial support for attributes #38519
- Socket accessor: dynamic_modules: need a way to access underlying sockets in http filters #38739
- Other language SDKs (Notably, C, C++ or Zig, maybe Go.)
- We have an experimental Go SDK https://github.com/envoyproxy/dynamic-modules-examples/tree/main/go
- Discussion around the experimental SDKs: Add experimental/reference language SDK dynamic-modules-examples#25
- After all the feature requests settle down, revisit the compatibility requirement and maybe relax it to work across multiple versions of Envoy.
Activity
mathetake commentedon Feb 10, 2025
cc @bplotnick @thenewwazoo
isker commentedon Feb 14, 2025
Do you mean that in this situation, dynamic modules would be using arbitrary HTTP clients? We use proxy-wasm filters today to make outbound HTTP requests, and it's nice that those use Envoy clusters, because they get the same configuration, connection pooling, service discovery, statistics, etc that the rest of Envoy has.
mathetake commentedon Feb 14, 2025
yeah i guess that makes sense - thank you for clarifying @isker. Let's add the envoy-managed callouts just like Lua and Wasm
nfuden commentedon Feb 27, 2025
As part of P1 or P2 is there any desire to make a per route message for this filter?
I've been playing around with the filter and would love to be able to get its configuration a bit more granular.
If it fits roadmap happy to spend some time to see if i can throw up something for it.
mathetake commentedon Feb 27, 2025
yeah sure, indeed i expected that someone will request for it. happy to review!
mathetake commentedon Mar 6, 2025
I just created
#envoy-dynamic-modulesfor discussion around this featuremathetake commentedon Apr 3, 2025
#38979
hieusydo commentedon Jun 21, 2025
Hi @mathetake, is anyone working to support more attributes from envoy_dynamic_module_type_attribute_id ? If not, I'd like to add implementations for some attributes related to connection and upstream infos (e.g.,
connection.uri_san_peer_certificate&upstream.uri_san_peer_certificate)mathetake commentedon Jun 21, 2025
I think no one is working on that part, so sounds good and feel free to work on it! Happy to review
luistilingue commentedon Jul 28, 2025
I'm working for conversational platform company and it uses (like many others) WebSockets and raw-TCP with a XMPP-based protocol for their apps due to mainly full-duplex communication, called LIME .
WebSockets uses persistent connections to allow the duplex flow and we're facing an issue for load balancing those protocols because the LB they are based on connection and not in its data. So a client could overload a single endpoint (e.g. k8s pod), because there isn't any client-lb in our apps (k8s endpoint aware).
I could overcome such limitations and create a DM to convert such stateful protocols to a HTTP/2 to talk to our backends, but acuatly they are limited to HTTP Filter only.
So, It'll very welcome see a Network Filter support to parsing paylods, etc, and make that changes in the proxy level, instead our entire SDKs and codebases.