From 79e7db3c439889c0d03af7e35c1fb5355a205309 Mon Sep 17 00:00:00 2001 From: Amit Schendel Date: Mon, 29 Jan 2024 16:28:05 +0200 Subject: [PATCH] Adding a check to see if the service is detect before alerting Signed-off-by: Amit Schendel --- core/pkg/opaprocessor/networkscanner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/pkg/opaprocessor/networkscanner.go b/core/pkg/opaprocessor/networkscanner.go index d2d3c534..453d6c8c 100644 --- a/core/pkg/opaprocessor/networkscanner.go +++ b/core/pkg/opaprocessor/networkscanner.go @@ -24,7 +24,7 @@ func isUnauthenticatedService(host string, port int, namespace string) bool { return false } - if !discoveryResults.IsAuthenticated { + if !discoveryResults.IsAuthenticated && discoveryResults.ApplicationLayer != "" { return true }