Skip to content

api: add detectMisdirectedRequests to EnvoyProxy - #9675

Draft
mmmommm wants to merge 1 commit into
envoyproxy:mainfrom
mmmommm:feat/detect-misdirected-requests-api
Draft

api: add detectMisdirectedRequests to EnvoyProxy#9675
mmmommm wants to merge 1 commit into
envoyproxy:mainfrom
mmmommm:feat/detect-misdirected-requests-api

Conversation

@mmmommm

@mmmommm mmmommm commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

This is part 1 of 3 for #5879, adding API support for GEP-3567 misdirected request detection.

This PR adds the detectMisdirectedRequests field to EnvoyProxy and updates the generated API artifacts.

Follow-up PRs will add:

  1. The IR/xDS implementation that returns 421 responses when the feature is enabled.
  2. Conformance test enablement for HTTPRouteHTTPSListenerDetectMisdirectedRequests.

The field defaults to disabled, and this PR does not change runtime behavior. The implementation is intentionally left for a follow-up PR so this PR can focus on the API
shape: field name, type, placement, and documentation.

Which issue(s) this PR fixes:

Fixes #5879


PR Checklist

  • Authorship & ownership: Coding agents / AI assistants are welcome, but I have reviewed every change, understand how and why it works, can explain and maintain it, and take full responsibility for this PR. I have not submitted generated output I do not understand.
  • DCO: All commits are signed off (git commit -s). See DCO: Sign your work.
  • API agreed first: If this PR contains API changes (changes under /api), the API was discussed and agreed before the implementation. The API change can be in a separate PR, or in the same PR, but the API must be agreed before implementation. N/A if this PR does not contain API changes.
  • Required checks pass: make generate gen-check, make lint, and the unit-test/coverage build pass. (Flaky e2e failures are not considered breakages, but gen-check, lint, and coverage MUST pass.)
  • Tests added/updated: New/changed code is covered by appropriate tests. N/A if this PR does not contain code changes.
  • Docs: User-facing changes update the docs, either in this PR or a follow-up PR. N/A if this PR does not contain user-facing changes.
  • Release notes: For any non-trivial change, added a release-note fragment under release-notes/current/<section>/<pr-number>-<slug>.md (see release-notes/current/README.md for sections and naming). N/A if this PR does not contain non-trivial changes.
  • Generated files committed: Ran make gen-check and committed the result if API/helm charts/modules changed.
  • Scope & compatibility: The PR is reasonably scoped (no unrelated changes) and preserves backward compatibility, or any breaking change is called out above and documented in release-notes/current/breaking_changes/.
  • Codex review: Requested a Codex review and addressed all of its comments.
  • Copilot review: Requested a Copilot review and addressed all of its comments.

Signed-off-by: Kise Ryota <kiseryota.contact@gmail.com>
@netlify

netlify Bot commented Aug 5, 2026

Copy link
Copy Markdown

Deploy Preview for cerulean-figolla-1f9435 ready!

Name Link
🔨 Latest commit 5646738
🔍 Latest deploy log https://app.netlify.com/projects/cerulean-figolla-1f9435/deploys/6a734bf8f66c2b00083958be
😎 Deploy Preview https://deploy-preview-9675--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.

@codecov

codecov Bot commented Aug 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.18%. Comparing base (98c1be7) to head (5646738).
⚠️ Report is 122 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9675      +/-   ##
==========================================
+ Coverage   75.34%   76.18%   +0.83%     
==========================================
  Files         252      261       +9     
  Lines       41477    43528    +2051     
==========================================
+ Hits        31252    33160    +1908     
- Misses       8113     8165      +52     
- Partials     2112     2203      +91     

☔ 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.

// Default: false
//
// +optional
DetectMisdirectedRequests *bool `json:"detectMisdirectedRequests,omitempty"`

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.

can we have another top level fields for features like this may happen in the future?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sounds good. How about a typed struct named features like following?

spec:
  features:
    detectMisdirectedRequests: true

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.

Fix conformance for GatewayHTTPSListenerDetectMisdirectedRequests

2 participants