Skip to content

Crowdsec RuleGroup conflict with ShieldMitigation Rule #74

@chladic

Description

@chladic

Hello crowdsec,

in AWS WAF in SHIELD Advanced, whenever you go to "Protected Resources" and enable for your ALB protection, it automatically creates in your WAF Rule called ShieldMitigationRuleGroup_<some-long-id>. This rule is fixed and user cant manipulate with it.

Rule get Priority Number: 10000000

Whenever I want to start aws-waf-boucer, I get this error. Looks to me like it wants to manipulate with orders but it cant.

level=fatal msg="could not initialize waf instance: failed to cleanup: error removing rule group from ACL: AccessDeniedException: User: arn:aws:iam::****:user/crowdsec_bouncer is not authorized to perform: wafv2:UpdateWebACL on resource: arn:aws:wafv2:<region>:******:regional/rulegroup/ShieldMitigationRuleGroup_434565**** because no identity-based policy allows the wafv2:UpdateWebACL action\n\tstatus code: 400, request id: *****-*****-*****"

So overall result it, AWS WAF bouncer cant be used with Shield Advanced Protection. Can you guys please have a look to this? Its kind of critical for us.

Many thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions