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

Use secure redis connection if config is set to use TLS #135

Merged
merged 2 commits into from
Apr 7, 2024

Conversation

pyr0hu
Copy link
Contributor

@pyr0hu pyr0hu commented Apr 6, 2024

When using secure Redis connections with TLS, Reverb will only construct a TCP connection and could not re-use the existing TLS connection.

rediss:// is the secure scheme when using TLS (See: https://www.iana.org/assignments/uri-schemes/prov/redis and also clue/reactphp-redis repository)

This PR checks if the Redis connection has a scheme option with tls as value (as per Laravel's documentation) and add's the s to the connection URL.

PS: the $protocol variable name might not be the best choice so I'm open for suggestions on that.

@taylorotwell taylorotwell requested a review from joedixon April 7, 2024 17:34
@taylorotwell taylorotwell merged commit 4d64c3b into laravel:main Apr 7, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants