Skip to content

Commit

Permalink
adding service to related objects
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Hirschberg <[email protected]>
  • Loading branch information
slashben authored Oct 16, 2023
1 parent 28f6129 commit f9fa144
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions rules/exposure-to-internet/raw.rego
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,16 @@ deny[msga] {
"alertObject": {
"k8sApiObjects": [wl]
},
"relatedObjects": [{
"object": ingress,
"relatedObjects": [
{
"object": ingress,
"reviewPaths": result,
"failedPaths": result,
}]
"failedPaths": result,
},
{
"object": svc,
}
]
}
}

Expand Down

0 comments on commit f9fa144

Please sign in to comment.