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]},