-
Notifications
You must be signed in to change notification settings - Fork 80
Description
Redis 6 introduced userpass authentication with ACLs, which is used with managed Redis services offered by e.g. DigitalOcean. Though, I cannot authenticate workers because the username is not used for authentication:
php-resque/lib/Resque/Redis.php
Line 127 in 78a8b4a
| // $user is not used, only $password |
Expected Behavior
phpredis supports a variety of data structures to authenticate with a username and password, so I expected the username from my DSN connection string would be used:
php-resque/lib/Resque/Redis.php
Line 126 in 78a8b4a
| list($host, $port, $dsnDatabase, $user, $password, $options) = self::parseDsn($server); |
Current Behavior
php-resque/lib/Resque/Redis.php
Lines 136 to 138 in 78a8b4a
| if ($password){ | |
| $this->driver->auth($password); | |
| } |
Possible Solution
I put together the necessary patches for colinmollenhour/credis to test a very crude implementation, which I have on a fork here (please don't mind the whitespace 😅):
develop...kodumbeats:tls_connections
Context
Trying to hook up Appwrite to a Managed Redis database cluster provided by DigitalOcean but cannot due to this limitation.