github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/rules/cloud/policies/openstack/compute/no_public_access.tf.go (about)

     1  package compute
     2  
     3  var terraformNoPublicAccessGoodExamples = []string{
     4  	`
     5   resource "openstack_fw_rule_v1" "rule_1" {
     6   	name                   = "my_rule"
     7   	description            = "don't let just anyone in"
     8   	action                 = "allow"
     9   	protocol               = "tcp"
    10   	destination_ip_address = "10.10.10.1"
    11   	source_ip_address      = "10.10.10.2"
    12   	destination_port       = "22"
    13   	enabled                = "true"
    14   }
    15   			`,
    16  }
    17  
    18  var terraformNoPublicAccessBadExamples = []string{
    19  	`
    20   resource "openstack_fw_rule_v1" "rule_1" {
    21   	name             = "my_rule"
    22   	description      = "let anyone in"
    23   	action           = "allow"
    24   	protocol         = "tcp"
    25   	destination_port = "22"
    26   	enabled          = "true"
    27   }
    28   			`,
    29  }
    30  
    31  var terraformNoPublicAccessLinks = []string{
    32  	`https://registry.terraform.io/providers/terraform-provider-openstack/openstack/latest/docs/resources/fw_rule_v1`,
    33  }
    34  
    35  var terraformNoPublicAccessRemediationMarkdown = ``