(cherry picked from commit eb4f33642844a1e6150ea5c2862bc4f8fef4bb58)
This commit is contained in:
Or Evron
2020-01-29 12:54:52 +02:00
committed by Nimrod Kor
parent aca93b7526
commit e575fcd6b2

View File

@@ -24,8 +24,6 @@ extra764(){
# get bucket policy
$AWSCLI s3api get-bucket-policy $PROFILE_OPT --bucket $bucket --output text --query Policy > $TEMP_STP_POLICY_FILE 2>&1
cat $TEMP_STP_POLICY_FILE
cat $bucket
if [[ $(grep AccessDenied $TEMP_STP_POLICY_FILE) ]]; then
textFail "Access Denied Trying to Get Bucket Policy for $bucket"
rm -f $TEMP_STP_POLICY_FILE
@@ -47,6 +45,7 @@ extra764(){
textFail "Bucket $bucket allows requests over insecure transport"
fi
fi
rm -fr $TEMP_STP_POLICY_FILE
done