-
Notifications
You must be signed in to change notification settings - Fork 17
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
TLS/SSL Support #35
Comments
Based on the sentinel documentation of |
I'm afraid you are right :'( Now to find a solution, because our production clusters have mandatory TLS |
But here I see a TLS commit : phpredis/phpredis#2114 |
Here there are samples with TLS enabled : https://github.com/phpredis/phpredis?tab=readme-ov-file |
Interesting find, maybe it is possible. This should mostly affect the following part of the code: laravel-redis-sentinel/src/Connectors/PhpRedisSentinelConnector.php Lines 84 to 129 in 3d6fad1
However, the way the phpredis library works, you can only pass the object when its actually being used. So the workaround of L128 needs to be used for this as well, making the code a bit bulky. If you want to give it a try, feel free. Otherwise I'll see when I find the time. |
I'm switching to my work account (same person as DevHeaven ;-) |
By the statement "workaround L128" , you mean the fact that RedisSentinel doesn't accept more then 6 function parameters ? |
Sorry if that wasn't very helpful. I'm not sure if the SSL context works similar to the auth options. With the auth options, the |
Hmmm, if RedisSentinel indeed requires it not to be null, then it would be impossible to provide any following parameters without the auth option (given we can't rewrite the function declaration ourselves). One could argue that if you want to secure your connection with TLS , you would not want to use NOAUTH. Could you work out an example of connecting with both AUTH and TLS/SSL Context ? |
Apparantly the latest version 6.1 , released 4 weeks ago includes support for TLS/SSL : phpredis/phpredis@f2bb2cd#diff-16398f4eda044362a02548e382f2ec7dfd1aae291be015c075d2409928ddf295R11 |
Hello
I believe this package does not yet support connecting to Sentinel over TLS/SSL ?
Are you considering implementation ?
If it does exist, could you point me to where the configuration is done ?
Much appreciated
The text was updated successfully, but these errors were encountered: