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

ipset in multiple not statements #44

Merged
merged 12 commits into from
Jan 12, 2022
Merged

Conversation

jayolmos
Copy link
Contributor

Description

In some cases you need to define several ipsets in not statements to be allowlists.

Includes in rate_limit and managed_rules the not_statement and ipset statement.

Example in tf plan:

          + statement {
              + managed_rule_group_statement {
                  + name        = "AWSManagedRulesBotControlRuleSet"
                  + vendor_name = "AWS"
                  + scope_down_statement {
                      + and_statement {
                          + statement {
                              + not_statement {
                                  + statement {
                                      + ip_set_reference_statement {
                                          + arn = "REDACTED"
                                        }
                                    }
                                }
                            }
                          + statement {
                              + not_statement {
                                  + statement {
                                      + ip_set_reference_statement {
                                          + arn = "REDACTED"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }

@Ohid25 Ohid25 merged commit fd69607 into umotif-public:main Jan 12, 2022
@Ohid25
Copy link
Contributor

Ohid25 commented Jan 12, 2022

Thank you for your contribution! This is now in 3.5.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants