Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added phpredis sentinel auth #698

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

McFistyBuns
Copy link

Updated the PhpredisClientFactory to allow for password authentication when using redis sentinel. The default is to use the password set in the parameters password configuration, but also allows for an override in the dsn.

#697 (comment)

Updated the PhpredisClientFactory to allow for password authentication when using redis sentinel.  The default is to use the password set in the parameters password configuration, but also allows for an override in the dsn.
@ostrolucky
Copy link
Collaborator

I've worked on this, but I realized this approach cannot work as is, because it requires having same password on both: sentinel and redis servers. In case somebody had password on redis servers only and sentinel unprotected, this change will attempt to auth the sentinel now and connection will fail. Needs some rethinking.

@ostrolucky ostrolucky added feature Introduces new functionality phpredis Specific to PhpRedis labels Feb 13, 2023
@ostrolucky
Copy link
Collaborator

Predis also doesn't support this predis/predis#594 And they have a same concern as I have pointed out: username/password cannot be reused for sentinel, there should be different configuration. And at this point I don't really want to introduce it, because if we introduce new option and later predis introduces separate one, it will most likely be a different option and we would then have to support both :/

@ostrolucky ostrolucky force-pushed the master branch 9 times, most recently from 08c1156 to 5a26333 Compare March 12, 2023 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Introduces new functionality phpredis Specific to PhpRedis
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants