Regex in Prowler AllowList #1284
-
Hi, In the allowlist I'm using
which matches =~ in bash with both buckets "abucket.de" and "open.abucket.de" as expected and as described in allowlist_example.txt But a Prowler run still marks the findings of "abucket.de" and "open.abucket.de" as "FAIL" and not as "WARNING". What am I missing here? Thanks for help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @gregorschulz, the problem here is that the allowlist feature in Prowler uses the result extended field to match, you can check it here https://github.com/prowler-cloud/prowler/blob/master/include/outputs#L244 So, for your use case the bash regex operation which is being executed is the following:
As you can see above, this regex is not going to match, so you need to change your allowlist to this:
Please, let us know if this works for you. Thanks! |
Beta Was this translation helpful? Give feedback.
Hi @gregorschulz, the problem here is that the allowlist feature in Prowler uses the result extended field to match, you can check it here https://github.com/prowler-cloud/prowler/blob/master/include/outputs#L244
So, for your use case the bash regex operation which is being executed is the following:
As you can see above, this regex is not going to match, so you need to change your allowlist to this:
Please, let us know if this works for you.
Thanks!