rhubarbgroup / redis-cache

A persistent object cache backend for WordPress powered by Redis. Supports Predis, PhpRedis, Relay, replication, sentinels, clustering and WP-CLI.
https://wordpress.org/plugins/redis-cache/
GNU General Public License v3.0
427 stars 149 forks source link

No user authentication #434

Closed NizarBlond closed 1 year ago

NizarBlond commented 1 year ago

I am trying to connect via USER + PASS, but the plugin doesn't support this as you claim in the documentation page.

WP_REDIS_PASSWORDL The password of the Redis server, supports ACLs array: ['username', 'password']

I use Predis. I looked at the code and you don't consider the username at all and

$options['parameters']['password'] = WP_REDIS_PASSWORD;

Any idea? For security reason, we want to have a user per website.

tillkruss commented 1 year ago

It works with PhpRedis for sure. Predis might need a PR to make it work.

tillkruss commented 1 year ago

Feel free to open a PR to make it work with Predis.