forked from fedemzcor/terraform-aws-waf-owasp-top-10-rules
-
Notifications
You must be signed in to change notification settings - Fork 2
/
variables.tf
162 lines (135 loc) · 6.3 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
variable "product_domain" {
type = string
description = "The name of the product domain these resources belong to."
}
variable "service_name" {
type = string
description = "The name of the service these resources belong to."
}
variable "environment" {
type = string
description = "The environment of these resources belong to."
}
variable "description" {
type = string
description = "The description of these resources."
}
variable "target_scope" {
type = string
description = "Valid values are `global` and `regional`. If `global`, means resources created will be for global targets such as Amazon CloudFront distribution. For regional targets like ALBs and API Gateway stages, set to `regional`"
}
variable "create_rule_group" {
type = string
description = "All rules can be grouped into a Rule Group. Unfortunately, AWS WAF Rule Group limit per region is only 3. By setting the value to `false` will not create the rule group. Default to `true`."
default = "true"
}
variable "max_expected_uri_size" {
type = string
description = "Maximum number of bytes allowed in the URI component of the HTTP request. Generally the maximum possible value is determined by the server operating system (maps to file system paths), the web server software, or other middleware components. Choose a value that accomodates the largest URI segment you use in practice in your web application."
default = "512"
}
variable "max_expected_query_string_size" {
type = string
description = "Maximum number of bytes allowed in the query string component of the HTTP request. Normally the of query string parameters following the ? in a URL is much larger than the URI , but still bounded by the of the parameters your web application uses and their values."
default = "1024"
}
variable "max_expected_body_size" {
type = string
description = "Maximum number of bytes allowed in the body of the request. If you do not plan to allow large uploads, set it to the largest payload value that makes sense for your web application. Accepting unnecessarily large values can cause performance issues, if large payloads are used as an attack vector against your web application."
default = "4096"
}
variable "max_expected_cookie_size" {
type = string
description = "Maximum number of bytes allowed in the cookie header. The maximum size should be less than 4096, the size is determined by the amount of information your web application stores in cookies. If you only pass a session token via cookies, set the size to no larger than the serialized size of the session token and cookie metadata."
default = "4093"
}
variable "csrf_expected_header" {
type = string
description = "The custom HTTP request header, where the CSRF token value is expected to be encountered"
default = "x-csrf-token"
}
variable "csrf_expected_size" {
type = string
description = "The size in bytes of the CSRF token value. For example if it's a canonically formatted UUIDv4 value the expected size would be 36 bytes/ASCII characters."
default = "36"
}
variable "disable_03_uri_url_decode" {
default = false
type = bool
description = "Disable the 'URI contains a cross-site scripting threat after decoding as URL.' filter."
}
variable "disable_03_uri_html_decode" {
default = false
type = bool
description = "Disable the 'URI contains a cross-site scripting threat after decoding as HTML tags.' filter."
}
variable "disable_03_query_string_url_decode" {
default = false
type = bool
description = "Disable the 'Query string contains a cross-site scripting threat after decoding as URL.' filter."
}
variable "disable_03_query_string_html_decode" {
default = false
type = bool
description = "Disable the 'Query string contains a cross-site scripting threat after decoding as HTML tags.' filter."
}
variable "disable_03_body_url_decode" {
default = false
type = bool
description = "Disable the 'Body contains a cross-site scripting threat after decoding as URL.' filter."
}
variable "disable_03_body_html_decode" {
default = false
type = bool
description = "Disable the 'Body contains a cross-site scripting threat after decoding as HTML tags.' filter."
}
variable "disable_03_cookie_url_decode" {
default = false
type = bool
description = "Disable the 'Header cookie contains a cross-site scripting threat after decoding as URL.' filter."
}
variable "disable_03_cookie_html_decode" {
default = false
type = bool
description = "Disable the 'Header 'cookie' contains a cross-site scripting threat after decoding as HTML tags.' filter."
}
variable "disable_04_uri_contains_previous_dir_after_url_decode" {
default = false
type = bool
description = "Disable the 'URI contains: '../' after decoding as URL.' filter"
}
variable "disable_04_uri_contains_previous_dir_after_html_decode" {
default = false
type = bool
description = "Disable the 'URI contains: '../' after decoding as HTML tags.' filter"
}
variable "disable_04_query_string_contains_previous_dir_after_url_decode" {
default = false
type = bool
description = "Disable the 'Query string contains: '../' after decoding as URL.' filter"
}
variable "disable_04_query_string_contains_previous_dir_after_html_decode" {
default = false
type = bool
description = "Disable the 'Query string contains: '../' after decoding as HTML tags.' filter"
}
variable "disable_04_uri_contains_url_path_after_url_decode" {
default = false
type = bool
description = "Disable the 'URI contains: '://' after decoding as URL.' filter"
}
variable "disable_04_uri_contains_url_path_after_html_decode" {
default = false
type = bool
description = "Disable the 'URI contains: '://' after decoding as HTML tags.' filter"
}
variable "disable_04_query_string_contains_url_path_after_url_decode" {
default = false
type = bool
description = "Disable the 'Query string contains: '://' after decoding as URL.' filter"
}
variable "disable_04_query_string_contains_url_path_after_html_decode" {
default = false
type = bool
description = "Disable the 'Query string contains: '://' after decoding as HTML tags.' filter"
}