Skip to content

Commit

Permalink
Small check fixes
Browse files Browse the repository at this point in the history
(cherry picked from commit 70879ba)
  • Loading branch information
nimrodkor committed Dec 18, 2019
1 parent d2b3e5e commit 1087d60
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion checks/check_extra716
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ extra716(){
textPass "$regx: $domain is in a VPC" "$regx"
fi
done
else
textInfo "$regx: No Elasticsearch Service domain found" "$regx"
fi
textInfo "$regx: No Elasticsearch Service domain found" "$regx"
rm -fr $TEMP_POLICY_FILE
done
}
4 changes: 2 additions & 2 deletions checks/check_extra731
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ extra731(){
if [[ $SNS_POLICY_ALLOW_ALL_WITHOUT_CONDITION ]]; then
SNS_POLICY_ALLOW_ALL_WITHOUT_CONDITION_DETAILS=$(echo $SNS_POLICY_ALLOW_ALL_WITHOUT_CONDITION \
| jq '"[Principal: " + (.Principal|tostring) + " Action: " + (.Action|tostring) + "]"' )
textFail "$regx: SNS topic policy with public access: $SNS_POLICY_ALLOW_ALL_WITHOUT_CONDITION_DETAILS" "$SHORT_TOPIC" "$regx"
textFail "$regx: SNS topic $SHORT_TOPIC's policy with public access: $SNS_POLICY_ALLOW_ALL_WITHOUT_CONDITION_DETAILS" "$SHORT_TOPIC" "$regx"
else
textPass "$regx: SNS topic policy with public access but has a Condition" "$SHORT_TOPIC" "$regx"
textPass "$regx: SNS topic $SHORT_TOPIC's policy with public access but has a Condition" "$SHORT_TOPIC" "$regx"
fi
else
textPass "$regx: SNS topic without public access" "$SHORT_TOPIC" "$regx"
Expand Down

0 comments on commit 1087d60

Please sign in to comment.