1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- resource "aws_wafregional_size_constraint_set" "size_restrictions" {
- name = "${var.waf_prefix}-generic-size-restrictions"
- size_constraints {
- text_transformation = "NONE"
- comparison_operator = "GT"
- size = "4096"
- field_to_match {
- type = "BODY"
- }
- }
- size_constraints {
- text_transformation = "NONE"
- comparison_operator = "GT"
- size = "4093"
- field_to_match {
- type = "HEADER"
- data = "cookie"
- }
- }
- size_constraints {
- text_transformation = "NONE"
- comparison_operator = "GT"
- size = "1024"
- field_to_match {
- type = "QUERY_STRING"
- }
- }
- size_constraints {
- text_transformation = "NONE"
- comparison_operator = "GT"
- size = "512"
- field_to_match {
- type = "URI"
- }
- }
- }
- resource "aws_wafregional_size_constraint_set" "csrf_token_set" {
- name = "${var.waf_prefix}-generic-match-csrf-token"
- size_constraints {
- text_transformation = "NONE"
- comparison_operator = "EQ"
- size = "118"
- field_to_match {
- type = "HEADER"
- data = "cookie"
- }
- }
- }
|