github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/rules/cloud/policies/nifcloud/network/http_not_used.tf.go (about) 1 package network 2 3 var terraformHttpNotUsedGoodExamples = []string{ 4 ` 5 resource "nifcloud_elb" "good_example" { 6 protocol = "HTTPS" 7 } 8 `, 9 ` 10 resource "nifcloud_load_balancer" "good_example" { 11 load_balancer_port = 443 12 } 13 `, 14 } 15 16 var terraformHttpNotUsedBadExamples = []string{ 17 ` 18 resource "nifcloud_elb" "bad_example" { 19 protocol = "HTTP" 20 21 network_interface { 22 network_id = "net-COMMON_GLOBAL" 23 is_vip_network = true 24 } 25 } 26 `, 27 ` 28 resource "nifcloud_load_balancer" "bad_example" { 29 load_balancer_port = 80 30 } 31 `, 32 } 33 34 var terraformHttpNotUsedLinks = []string{ 35 `https://registry.terraform.io/providers/nifcloud/nifcloud/latest/docs/resources/elb#protocol`, 36 `https://registry.terraform.io/providers/nifcloud/nifcloud/latest/docs/resources/load_balancer#load_balancer_port`, 37 } 38 39 var terraformHttpNotUsedRemediationMarkdown = ``