Skip to content

Commit

Permalink
Merge pull request #636 from kubescape/newac
Browse files Browse the repository at this point in the history
Update relatedObjects in unauthenticated-service/raw.rego
  • Loading branch information
kooomix authored Aug 20, 2024
2 parents eb485a4 + 4554254 commit c6a3bc2
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 c6a3bc2

Please sign in to comment.