Description
share_properties.smb.channel_encryption_type sets the allowed SMB ciphers for Azure Files. AES-128-CCM and AES-128-GCM are both supported encryption algorithms.
Potential impact
The allowed list must meet your organization’s requirements. If the client and server have no permitted cipher in common, an encrypted connection fails.
Remediation
If policy requires AES-256-GCM only, verify that each client supports SMB 3.1.1 and the cipher. Configure Windows 11 and Windows Server 2022 clients to use only AES-256-GCM. Set the account’s list to ["AES-256-GCM"] and check separately that encryption in transit is required. Mount the share and test reads and writes.
Examples
The two Standard StorageV2 examples also change the account name, resource group, region and replication. Keep those settings when changing only the cipher list.
Before
resource "azurerm_storage_account" "file_storage" {
name = "appstorage002"
resource_group_name = azurerm_resource_group.example.name
location = azurerm_resource_group.example.location
account_tier = "Standard"
account_replication_type = "GRS"
share_properties {
smb {
channel_encryption_type = ["AES-128-CCM", "AES-128-GCM"]
}
}
}
After
resource "azurerm_storage_account" "file_storage" {
name = "protectedstore02"
resource_group_name = "testRG"
location = "northeurope"
account_tier = "Standard"
account_replication_type = "LRS"
share_properties {
smb {
channel_encryption_type = ["AES-256-GCM"]
}
}
}