From bb69f514566e19ac24ef3fc3a3401bce1961a6f2 Mon Sep 17 00:00:00 2001 From: gabrielsoltz Date: Wed, 23 Oct 2019 14:03:49 +0200 Subject: [PATCH] comment --- checks/check_extra73 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checks/check_extra73 b/checks/check_extra73 index c1fcfc61..bb86a63b 100644 --- a/checks/check_extra73 +++ b/checks/check_extra73 @@ -95,7 +95,7 @@ extra73(){ fi fi if [[ $BUCKET_PUBLIC_BLOCK_RESTRICPUBLICBUCKET != "True" ]] && [[ $BUCKET_POLICY_STATUS == "True" ]]; then - # Here comes the magic: Look Statement Allow, Principal * and No Condition + # Here comes the magic: Find Statement Allow, Principal * and No Condition BUCKET_POLICY_ALLOW_ALL_WITHOUT_CONDITION=$($AWSCLI s3api get-bucket-policy $PROFILE_OPT --region $BUCKET_LOCATION --bucket $bucket \ | jq '.Policy | fromjson' | jq '.Statement[] | select(.Effect=="Allow") | select(.Principal=="*" or .Principal.AWS=="*" or .Principal.CanonicalUser=="*") | select(has("Condition") | not)') if [[ $BUCKET_POLICY_ALLOW_ALL_WITHOUT_CONDITION ]]; then