Azure Files SMB 채널 암호 정책 점검

Azure Files의 SMB 채널 암호를 조직 요구와 클라이언트 호환성에 맞게 선택하세요.

설명

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"]을 지정하고 전송 암호화가 필수인지도 확인하세요. 공유를 마운트해 파일 읽기·쓰기를 시험하세요.

예시

두 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"]
    }
  }
}

참조