-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
220 lines (182 loc) · 8.13 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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
variable "owner" {
description = "The owner of the environment"
type = string
}
variable "namespace" {
description = "The unique namespace for the environment, which could be your organization name or abbreviation"
type = string
}
variable "environment" {
description = "The name of the environment - e.g. dev, stage, prod"
type = string
}
variable "waf_prefix" {
default = "wafowasp"
description = "Prefix to use when naming 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 is set to `true`."
default = "true"
}
variable "rule_01_sql_injection_action_type" {
default = "BLOCK"
description = "Rule action type. Either BLOCK, ALLOW, or COUNT (useful for testing)"
}
variable "rule_02_auth_tokens_action_type" {
default = "BLOCK"
description = "Rule action type. Either BLOCK, ALLOW, or COUNT (useful for testing)"
}
variable "rule_03_xss_action_type" {
default = "BLOCK"
description = "Rule action type. Either BLOCK, ALLOW, or COUNT (useful for testing)"
}
variable "rule_04_lfi_rfi_paths_action_type" {
default = "BLOCK"
description = "Rule action type. Either BLOCK, ALLOW, or COUNT (useful for testing)"
}
variable "rule_06_php_insecure_action_type" {
default = "BLOCK"
description = "Rule action type. Either BLOCK, ALLOW, or COUNT (useful for testing)"
}
variable "rule_07_size_restriction_action_type" {
default = "BLOCK"
description = "Rule action type. Either BLOCK, ALLOW, or COUNT (useful for testing)"
}
variable "rule_08_csrf_action_type" {
default = "BLOCK"
description = "Rule action type. Either BLOCK, ALLOW, or COUNT (useful for testing)"
}
variable "rule_09_ssi_action_type" {
default = "BLOCK"
description = "Rule action type. Either BLOCK, ALLOW, or COUNT (useful for testing)"
}
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"
}
variable "enable_url_whitelist_string_match_set" {
default = false
type = bool
description = "Enable the 'URL whitelisting' filter. If enabled, provide values for `url_whitelist_uri_prefix` and `url_whitelist_url_host`"
}
variable "url_whitelist_uri_prefix" {
default = ""
type = string
description = "URI prefix for URL whitelisting. Required if `enable_url_whitelist_string_match_set` is set to `true`"
}
variable "url_whitelist_url_host" {
default = ""
type = string
description = "Host for URL whitelisting. Required if `enable_url_whitelist_string_match_set` is set to `true`"
}