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

     1  package appservice
     2  
     3  var terraformUseSecureTlsPolicyGoodExamples = []string{
     4  	`
     5   resource "azurerm_app_service" "good_example" {
     6     name                = "example-app-service"
     7     location            = azurerm_resource_group.example.location
     8     resource_group_name = azurerm_resource_group.example.name
     9     app_service_plan_id = azurerm_app_service_plan.example.id
    10   }
    11   `,
    12  }
    13  
    14  var terraformUseSecureTlsPolicyBadExamples = []string{
    15  	`
    16   resource "azurerm_app_service" "bad_example" {
    17     name                = "example-app-service"
    18     location            = azurerm_resource_group.example.location
    19     resource_group_name = azurerm_resource_group.example.name
    20     app_service_plan_id = azurerm_app_service_plan.example.id
    21   
    22     site_config {
    23   	  min_tls_version = "1.0"
    24     }
    25   }
    26   `,
    27  }
    28  
    29  var terraformUseSecureTlsPolicyLinks = []string{
    30  	`https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/app_service#min_tls_version`,
    31  }
    32  
    33  var terraformUseSecureTlsPolicyRemediationMarkdown = ``