説明
Azure Cache for Redis の TLS 接続には 1.2 以降が必要です。AzureRM 5.6.0 では minimum_tls_version の既定値は "1.2" です。
想定される影響
TLS 1.0 または 1.1 にしか対応しないクライアントは接続できません。平文ポートとクライアントのサーバー証明書検証は別途確認が必要です。
対処方法
minimum_tls_version = "1.2" を明示し、非 TLS ポートを無効にしてください。各アプリが TLS 1.2 以降で接続し、サーバー証明書を検証してキャッシュで認証できることをテストします。
例
どちらの例も平文ポートを無効にしています。最初の "1.1" は過去の設定で、現在のサービスと AzureRM 5.6.0 では使用できません。
変更前
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"
non_ssl_port_enabled = false
minimum_tls_version = "1.1"
}
変更後
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"
non_ssl_port_enabled = false
minimum_tls_version = "1.2"
}