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

     1  package storage
     2  
     3  var terraformEnforceHttpsGoodExamples = []string{
     4  	`
     5   resource "azurerm_storage_account" "good_example" {
     6     name                      = "storageaccountname"
     7     resource_group_name       = azurerm_resource_group.example.name
     8     location                  = azurerm_resource_group.example.location
     9     account_tier              = "Standard"
    10     account_replication_type  = "GRS"
    11     enable_https_traffic_only = true
    12   }
    13   `,
    14  }
    15  
    16  var terraformEnforceHttpsBadExamples = []string{
    17  	`
    18   resource "azurerm_storage_account" "bad_example" {
    19     name                      = "storageaccountname"
    20     resource_group_name       = azurerm_resource_group.example.name
    21     location                  = azurerm_resource_group.example.location
    22     account_tier              = "Standard"
    23     account_replication_type  = "GRS"
    24     enable_https_traffic_only = false
    25   }
    26   `,
    27  }
    28  
    29  var terraformEnforceHttpsLinks = []string{
    30  	`https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/storage_account#enable_https_traffic_only`,
    31  }
    32  
    33  var terraformEnforceHttpsRemediationMarkdown = ``