From 86e5ebb70bf4a3f816fac1bb184c1666dadd35ab Mon Sep 17 00:00:00 2001 From: Amit Schendel Date: Thu, 25 Jul 2024 13:22:26 +0300 Subject: [PATCH] PR fixes Signed-off-by: Amit Schendel --- rules/unauthenticated-service/raw.rego | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/rules/unauthenticated-service/raw.rego b/rules/unauthenticated-service/raw.rego index 1b2d7c27..a0a3a95a 100644 --- a/rules/unauthenticated-service/raw.rego +++ b/rules/unauthenticated-service/raw.rego @@ -17,14 +17,11 @@ deny contains msga if { service_name := service.metadata.name has_unauthenticated_service(service_name, service.metadata.namespace, service_scan_result) - # Path to the service object - path := "spec" - msga := { "alertMessage": sprintf("Unauthenticated service %v exposes %v", [service_name, wl.metadata.name]), "alertScore": 7, "fixPaths": [], - "reviewPaths": [path], + "reviewPaths": ["spec"], "failedPaths": [], "packagename": "armo_builtins", "alertObject": {"k8sApiObjects": [wl]},