설명
Azure Cache for Redis의 비암호화 포트를 열면 TLS 포트와 별개로 평문 연결을 사용할 수 있습니다.
잠재적 영향
이 포트로 전송한 캐시 데이터, 세션 토큰과 자격 증명은 통신 경로에 노출될 수 있습니다.
해결 방법
애플리케이션과 관리 도구를 TLS 포트로 전환하고 서버 인증서와 호스트 이름을 검증하세요. 정상 연결을 확인한 뒤 비암호화 포트를 끄고 평문 연결이 거부되는지 시험하세요. 캐시 인증과 네트워크 제한은 유지하세요.
예시
두 예시는 같은 Standard 캐시에서 최소 TLS 1.2를 유지합니다. 참조한 리소스 그룹을 준비하고, AzureRM 3.117.1에서는 enable_non_ssl_port = false, 5.6.0에서는 non_ssl_port_enabled = false를 사용하세요.
변경 전
hcl
resource "azurerm_redis_cache" "example" {
name = "example-cache"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
capacity = 2
family = "C"
sku_name = "Standard"
enable_non_ssl_port = true
minimum_tls_version = "1.2"
redis_configuration {
}
}
변경 후
hcl
resource "azurerm_redis_cache" "example" {
name = "example-cache"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
capacity = 2
family = "C"
sku_name = "Standard"
enable_non_ssl_port = false
minimum_tls_version = "1.2"
redis_configuration {
}
}