mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 14:55:00 +00:00
Fixed new API Gateway checks alias
This commit is contained in:
@@ -14,7 +14,7 @@ CHECK_ID_extra744="7.44"
|
||||
CHECK_TITLE_extra744="[extra744] Check if API Gateway has a WAF ACL attached (Not Scored) (Not part of CIS benchmark)"
|
||||
CHECK_SCORED_extra744="NOT_SCORED"
|
||||
CHECK_TYPE_extra744="EXTRA"
|
||||
CHECK_ALTERNATE_check743="extra744"
|
||||
CHECK_ALTERNATE_check744="extra744"
|
||||
|
||||
extra744(){
|
||||
for regx in $REGIONS; do
|
||||
@@ -26,9 +26,9 @@ extra744(){
|
||||
for stage in $LIST_OF_STAGES; do
|
||||
CHECK_WAFACL=$($AWSCLI $PROFILE_OPT --region $regx apigateway get-stages --rest-api-id $api --query "item[?stageName==\`$stage\`].webAclArn" --output text)
|
||||
if [[ $CHECK_WAFACL ]]; then
|
||||
textPass "$regx: API ID $api in $stage has $CHECK_WAFACL WAF ACL attached" "$regx"
|
||||
textPass "$regx: API Gateway ID $api in $stage has $CHECK_WAFACL WAF ACL attached" "$regx"
|
||||
else
|
||||
textFail "$regx: API ID $api in $stage has not WAF ACL attached" "$regx"
|
||||
textFail "$regx: API Gateway ID $api in $stage has not WAF ACL attached" "$regx"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
@@ -14,7 +14,7 @@ CHECK_ID_extra745="7.45"
|
||||
CHECK_TITLE_extra745="[extra745] Check if API Gateway endpoint is public or private (Not Scored) (Not part of CIS benchmark)"
|
||||
CHECK_SCORED_extra745="NOT_SCORED"
|
||||
CHECK_TYPE_extra745="EXTRA"
|
||||
CHECK_ALTERNATE_check743="extra745"
|
||||
CHECK_ALTERNATE_check745="extra745"
|
||||
|
||||
extra745(){
|
||||
for regx in $REGIONS; do
|
||||
|
||||
@@ -14,7 +14,7 @@ CHECK_ID_extra746="7.46"
|
||||
CHECK_TITLE_extra746="[extra746] Check if API Gateway has configured authorizers (Not Scored) (Not part of CIS benchmark)"
|
||||
CHECK_SCORED_extra746="NOT_SCORED"
|
||||
CHECK_TYPE_extra746="EXTRA"
|
||||
CHECK_ALTERNATE_check743="extra746"
|
||||
CHECK_ALTERNATE_check746="extra746"
|
||||
|
||||
extra746(){
|
||||
for regx in $REGIONS; do
|
||||
|
||||
Reference in New Issue
Block a user