Skip to content

Commit

Permalink
Merge pull request #504 from kubescape/fix-0256
Browse files Browse the repository at this point in the history
fix failpath
  • Loading branch information
kooomix authored Sep 10, 2023
2 parents 1832611 + a937d09 commit 49a4a32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rules/exposure-to-internet/raw.rego
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,6 @@ svc_connected_to_ingress(svc, ingress) = result {
rule := ingress.spec.rules[i]
paths := rule.http.paths[j]
svc.metadata.name == paths.backend.service.name
result := [sprintf("ingress.spec.rules[%d].http.paths[%d].backend.service.name", [i,j])]
result := [sprintf("spec.rules[%d].http.paths[%d].backend.service.name", [i,j])]
}

Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
}
},
"failedPaths": [
"ingress.spec.rules[0].http.paths[0].backend.service.name"
"spec.rules[0].http.paths[0].backend.service.name"
],
"fixPaths": null
}
Expand Down

0 comments on commit 49a4a32

Please sign in to comment.