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: request flood when misconfigured cluster-cidr causes dead routes to be kept #784

Conversation

lukasmetzner
Copy link
Contributor

Before adding a route, verify if the route CIDR is contained within the cluster CIDR. If it is not, return an error to prevent a flood of requests caused by persistent dead routes.

Fixes #482

Copy link

codecov bot commented Nov 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.39%. Comparing base (044c7a2) to head (addd861).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #784      +/-   ##
==========================================
+ Coverage   70.29%   70.39%   +0.10%     
==========================================
  Files          31       31              
  Lines        3205     3216      +11     
==========================================
+ Hits         2253     2264      +11     
  Misses        779      779              
  Partials      173      173              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

… to be kept

Check if route CIDR is contained in cluster CIDR before adding the route and return an error if it is not contained.
@lukasmetzner lukasmetzner force-pushed the 482-fix-request-flood-when-misconfigured-cluster-cidr-causes-dead-routes-to-be-kept branch from 782d685 to addd861 Compare November 12, 2024 08:01
@lukasmetzner
Copy link
Contributor Author

Already fixed in #675.
Emitting a warning event and log message will be done in #793.

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: Request Flood when misconfigured cluster-cidr causes dead routes to be kept
2 participants