diff --git a/rules/unauthenticated-service/raw.rego b/rules/unauthenticated-service/raw.rego index 6e311218..4ba95ab1 100644 --- a/rules/unauthenticated-service/raw.rego +++ b/rules/unauthenticated-service/raw.rego @@ -25,11 +25,6 @@ deny contains msga if { "failedPaths": [], "packagename": "armo_builtins", "alertObject": {"k8sApiObjects": [wl]}, - "relatedObjects": [ - {"object": service, - "reviewPaths": ["spec"], - }, - ], } } diff --git a/rules/unauthenticated-service/test/fail_service/expected.json b/rules/unauthenticated-service/test/fail_service/expected.json index 3d733686..b4e3533a 100644 --- a/rules/unauthenticated-service/test/fail_service/expected.json +++ b/rules/unauthenticated-service/test/fail_service/expected.json @@ -20,34 +20,7 @@ "failedPaths": [], "fixPaths": [], "packagename": "armo_builtins", - "relatedObjects": [ - { - "deletePaths": null, - "failedPaths": null, - "fixPaths": null, - "object": { - "apiVersion": "v1", - "kind": "Service", - "metadata": { - "name": "operator", - "namespace": "kubescape" - }, - "spec": { - "ports": [ - { - "port": 4002, - "protocol": "TCP", - "targetPort": 8080 - } - ], - "selector": { - "app": "operator" - } - } - }, - "reviewPaths": ["spec"] - } - ], + "relatedObjects": [], "reviewPaths": [], "ruleStatus": "" }