channels_redis icon indicating copy to clipboard operation
channels_redis copied to clipboard

Support Redis Sentinel Authentication (SENTINEL_KWARGS)

Open K-MTG opened this issue 2 years ago • 3 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: https://github.com/aio-libs/aioredis-py/issues/690

K-MTG avatar Mar 06 '22 18:03 K-MTG

Yep, this is a duplicate of #285

carltongibson avatar Mar 07 '22 17:03 carltongibson

@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: https://github.com/django/channels_redis/blob/d946ce2875b2a2efe2c4cbfb14107fd7d7a4a551/channels_redis/core.py#L138

andriilahuta avatar Jul 17 '22 22:07 andriilahuta

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

carltongibson avatar Jul 18 '22 06:07 carltongibson