does Taskiq support ssl/tls? #487
Replies: 1 comment
|
Yes, for the single-node Redis implementations: they delegate connections to redis-py, so use a For example, with a private CA: from taskiq_redis import (
RedisStreamBroker, RedisAsyncResultBackend, ListRedisScheduleSource,
)
url = "rediss://redis.example.com:6380/0" # use your TLS endpoint
tls = {
"ssl_cert_reqs": "required",
"ssl_ca_certs": "/path/to/ca.pem",
}
backend = RedisAsyncResultBackend(redis_url=url, **tls)
broker = RedisStreamBroker(url=url, **tls).with_result_backend(backend)
source = ListRedisScheduleSource(url=url, **tls)The CA file must be available in each client/worker/scheduler environment. For mutual TLS, redis-py also accepts This follows the current broker, backend, and schedule source constructors, which forward connection kwargs to |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
taskiq support ssl/tls for redis broker, redis scheduler and result backend?
All reactions