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

Panic for broken webhook validation assumption #565

Merged
merged 1 commit into from
Apr 7, 2023

Conversation

pleshakov
Copy link
Contributor

  • Add panics for cases when an assumption about how webhook validation (run by NKG) validates a Gateway API resource is broken.
  • Add unit tests for those cases to ensure that invalid resources don't reach the code that makes those assumptions. Note: panics are not unit tested as we considered it'd be redundant.

Fixes #515

@pleshakov pleshakov requested a review from a team as a code owner April 6, 2023 20:03
@github-actions github-actions bot added the chore Pull requests for routine tasks label Apr 6, 2023
- Add panics for cases when an assumption about how webhook validation
(run by NKG) validates a Gateway API resource is broken.
- Add unit tests for those cases to ensure that invalid resources
don't reach the code that makes those assumptions. Note: panics are not
unit tested as we considered it'd be redundant.

Fixes #515
@kate-osborn kate-osborn self-requested a review April 7, 2023 17:22
@pleshakov pleshakov merged commit 6b3a7c2 into main Apr 7, 2023
12 checks passed
@pleshakov pleshakov deleted the chore/add-panics-and-tests branch April 7, 2023 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Pull requests for routine tasks
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Validate webhook-related assumptions
2 participants