Ensure storage accounts have secure transfer enabled

Error: Storage accounts without secure transfer enabled

Bridgecew Policy ID: BC_AZR_NETWORKING_19
Checkov Check ID: CKV_AZURE_60
Severity: HIGH

Storage accounts without secure transfer enabled

Description

The secure transfer option enhances the security of a storage account by only allowing requests to the storage account by a secure connection. For example, when calling REST APIs to access storage accounts, the connection must use HTTPS. Any requests using HTTP will be rejected when 'secure transfer required' is enabled. When using the Azure files service, connection without encryption will fail, including scenarios using SMB 2.1, SMB 3.0 without encryption, and some flavors of the Linux SMB client. Because Azure storage doesn’t support HTTPS for custom domain names, this option is not applied when using a custom domain name.

Fix - Buildtime

Terraform

  • Resource: azurerm_storage_account
  • Argument: enable_https_traffic_only
resource "azurerm_storage_account" "example" {
              ...
           +  enable_https_traffic_only = true
            }

Did this page help you?