cloudposse / terraform-aws-waf

https://cloudposse.com/accelerate
Apache License 2.0
41 stars 57 forks source link

implement label_match_statement #103

Open chitopunk opened 1 month ago

chitopunk commented 1 month ago

Describe the Feature

In order to build more robust rules based on 2 or more statements it would be great to add support for the AND OR LABEL statements. LABELS will help to create exclusion rules based on other managed rules.

Expected Behavior

label_match_statement must create an AND statement within the rule to an specific SCOPE and KEY to match specific attributes like user-agent, http library etc.

Use Case

WAF allows to create AND statements within the AWS console

Describe Ideal Solution

a simple block for label_match_statements based on the terraform block

Alternatives Considered

No response

Additional Context

No response

alianinhoaws commented 6 days ago

Hi, would like to rise this as well, as it is required to have for example rule to allow verified bots