Skip to content

[Messenger] Add TLS option to Redis transport's DSN #35503

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

Merged
merged 1 commit into from
Jan 29, 2020

Conversation

Nyholm
Copy link
Member

@Nyholm Nyholm commented Jan 29, 2020

Q A
Branch? master
Bug fix? no
New feature? yes
Deprecations? no
Tickets Fix #33025
License MIT
Doc PR

As suggested by @matas-valuzis, this will enable TLS support for Redis transport.

Configure it with the following DSN

redis://127.0.0.1?tls=1

The implementation just prefix the host with tls:// as described here: https://github.com/phpredis/phpredis#connect-open

It is already possible to use TLS with the Redis transport, but there are not support in the DSN until now.

@fabpot fabpot force-pushed the issue-33025-redis-tls branch from f2a63c1 to 09ec907 Compare January 29, 2020 10:44
@fabpot
Copy link
Member

fabpot commented Jan 29, 2020

Thank you @Nyholm.

@Nyholm
Copy link
Member Author

Nyholm commented Jan 29, 2020

Thank you for merging.

@Nyholm Nyholm deleted the issue-33025-redis-tls branch January 29, 2020 11:03
@fabpot fabpot mentioned this pull request May 5, 2020
nicolas-grekas added a commit that referenced this pull request Feb 22, 2021
… (misaert)

This PR was submitted for the 5.x branch but it was merged into the 4.4 branch instead.

Discussion
----------

[Cache] Fix Redis TLS scheme `rediss` for Redis connection

| Q             | A
| ------------- | ---
| Branch?       | 5.x
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       |
| License       | MIT
| Doc PR        | symfony/symfony-docs#14728

Like #35503 on Symfony Messenger, this will enable TLS support for Redis adapter.

The implementation just prefix the host with `tls://` as described here: https://github.com/phpredis/phpredis#connect-open

I don't know how to test it because I guess I need a TLS Redis in `src/Symfony/Component/Cache/Tests/Adapter/RedisAdapterTest.php`.

Commits
-------

3288897 [Cache] Fix Redis TLS scheme `rediss` for Redis connection
nicolas-grekas added a commit that referenced this pull request Feb 26, 2021
… to Redis transport (njutn95)

This PR was squashed before being merged into the 5.3-dev branch.

Discussion
----------

[Messenger] Add `rediss://` DSN scheme support for TLS to Redis transport

| Q             | A
| ------------- | ---
| Branch?       | 5.x
| Bug fix?      | no
| New feature?  | no
| Deprecations? | yes
| Tickets       |
| License       | MIT
| Doc PR        |

This adds a support for `rediss://` DSN (as discussed in #39599) and deprecates the use of `tls` parameter introduced in #35503 so it can be standardized to single format.

Commits
-------

28e7b74 [Messenger] Add `rediss://` DSN scheme support for TLS to Redis transport
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.

[Messenger] TLS/SSL support for Redis Transport
5 participants