From dfdcd107fc9eb1d398fcc2adb5fdb81e76feb62f Mon Sep 17 00:00:00 2001 From: Zaid Qumei Date: Fri, 22 Oct 2021 10:48:01 -0400 Subject: [PATCH] Fixed servicename and fail text --- checks/check_extra7157 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/checks/check_extra7157 b/checks/check_extra7157 index fe38ac09..a19324ea 100644 --- a/checks/check_extra7157 +++ b/checks/check_extra7157 @@ -17,7 +17,7 @@ CHECK_TYPE_extra7157="EXTRA" CHECK_SEVERITY_extra7157="Medium" CHECK_ASFF_RESOURCE_TYPE_extra7157="AwsApiGatewayV2Api" CHECK_ALTERNATE_check746="extra7157" -CHECK_SERVICENAME_extra7157="apigatewayv2" +CHECK_SERVICENAME_extra7157="apigateway" CHECK_RISK_extra7157='If no authorizer is enabled anyone can use the service.' CHECK_REMEDIATION_extra7157='Implement JWT or Lambda Function to control access to your API.' CHECK_DOC_extra7157='https://docs.aws.amazon.com/apigatewayv2/latest/api-reference/apis-apiid-authorizers.html' @@ -33,7 +33,7 @@ extra7157(){ if [[ $AUTHORIZER_CONFIGURED ]]; then textPass "$regx: API Gateway V2 $API_GW_NAME ID $api has authorizer configured" "$regx" "$API_GW_NAME" else - textFail "$regx: API Gateway V2 $API_GW_NAME ID $api has not authorizer configured" "$regx" "$API_GW_NAME" + textFail "$regx: API Gateway V2 $API_GW_NAME ID $api has no authorizer configured" "$regx" "$API_GW_NAME" fi done else