Skip to content

Commit

Permalink
Merge pull request #323 from accurics/fix-check-ip-forward
Browse files Browse the repository at this point in the history
fixed checkIpForward rule (gcp)
  • Loading branch information
cesar-rodriguez committed Sep 14, 2020
2 parents cbe6c35 + 688b7d1 commit 1a90445
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
@@ -1,10 +1,14 @@
{
"name": "checkIpForward",
"file": "checkIpForward.rego",
"template_args": null,
"template_args": {
"name": "checkIpForward",
"prefix": "",
"suffix": ""
},
"severity": "MEDIUM",
"description": "Ensure IP forwarding is not enabled on Instances.",
"reference_id": "accurics.gcp.NS.130",
"category": "Network Security",
"version": 1
}
}
@@ -1,7 +1,8 @@
package accurics

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

0 comments on commit 1a90445

Please sign in to comment.