Skip to content

Conversation

alexander-schranz
Copy link
Contributor

@alexander-schranz alexander-schranz commented Aug 10, 2020

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix -
License MIT
Doc PR symfony/symfony-docs#...

If you use DSN like this it will fail as auth is called with an empty password:

redis://%env(resolve:REDIS_PASSWORD)%@%env(resolve:REDIS_HOST)%

The auth should only be called when a password is set to a specific string.

Else it will fail with:

ERR Client sent AUTH, but no password is set

Redis Conf "redis-nopass.conf":

requirepass ""

Copy link
Member

@chalasr chalasr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With minor comment

@alexander-schranz alexander-schranz changed the title Avoid redis auth call for empty password Fix redis connect with empty password Aug 10, 2020
@alexander-schranz alexander-schranz force-pushed the bugfix/redis-empty-password branch 3 times, most recently from 9a8b439 to e8bcf5f Compare August 10, 2020 12:52
@alexander-schranz alexander-schranz force-pushed the bugfix/redis-empty-password branch from 1b4014f to f7648c0 Compare August 10, 2020 13:22
@fabpot fabpot force-pushed the bugfix/redis-empty-password branch from f7648c0 to 9946f7f Compare August 10, 2020 13:30
@fabpot
Copy link
Member

fabpot commented Aug 10, 2020

Thank you @alexander-schranz.

@fabpot fabpot merged commit b2e99e2 into symfony:4.4 Aug 10, 2020
@alexander-schranz alexander-schranz deleted the bugfix/redis-empty-password branch August 10, 2020 13:41
This was referenced Aug 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants