From 967fe029c2cc18d51f8572a526c8925e4b1f78db Mon Sep 17 00:00:00 2001 From: Toni de la Fuente Date: Mon, 13 May 2019 16:30:03 -0400 Subject: [PATCH] Fixed new API Gateway checks alias --- checks/check_extra744 | 6 +++--- checks/check_extra745 | 2 +- checks/check_extra746 | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/checks/check_extra744 b/checks/check_extra744 index 612ecb07..63dcfb78 100644 --- a/checks/check_extra744 +++ b/checks/check_extra744 @@ -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 diff --git a/checks/check_extra745 b/checks/check_extra745 index bb1eb79a..b404e04e 100644 --- a/checks/check_extra745 +++ b/checks/check_extra745 @@ -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 diff --git a/checks/check_extra746 b/checks/check_extra746 index 250940c6..7fcb4ce0 100644 --- a/checks/check_extra746 +++ b/checks/check_extra746 @@ -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