Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Redis introduced ACL feature in 4.0.0, and this feature is supported by redis-py since 3.4.0[1]. When ACL is enabled, authentication requires username in addition to password. This adds the username argument to Redis backend and Redis Sentinel backend, so that username can be passed in arguments along with password, instead of using client_kwargs and sentinel_kwargs. [1] redis/redis-py@8df8cd5 Closes: #251 Pull-request: #251 Pull-request-sha: 172c195 Change-Id: I4c60316bafca0d600f26b13e867f2b569c1087f5
- Loading branch information
Showing
4 changed files
with
49 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.. change:: | ||
:tags: usecase, redis | ||
|
||
Added new paramref:`.RedisBackend.username` parameter. This is used for | ||
authentication in Redis when RBAC is enabled. Also added new | ||
paramref:`.RedisSentinelBackend.username` parameter, which is used for | ||
authentication in both Redis and Sentinel when RBAC is enabled. |
This file contains 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
This file contains 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
This file contains 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