-
Notifications
You must be signed in to change notification settings - Fork 487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds EntraID auth support to all Redis Components #3470
Conversation
Signed-off-by: Bernd Verst <[email protected]>
Signed-off-by: Bernd Verst <[email protected]>
I will cherry pick this into Release 1.14 once merged. |
Signed-off-by: Bernd Verst <[email protected]>
Signed-off-by: Bernd Verst <[email protected]>
Signed-off-by: Bernd Verst <[email protected]>
Signed-off-by: Bernd Verst <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this PR, it solves a long-standing open issue. Overall seems good, I just have some comments.
Signed-off-by: Bernd Verst <[email protected]>
Signed-off-by: Bernd Verst <[email protected]>
Signed-off-by: Bernd Verst <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Signed-off-by: Bernd Verst <[email protected]>
The feature will work like this for all Redis components: apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: statestore
spec:
type: state.redis
initTimeout: 30s
metadata:
- name: redisHost
value: MYHOSTNAME.redis.cache.windows.net:6380
- name: useEntraID
value: "true"
- name: enableTLS
value: "true" (change the component type of course) TLS must be enabled, and the This will automatically support all forms of EntraID (AAD) authentication, including Workload Identity, Managed Identities and also Azure CLI Credential (User principal). For more details on all those see: Of course don't forget to enable Entra ID authentication on your Azure Redis server itself! And enabling it takes a few minutes to propagate as well. |
In my own testing I just assigned myself (my user) the |
Description
Implements EntraID / AAD support for Azure Cache for Redis across all components
For a component yaml file to use Azure Cache for Redis with Entra ID see this:
This will assume that either your UserPrincipal (via AzureCLICredential) or the SystemAssigned Managed Identity have the RedisDataOwner role permission. If a user-assigned identity is to be used the
azureClientID
property needs to be specified.Issue reference
Adds #3088
Checklist
Please make sure you've completed the relevant tasks for this PR, out of the following list:
Testing
Manually modified certification and conformance tests to run again Azure Cache for Redis using modified component configurations to exercise the new auth mechanism.