From looking at the code and documentation, it appears that SSL is only supported for redis as a broker, but not as a result backend. Is that right?
Currently we do some yucky monkey-patching of the code in our tasks file:
import celery.backends.redis
import redis
import ssl
original = celery.backends.redis.RedisBackend._params_from_url
def patched(*args, **kwargs):
result = original(*args, **kwargs)
result.update({
'connection_class': redis.SSLConnection,
'ssl_cert_reqs': ssl.CERT_NONE,
})
return result
celery.backends.redis.RedisBackend._params_from_url = patched
The code change in celery to support SSL for redis backends would be small. Would you accept a patch for that?
It should probably use a different config name than broker_use_ssl. Maybe backend_use_ssl?
From looking at the code and documentation, it appears that SSL is only supported for redis as a broker, but not as a result backend. Is that right?
Currently we do some yucky monkey-patching of the code in our tasks file:
The code change in celery to support SSL for redis backends would be small. Would you accept a patch for that?
It should probably use a different config name than
broker_use_ssl. Maybebackend_use_ssl?