During creating ruleset / rules there is currently no option to specify Custom response body per Rulegroup or per rule. Also there is no option to specify labels for rules, so there is no easy way to reference to labels from another rules.
Would it be possible to implement managing that by i.e options in config:
waf_config:
- web_acl_name: mywebacl
fallback_action: ban
rule_group_name: crowdsec-rule-group-XXX
scope: REGIONAL
region: eu-west-1
ipset_prefix: crowdsec-ipset-
rule_labels: mylabel
ruleset_labels: otherlabel
custom_body_json_file: /etc/crowdsec/custom.json
Where custom.json have proper structure for AWS WAF i.e:
{
"AccessDeniedHtml": {
"ContentType": "TEXT_HTML",
"Content": <div>You are blocked, contact us at aaa@example.com </div>
}
}
During creating ruleset / rules there is currently no option to specify Custom response body per Rulegroup or per rule. Also there is no option to specify labels for rules, so there is no easy way to reference to labels from another rules.
Would it be possible to implement managing that by i.e options in config:
waf_config:
fallback_action: ban
rule_group_name: crowdsec-rule-group-XXX
scope: REGIONAL
region: eu-west-1
ipset_prefix: crowdsec-ipset-
rule_labels: mylabel
ruleset_labels: otherlabel
custom_body_json_file: /etc/crowdsec/custom.json
Where custom.json have proper structure for AWS WAF i.e: