Skip to content

feat: use filter_chain to avoid listener drain for EEP - #9639

Draft
zirain wants to merge 22 commits into
envoyproxy:mainfrom
zirain:use-filterchain-filter
Draft

feat: use filter_chain to avoid listener drain for EEP#9639
zirain wants to merge 22 commits into
envoyproxy:mainfrom
zirain:use-filterchain-filter

Conversation

@zirain

@zirain zirain commented Aug 2, 2026

Copy link
Copy Markdown
Member

zirain added 13 commits August 2, 2026 16:15
- Added a Luas field to the listener-level EnvoyExtensions struct so listener-scoped Lua policies can be represented separately from per-route ones.
- Refactored to add HCM placeholder filters for both per-route Lua slots and listener-level Lua filters (using named Lua HCM filters with empty default source). Listener filters are appended after route-slot filters to preserve ordering after HCM filter reversal. The Disabled: true flag was removed from listener Lua HCM filters since they are always active for the listener.
- New implementation that injects listener-level Lua source code and filter context into RouteConfiguration.TypedPerFilterConfig, delivering script changes via RDS to avoid listener drains.

Signed-off-by: zirain <zirain2009@gmail.com>
Signed-off-by: zirain <zirain2009@gmail.com>
…on-Lua policy

Signed-off-by: zirain <zirain2009@gmail.com>
Signed-off-by: zirain <zirain2009@gmail.com>
Signed-off-by: zirain <zirain2009@gmail.com>
Signed-off-by: zirain <zirain2009@gmail.com>
Signed-off-by: zirain <zirain2009@gmail.com>
Signed-off-by: zirain <zirain2009@gmail.com>
Signed-off-by: zirain <zirain2009@gmail.com>
Signed-off-by: zirain <zirain2009@gmail.com>
Signed-off-by: zirain <zirain2009@gmail.com>
Signed-off-by: zirain <zirain2009@gmail.com>
Signed-off-by: zirain <zirain2009@gmail.com>
@zirain
zirain requested a review from a team as a code owner August 2, 2026 12:55
@netlify

netlify Bot commented Aug 2, 2026

Copy link
Copy Markdown

Deploy Preview for cerulean-figolla-1f9435 ready!

Name Link
🔨 Latest commit 098ac56
🔍 Latest deploy log https://app.netlify.com/projects/cerulean-figolla-1f9435/deploys/6a71e0d291cabe00083cdab6
😎 Deploy Preview https://deploy-preview-9639--cerulean-figolla-1f9435.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@zirain
zirain marked this pull request as draft August 2, 2026 12:55

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1b8aedd474

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread internal/gatewayapi/envoyextensionpolicy.go Outdated
@codecov

codecov Bot commented Aug 2, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 74.21384% with 123 lines in your changes missing coverage. Please review.
✅ Project coverage is 76.03%. Comparing base (10d4726) to head (098ac56).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
internal/xds/translator/lua.go 71.87% 13 Missing and 14 partials ⚠️
internal/xds/translator/extproc.go 68.00% 11 Missing and 13 partials ⚠️
internal/xds/translator/dynamicmodule.go 71.05% 10 Missing and 12 partials ⚠️
internal/xds/translator/wasm.go 67.64% 10 Missing and 12 partials ⚠️
internal/xds/translator/utils.go 74.19% 9 Missing and 7 partials ⚠️
internal/gatewayapi/envoyextensionpolicy.go 78.94% 2 Missing and 2 partials ⚠️
internal/xds/translator/httpfilters.go 82.35% 1 Missing and 2 partials ⚠️
internal/xds/translator/translator.go 0.00% 1 Missing and 2 partials ⚠️
internal/xds/translator/globalresources.go 0.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9639      +/-   ##
==========================================
- Coverage   76.07%   76.03%   -0.04%     
==========================================
  Files         260      260              
  Lines       43446    43694     +248     
==========================================
+ Hits        33051    33223     +172     
- Misses       8191     8228      +37     
- Partials     2204     2243      +39     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Signed-off-by: zirain <zirain2009@gmail.com>
@zirain zirain changed the title feat: use filter_chain to avoid listener drain feat: use filter_chain to avoid listener drain for EEP Aug 3, 2026
zirain added 6 commits August 3, 2026 16:06
Signed-off-by: zirain <zirain2009@gmail.com>
Signed-off-by: zirain <zirain2009@gmail.com>
Signed-off-by: zirain <zirain2009@gmail.com>
@zirain

zirain commented Aug 6, 2026

Copy link
Copy Markdown
Member Author

@wbpcode looks like there's race condition when using wasm(maybe other asyc filters) with filter_chain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant