Skip to content

Commit

Permalink
Revert "fixed a bug in checkIpForward"
Browse files Browse the repository at this point in the history
  • Loading branch information
cesar-rodriguez committed Sep 14, 2020
1 parent 67e42be commit f107f76
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
{
"name": "checkIpForward",
"file": "checkIpForward.rego",
"template_args": {
"prefix":"",
"suffix":""
},
"template_args": null,
"severity": "MEDIUM",
"description": "Ensure IP forwarding is not enabled on Instances.",
"reference_id": "accurics.gcp.NS.130",
"category": "Network Security",
"version": 1
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
package accurics

{{.prefix}}{{.name}}{{.suffix}}[api.id]
checkIpForward[api.id]
{
api := input.google_compute_instance[_]
api.config.can_ip_forward == true
}

not api.config.can_ip_forward == true
}

0 comments on commit f107f76

Please sign in to comment.