Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Messenger] Allow password in redis dsn when using sockets #47475

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

Closed

Conversation

PhilETaylor
Copy link
Contributor

@PhilETaylor PhilETaylor commented Sep 2, 2022

Q A
Branch? 6.3
Bug fix? yes #47393
New feature? no
Deprecations? no
Tickets Fix #47393 @Arakmar
License MIT
Doc PR

When a messenger async transport is configured with Redis (unix socket with a password), it gives DSN parsing errors.

Using a Bunch of copy and pasted code blocks from the Redis cache adapter, this PR fixes the bug that doesn't parse a DSN such as

redis://password@/var/run/redis.sock

@PhilETaylor PhilETaylor closed this Sep 2, 2022
@PhilETaylor PhilETaylor reopened this Sep 2, 2022
@PhilETaylor
Copy link
Contributor Author

Ok @fabpot the AppVeyer failure is confusing me, its a totally different component ... all other tests pass...

@carsonbot
Copy link

Hey!

I think @nesk has recently worked with this code. Maybe they can help review this?

Cheers!

Carsonbot

Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

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

This looks like a new feature to me, that should be for 6.3 I guess.

@PhilETaylor PhilETaylor changed the base branch from 5.4 to 6.3 January 12, 2023 09:58
@PhilETaylor
Copy link
Contributor Author

Screwed up rebase. Will retry.

@PhilETaylor
Copy link
Contributor Author

[Messenger] Allow password in redis dsn when using sockets #48959

nicolas-grekas added a commit that referenced this pull request Jan 13, 2023
…kets (PhilETaylor)

This PR was squashed before being merged into the 6.3 branch.

Discussion
----------

[Messenger] Allow password in redis dsn when using sockets

| Q             | A
| ------------- | ---
| Branch?       | 6.3
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       | Fix #47393 `@Arakmar`
| License       | MIT
| Doc PR        |

When a messenger async transport is configured with Redis (unix socket with a password), it gives DSN parsing errors.

Using a Bunch of copy and pasted code blocks from the Redis cache adapter, this PR fixes the bug that doesn't parse a DSN such as

`redis://password@/var/run/redis.sock`

Replaces bad rebased #47475

Commits
-------

9af8ccf [Messenger] Allow password in redis dsn when using sockets
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.

Password not working with an unix socket for Messenger redis transport
4 participants