-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Added a note about using ":" in Redis passwords #7739
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
``:`` character (e.g. ``foo:bar`` password would be wrongly parsed as ``foo`` | ||
login + ``bar`` password). The solution is to add a fake login to the | ||
connection DSN. Instead of ``'redis://foo:bar@localhost'``, use | ||
``'redis://__ignore_this__:foo:bar@localhost'`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing trailing dot
Thank you Javier. |
I don't know enough about Redis, but is this correct? Is there never a username? SncRedisBundle seems to suggest that there can be a username: https://github.com/snc/SncRedisBundle/blob/master/Tests/DependencyInjection/Configuration/RedisDsnTest.php#L203-L204 If you can have a username, then this needs to be tweaked. If you cannot have a username, then the master branch needs some work - it has expanded redis details ( |
@nicolas-grekas Can you help us here? |
No username, only a password |
They are only speaking about password in their manual |
This fixes #7531.