Allowing non-SSL (plaintext) connections to Azure Cache for Redis exposes data in transit to interception and tampering. This can leak credentials and sensitive cached data or enable man-in-the-middle attacks.
For Ansible tasks using the azure.azcollection.azure_rm_rediscache or azure_rm_rediscache modules, the enable_non_ssl_port property must be set to false or omitted so only SSL/TLS connections are permitted. Resources with enable_non_ssl_port: true are flagged. Ensure clients connect over the TLS/SSL port (typically 6380) and validate certificates.
Secure Ansible configuration example:
- name:Create Redis Cache with TLS-only accessazure.azcollection.azure_rm_rediscache:resource_group:my-rgname:my-redislocation:eastussku:name=Standardenable_non_ssl_port:false