incubator-pagespeed-ngx
incubator-pagespeed-ngx copied to clipboard
Add AUTH support for redis backend
I'm opening a new issue for this like @jmarantz suggested in https://github.com/pagespeed/ngx_pagespeed/issues/777#issuecomment-273570987.
ngx_pagespeed has been supporting redis as a cache backend from version 1.12.34.1.
Redis instances can be started with requirepass password directive. After this client applications must provide AUTH password command to authenticate into redis.
It would be nice if ngx_pagespeed could support this functionality too.
was this ever implemented ?
@centminmod AFAIK no it wasn't
thanks for info @onnimonni
This is a blocker for my ability to connect pagespeed to our redis backend. Hopefully this will get some traction soon-ish.
For anyone willing to help out with this, this might not be super hard.
See
https://github.com/apache/incubator-pagespeed-mod/pull/1854/files for an example of how to wire up a redis-based option. I assume a modification to RedisCache::StartUp() is required to authenticate after opening a connection to redis.