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

Update WAF to allow the blocking of problematic IPs #663

Open
briri opened this issue Nov 20, 2024 · 2 comments
Open

Update WAF to allow the blocking of problematic IPs #663

briri opened this issue Nov 20, 2024 · 2 comments

Comments

@briri
Copy link
Collaborator

briri commented Nov 20, 2024

We should update our WAF rules so that it allows for an IP black list.

See conversation in this ticket

@marisastrong
Copy link
Member

I added a rule in Outlook for the [email protected] to manage the problem reported in https://github.com/cdlib/cdlsys/issues/635

Screenshot 2024-11-20 at 2 25 03 PM

@briri
Copy link
Collaborator Author

briri commented Nov 26, 2024

sample rule:

- Action:
    Block: {}
  Name: rate-limit
  Priority: ?
  Statement:
    RateBasedStatement:
      AggregateKeyType: IP
      Limit: ?
      ScopeDownStatement:
        RegexMatchStatement:
          FieldToMatch:
            UriPath: {}
          RegexString: (^\/contacts|^\/users/sign_in|^\/users/sign_up|^\//users/password/new|^\/$)
          TextTransformations:
          - Priority: 0
            Type: NONE
  VisibilityConfig:
    CloudWatchMetricsEnabled: true
    MetricName: rate-limit
    SampledRequestsEnabled: true

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

No branches or pull requests

2 participants