Skip to content

Commit

Permalink
Update relatedObjects in unauthenticated-service/raw.rego
Browse files Browse the repository at this point in the history
Signed-off-by: kooomix <eranm@armosec.io>
  • Loading branch information
kooomix committed Aug 20, 2024
1 parent 5d572ae commit 4554254
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 33 deletions.
5 changes: 0 additions & 5 deletions rules/unauthenticated-service/raw.rego
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ deny contains msga if {
"failedPaths": [],
"packagename": "armo_builtins",
"alertObject": {"k8sApiObjects": [wl]},
"relatedObjects": [
{"object": service,
"reviewPaths": ["spec"],
},
],
}
}

Expand Down
29 changes: 1 addition & 28 deletions rules/unauthenticated-service/test/fail_service/expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": ""
}
Expand Down

0 comments on commit 4554254

Please sign in to comment.