From a94f5bf5cccd918d43ba207a664de5ae70883a34 Mon Sep 17 00:00:00 2001 From: Nikita Burtsev Date: Thu, 15 Feb 2024 17:49:55 +0100 Subject: [PATCH] Fix/alb listener check (#1917) * [resotocore][fix] fix case for certificate_transparency_logging value * [resotocore][fix] invert check for empty listener list --- resotocore/resotocore/static/report/checks/aws/aws_elb.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resotocore/resotocore/static/report/checks/aws/aws_elb.json b/resotocore/resotocore/static/report/checks/aws/aws_elb.json index 9b90e893d..8d9d2eaca 100644 --- a/resotocore/resotocore/static/report/checks/aws/aws_elb.json +++ b/resotocore/resotocore/static/report/checks/aws/aws_elb.json @@ -10,7 +10,7 @@ "risk": "If no listeners are configured for an Application Load Balancer, it will not be able to receive traffic from clients and route requests to registered targets.", "severity": "medium", "detect": { - "resoto": "is(aws_alb) and alb_listener not in [null, []]" + "resoto": "is(aws_alb) and alb_listener in [null, []]" }, "remediation": { "text": "To fix this issue, add listeners to the Elastic Load Balancers V2.", @@ -33,7 +33,7 @@ "risk": "Without listeners, Elastic Load Balancers cannot receive traffic from clients and cannot route requests to registered targets.", "severity": "medium", "detect": { - "resoto": "search is(aws_elb) and listener not in [null, []]" + "resoto": "search is(aws_elb) and listener in [null, []]" }, "remediation": { "text": "Add listeners to Elastic Load Balancers to allow them to receive and route traffic.",