説明
Azure Files の share_properties.smb.channel_encryption_type で、SMB 接続に許可する暗号を選びます。AES-128-CCM と AES-128-GCM もサポート対象の暗号です。
想定される影響
許可リストは組織の暗号化要件に合わせます。クライアントとサーバーに共通の暗号がなければ、暗号化接続は確立できません。
対処方法
AES-256-GCM に限定する場合は、各クライアントが SMB 3.1.1 とこの暗号に対応していることを確認します。Windows 11 と Windows Server 2022 のクライアントでは、AES-256-GCM だけを使うように設定してください。アカウントの設定を ["AES-256-GCM"] にし、転送時の暗号化が必須かも確認してください。共有をマウントし、ファイルの読み書きを試します。
例
2 つの Standard StorageV2 の例では、アカウント名、リソースグループ、リージョン、レプリケーション方式も異なります。既存アカウントの暗号だけを変更する場合は、これらの設定を維持してください。
変更前
hcl
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"]
}
}
}
変更後
hcl
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"]
}
}
}