Skip to content

Redis backend does not support SSL? #3830

Description

@chriskuehl

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions