feat: support entraid for azure managed redis - #39397
Open
wylswz wants to merge 11 commits into
Open
Conversation
Contributor
Pyrefly Type Coverage
|
Contributor
There was a problem hiding this comment.
Pull request overview
Adds Azure Managed Redis authentication via Azure Managed Identity (Entra ID) to the backend Redis and Celery integrations, wiring in redis-entraid and a new config flag to enable credential-provider based auth.
Changes:
- Introduces
extensions.azurehelpers (credential provider + Celery broker URL rewriting) and adds unit tests. - Adds
REDIS_USE_AZURE_MANAGED_IDENTITYconfig/env flag and integrates it into Redis client creation and Celery configuration. - Adds the
redis-entraiddependency (and lockfile updates).
Reviewed changes
Copilot reviewed 7 out of 8 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| docker/.env.example | Adds REDIS_USE_AZURE_MANAGED_IDENTITY env toggle example. |
| api/pyproject.toml | Adds redis-entraid dependency pin. |
| api/uv.lock | Locks redis-entraid and its transitive dependencies. |
| api/extensions/ext_redis.py | Enables Redis credential provider auth when managed identity is enabled. |
| api/extensions/ext_celery.py | Applies Entra ID auth to Celery broker and sets Redis backend credential provider. |
| api/extensions/azure.py | New Azure/Entra ID credential provider wrapper and Celery broker URL helper. |
| api/configs/middleware/cache/redis_config.py | Adds REDIS_USE_AZURE_MANAGED_IDENTITY setting to Redis config. |
| api/tests/unit_tests/extensions/test_azure.py | New unit tests covering Azure Redis URL and credential-provider helpers. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
wylswz
force-pushed
the
feat/redis-azure-managed-identity
branch
from
July 22, 2026 07:20
7235594 to
8dd62b6
Compare
wylswz
marked this pull request as draft
July 22, 2026 07:41
wylswz
marked this pull request as ready for review
July 22, 2026 09:21
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Important
Fixes #<issue number>.Summary
Added EntraID support for azure managed redis.
Resolves ESQ1-183
Screenshots
Checklist
make lint && make type-check(backend) andcd web && pnpm exec vp staged(frontend) to appease the lint gods