mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 14:55:00 +00:00
Fixed output for PR #339
This commit is contained in:
@@ -23,9 +23,9 @@ extra734(){
|
||||
# query to get if has encryption enabled or not
|
||||
RESULT=$($AWSCLI s3api get-bucket-encryption $PROFILE_OPT --bucket $bucket --query ServerSideEncryptionConfiguration.Rules[].ApplyServerSideEncryptionByDefault[].SSEAlgorithm --output text 2>&1)
|
||||
if [[ $(echo "$RESULT" | grep ServerSideEncryptionConfigurationNotFoundError) ]] ; then
|
||||
textFail "Bucket does not enforce encryption!" "$bucket"
|
||||
textFail "Bucket $bucket does not enforce encryption!"
|
||||
elif [[ $(echo "$RESULT" | grep AccessDenied) ]] ; then
|
||||
textFail "Access Denied Trying to Get Encryption!" "$bucket"
|
||||
textFail "Access Denied Trying to Get Encryption for $bucket"
|
||||
else
|
||||
TEMP_SSE_POLICY_FILE=$(mktemp -t prowler-${ACCOUNT_NUM}-${bucket}.policy.XXXXXXXXXX)
|
||||
# get bucket policy
|
||||
|
||||
Reference in New Issue
Block a user