This repository was archived by the owner on Sep 17, 2021. It is now read-only.
This repository was archived by the owner on Sep 17, 2021. It is now read-only.
SSL Redis isn't usable #1175
Open
Description
IF you setup Redis with SSL, celery (e.g. scheduler/workers) won't be able to connect to it and get failures in the logs. E.g.
[2019-02-19 18:47:50,400: ERROR/MainProcess] consumer: Cannot connect to redis://***:6379/0: Error while reading from socket: ('Connection closed by server.',).
Trying again in 6.00 seconds...
Should be able to adjust the celeryconfig.py file to be:
broker_url = '{}://{}/{}'.format(
os.getenv('SECURITY_MONKEY_REDIS_PROTOCOL', 'redis'),
os.getenv('SECURITY_MONKEY_REDIS_HOST', 'redis'),
os.getenv('SECURITY_MONKEY_REDIS_DB', '0')
)
Then for those using SSL, set SECURITY_MONKEY_REDIS_PROTOCOL to "rediss" not "redis" and then things seem to work fine.
Metadata
Metadata
Assignees
Labels
No labels