Page MenuHomePhabricator

Redis: Add support for TLS
Closed, ResolvedPublic

Description

For some setups, it's necessary to access Redis through TLS. This is already supported by phpredis 5.x, but the option handling in RedisConnectionPool.php doesn't support specifying Redis TLS endpoints, like tls://redis.server.example

I'd like to add support for that style of Redis hosts in RedisConnectionPool, what do you think?

Event Timeline

kchapman added subscribers: aaron, kchapman.

tagging Performance for @aaron to provide input into the proposal.

The RedisConnectionPool patch idea seems reasonable to me.

Change 554966 had a related patch set uploaded (by Juan Osorio (Microsoft); owner: Juan Osorio (Microsoft)):
[mediawiki/core@master] Adds support for TLS to RedisConnectionPool

https://gerrit.wikimedia.org/r/554966

CCicalese_WMF subscribed.

It looks like the patch has received some review and is awaiting updating. Untagging for now, but please feel free to re-tag Platform Engineering when additional code review is needed.

Change 554966 merged by jenkins-bot:

[mediawiki/core@master] objectcache: Adds support for TLS to RedisConnectionPool

https://gerrit.wikimedia.org/r/554966