github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/rules/cloud/policies/azure/network/no_public_egress.tf.go (about)

     1  package network
     2  
     3  var terraformNoPublicEgressGoodExamples = []string{
     4  	`
     5   resource "azurerm_network_security_rule" "good_example" {
     6   	direction = "Outbound"
     7   	destination_address_prefix = "10.0.0.0/16"
     8   	access = "Allow"
     9   }`,
    10  }
    11  
    12  var terraformNoPublicEgressBadExamples = []string{
    13  	`
    14   resource "azurerm_network_security_rule" "bad_example" {
    15   	direction = "Outbound"
    16   	destination_address_prefix = "0.0.0.0/0"
    17   	access = "Allow"
    18   }`,
    19  }
    20  
    21  var terraformNoPublicEgressLinks = []string{
    22  	`https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/network_security_rule`,
    23  }
    24  
    25  var terraformNoPublicEgressRemediationMarkdown = ``