Conexión a Elasticache Redis con TLS habilitado (cifrado en tránsito)

Nuestro Discourse utiliza un clúster de Redis creado en Amazon ElastiCache, lo que permite habilitar el cifrado en tránsito (TLS). Sin embargo, una vez que habilitamos TLS en ElastiCache, Discourse deja de conectarse a Redis.

Parece que Discourse no admite esto, aunque el cliente redis-rb sí lo hace, como se menciona en un problema similar aquí: Redis::ConnectionError: Connection lost (ECONNRESET) when using ElastiCache with TLS enabled · Issue #771 · redis/redis-rb · GitHub

2 Me gusta

I’m adding pr-welcome on that. Feel free to submit one @Yevhenii_Baraniuk :wink:

3 Me gusta

Update: I started implementing this feature but faced the problem that hiredis driver which Discourse uses doesn’t support SSL at the moment (as for Jul 2019), though redis-rb client does. I’ll come back to the PR once the new version of hiredis is released which is going to support SSL :slight_smile:

4 Me gusta

Dado que hiredis ya no se mantiene gracias a @sam, he creado esta PR que añade capacidades TLS a nuestras conexiones de Redis:

Lo estoy probando en este momento y funciona.

4 Me gusta