Skip to content

Commit

Permalink
Merge pull request #322 from accurics/revert-321-bugfix/fix-checkIpFo…
Browse files Browse the repository at this point in the history
…rward-rule

Revert "fixed a bug in checkIpForward"
  • Loading branch information
Willie committed Sep 14, 2020
2 parents 67e42be + f107f76 commit cbe6c35
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
@@ -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
}
}
@@ -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 cbe6c35

Please sign in to comment.