Ensure that your Microsoft Azure Cache for Redis servers are configured to use Microsoft Entra ID for authentication rather than access keys. Microsoft Entra Authentication is a password-free mechanism that integrates with Microsoft Entra ID and incorporates Role-Based Access Control (RBAC) functionality, facilitated through Access Control Lists (ACLs) supported in open-source Redis.
Using access keys for authentication can result in serious security vulnerabilities due to the potential leakage of secrets to source control systems and their exposure to the public. To ensure optimal security, it is recommended to utilize Microsoft Entra ID with managed identities to authorize requests to your Redis cache. This method offers superior security and ease of use compared to shared access key authorization. Enabling Microsoft Entra Authentication allows connections via a user, service principal, or managed identity. After configuring your Azure Cache for Redis server with Microsoft Entra Authentication, you can create and configure Redis users and Data Access policies.
Disabling access key authentication for a Redis cache server will terminate all client connections, regardless of the authentication method. Consider performing this operation during low traffic or outside of business hours.
Audit
To determine the authentication method configured for your Azure Cache for Redis servers, perform the following operations:
Remediation / Resolution
Using Microsoft Entra Authentication is the secure way to connect your Redis cache. To disable access key authentication and enable Microsoft Entra Authentication for your Azure Cache for Redis servers, perform the following operations:
Modifying existing authentication configuration for Azure Cache for Redis servers using Azure Command Line Interface (Azure CLI) is not currently supported.References
- Azure Official Documentation
- Authentication and authorization in Azure App Service and Azure Functions
- Use Microsoft Entra for cache authentication
- Authentication
- Configure custom data access policies
- Azure security baseline for Azure Cache for Redis
- Azure Command Line Interface (CLI) Documentation
- az account list
- az account set
- az redis list
- az redis show