endlessm / azafea

Service to track device activations and usage metrics
Mozilla Public License 2.0
10 stars 2 forks source link

Support Redis SSL connections #191

Closed dbnicholson closed 2 months ago

dbnicholson commented 2 months ago

Currently if you want to connect to an SSL enabled Redis server, you need to use a TLS proxy. However, redis-py supports TLS connections natively[1] (even in our old version). Expose that as an ssl boolean in the configuration.

  1. https://redis-py.readthedocs.io/en/3.5.3/index.html#redis.Redis

Fixes: #190

This is on top of #189. I'm happy to rebase if that's accepted or rework if it's not.

I tested this with ElasticCache and it seems to work.