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

fix: Add SourceMatchType validation for acceptable values #3260

Merged
merged 4 commits into from
Apr 24, 2024

Conversation

owenhaynes
Copy link
Contributor

What this PR does / why we need it:
Adds validation to SourceMatch to only allow the accepted values. This is to prevent people using a lowercase version of "Distinct" which will then default to using "Exact" for the ratelimiting.

I lost a few hours to this 😄

@owenhaynes owenhaynes requested a review from a team as a code owner April 24, 2024 06:46
Signed-off-by: Owen Haynes <1472893+owenhaynes@users.noreply.github.com>
@owenhaynes owenhaynes force-pushed the add-validation-rule-source-match branch from cd76551 to 683c18a Compare April 24, 2024 06:47
Signed-off-by: Owen Haynes <1472893+owenhaynes@users.noreply.github.com>
Signed-off-by: Owen Haynes <1472893+owenhaynes@users.noreply.github.com>
@zirain
Copy link
Contributor

zirain commented Apr 24, 2024

you maye need to run make -k gen-check locally.

@owenhaynes
Copy link
Contributor Author

I see no errors when running make -k gen-check locally

Signed-off-by: Owen Haynes <1472893+owenhaynes@users.noreply.github.com>
@arkodg arkodg requested review from a team and zirain April 24, 2024 19:22
@arkodg arkodg merged commit fdb47dd into envoyproxy:main Apr 24, 2024
17 checks passed
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.

4 participants