TLS(転送中暗号化)を有効にした Elasticache Redis への接続

当社の Discourse は、Amazon ElastiCache で作成された Redis クラスターを使用しており、転送中の暗号化(TLS)を有効にできます。しかし、ElastiCache で TLS を有効にすると、Discourse は Redis に接続できなくなります。

redis-rb クライアントは対応しているようですが(類似のIssue Redis::ConnectionError: Connection lost (ECONNRESET) when using ElastiCache with TLS enabled · Issue #771 · redis/redis-rb · GitHub を参照)、Discourse 自体はこの機能に対応していないようです。

「いいね!」 2

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

「いいね!」 3

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

@sam 氏のおかげで hiredis が長らく機能しなくなったため、Redis 接続に TLS 機能を追加するこの PR を作成しました。

現在テスト中ですが、正常に動作しています。

「いいね!」 4