github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/rules/cloud/policies/google/compute/no_public_egress.tf.go (about) 1 package compute 2 3 var terraformNoPublicEgressGoodExamples = []string{ 4 ` 5 resource "google_compute_firewall" "good_example" { 6 direction = "EGRESS" 7 allow { 8 protocol = "icmp" 9 } 10 destination_ranges = ["1.2.3.4/32"] 11 }`, 12 } 13 14 var terraformNoPublicEgressBadExamples = []string{ 15 ` 16 resource "google_compute_firewall" "bad_example" { 17 direction = "EGRESS" 18 allow { 19 protocol = "icmp" 20 } 21 destination_ranges = ["0.0.0.0/0"] 22 }`, 23 } 24 25 var terraformNoPublicEgressLinks = []string{ 26 `https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_firewall`, 27 } 28 29 var terraformNoPublicEgressRemediationMarkdown = ``