Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support regular expression header matches for HTTPRoute #2302

Merged
merged 7 commits into from
Mar 7, 2022

Conversation

rainest
Copy link
Contributor

@rainest rainest commented Mar 3, 2022

What this PR does / why we need it:

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #2154

Special notes for your reviewer:
KTF isn't using 2.8 yet, so the integration test here will skip the regex match and test. I ran against 2.8 locally successfully.

PR Readiness Checklist:

Complete these before marking the PR as ready to review:

  • the CHANGELOG.md release notes have been updated to reflect any significant (and particularly user-facing) changes introduced by this PR

If an HTTPRoute includes multiple header match rules with the same
header name, reject the route and log the reason for rejection.
Remove support for CSVs to set multiple header match values. Although
supported by Kong, the Gateway spec does not indicate this behavior, and
does not allow specifying multiple values by including multiple matches
for the same header name. The expected configuration to accept multiple
values is a regex header match.
@rainest rainest requested a review from a team as a code owner March 3, 2022 18:42
@rainest rainest temporarily deployed to Configure ci March 3, 2022 18:42 Inactive
@rainest rainest temporarily deployed to Configure ci March 3, 2022 18:42 Inactive
@rainest rainest temporarily deployed to Configure ci March 3, 2022 18:46 Inactive
@rainest rainest temporarily deployed to Configure ci March 3, 2022 18:47 Inactive
Add utility functions to set the Kong version once at startup and
retrieve it from elsewhere without passing the version down through the
call chain.
Refactor the mtls-auth version check to use the Kong version getter from
the util package.
@rainest rainest temporarily deployed to Configure ci March 3, 2022 18:52 Inactive
@rainest rainest temporarily deployed to Configure ci March 3, 2022 18:52 Inactive
@rainest rainest temporarily deployed to Configure ci March 3, 2022 19:09 Inactive
@rainest rainest merged commit dbd5f46 into main Mar 7, 2022
@rainest rainest deleted the feat/regex-header branch March 7, 2022 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

implementing regex header matching
2 participants