Description
On an Azure Native v2 Redis resource, enableNonSslPort controls the plaintext listener independently of TLS connections.
Potential impact
Even on a private network, plaintext credentials and cached data can be exposed and requests can be altered.
Remediation
Update app and admin connection strings to use TLS. Verify the server certificate and cache authentication, then apply enableNonSslPort: false and check that the plaintext port refuses connections. Keep network restrictions in place.
Examples
Both excerpts keep minimumTlsVersion: "1.2". Check your required minimum, and supply the resource group and SKU separately.
Before
yaml
resources:
redis:
type: azure-native:cache:Redis
properties:
enableNonSslPort: true
minimumTlsVersion: "1.2"
After
yaml
resources:
redis:
type: azure-native:cache:Redis
properties:
enableNonSslPort: false
minimumTlsVersion: "1.2"