Skip to content

Commit 7f4caff

Browse files
committed
Fix: Curl manifest can be impacted by rate based WAF rules (DataBiosphere/azul-private#125)
1 parent 82c0349 commit 7f4caff

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

terraform/api_gateway.tf.json.template.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,17 @@ def for_domain(cls, domain):
223223
'priority': 1,
224224
'name': config.waf_rate_rule_name,
225225
'action': {
226-
'block': {}
226+
'block': {
227+
'custom_response': {
228+
'response_code': 429,
229+
'response_header': [
230+
{
231+
'name': 'Retry-After',
232+
'value': '10'
233+
}
234+
]
235+
}
236+
}
227237
},
228238
'statement': {
229239
'rate_based_statement': {

0 commit comments

Comments
 (0)