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

implemented global allowed ip list (bypasses other blocking rules) #59

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

Yannis-S-Standaert
Copy link
Contributor

No description provided.

Copy link

codecov bot commented Feb 10, 2025

Codecov Report

Attention: Patch coverage is 96.55172% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
Aikido.Zen.Core/Agent.cs 66.66% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@@ -78,6 +79,33 @@ public void UpdateBlockedSubnets(IEnumerable<string> subnets)
}
}

/// <summary>
/// Updates the allowed subnet ranges.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// Updates the allowed subnet ranges.
/// Updates the allowed subnet ranges. (e.g. geo restrictions)


throw;
}
catch (Exception)
catch (Exception e)
Copy link
Member

Choose a reason for hiding this comment

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

rm

UpdateBlockedUsers(response.BlockedUserIds);
BlockList.UpdateAllowedForEndpointSubnets(response.Endpoints);
UpdateRatelimitedRoutes(response.Endpoints);
UpdateBlockedUserAgents(response.BlockedUserAgentsRegex);
Copy link
Member

Choose a reason for hiding this comment

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

change

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.

2 participants