Skip to content

api: relax Headers validation - #9681

Open
sivchari wants to merge 1 commit into
envoyproxy:mainfrom
sivchari:relax-headers-validation
Open

api: relax Headers validation#9681
sivchari wants to merge 1 commit into
envoyproxy:mainfrom
sivchari:relax-headers-validation

Conversation

@sivchari

@sivchari sivchari commented Aug 6, 2026

Copy link
Copy Markdown

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #9611


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: sivchari <shibuuuu5@gmail.com>
@sivchari
sivchari requested a review from a team as a code owner August 6, 2026 05:44
@netlify

netlify Bot commented Aug 6, 2026

Copy link
Copy Markdown

Deploy Preview for cerulean-figolla-1f9435 ready!

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

@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: 3575be4500

ℹ️ 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".

- name
type: object
maxItems: 64
maxItems: 128

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Regenerate Helm test golden files

Changing this CRD template means make gen-check will re-run helm-template and dirty the committed Helm goldens, but the rendered fixtures under test/helm/gateway-crds-helm still contain maxItems: 64 for the BackendTrafficPolicy header selector (for example envoy-gateway-crds.out.yaml and all.out.yaml). Please regenerate and commit those .out.yaml files so CI and consumers of the checked-in rendered output see the same 128-item limit.

Useful? React with 👍 / 👎.

//
// +optional
// +kubebuilder:validation:MaxItems=64
// +kubebuilder:validation:MaxItems=128

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Add release-note fragment for this API change

This relaxes an existing CRD validation for RateLimitSelectCondition.headers, which is a user-visible API behavior change; this repo records such changes as per-change fragments under release-notes/current/<section>/, but this commit does not add one. Please add a fragment (likely under bug_fixes/ or other_changes/, depending on the intended classification) so the next release notes mention that policies with 65-128 header matches are now accepted.

Useful? React with 👍 / 👎.

@zirain

zirain commented Aug 6, 2026

Copy link
Copy Markdown
Member

can you rename the PR title and add a release notes for this?

@codecov

codecov Bot commented Aug 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.18%. Comparing base (4d7686c) to head (3575be4).
⚠️ Report is 87 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9681      +/-   ##
==========================================
+ Coverage   75.48%   76.18%   +0.69%     
==========================================
  Files         252      261       +9     
  Lines       41642    43553    +1911     
==========================================
+ Hits        31435    33180    +1745     
- Misses       8075     8166      +91     
- Partials     2132     2207      +75     

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

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.

Increase RateLimitSelectCondition.headers MaxItems limit (currently 64)

2 participants