django / channels_redis

Redis channel layer backend for Django Channels

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support Redis Sentinel Authentication (SENTINEL_KWARGS)

K-MTG opened this issue · comments

Current config does not appear to allow me to define SENTINEL_KWARGS where I can specify a sentinel password for sentinel authentication.

This appears to be a limitation with the current version of airoredis as support was added in 2.0: aio-libs-abandoned/aioredis-py#690

Yep, this is a duplicate of #285

@carltongibson can we reopen this since it's no longer related to #285?

I think we can put sentinel_kwargs here and it should just work:

master_name, aioredis.sentinel.Sentinel(sentinels), **host

@andriilahuta OK, yep. If you want an open a PR with tests for that we can have a look. Thanks. 👍