-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
redisOptsFromUrl
does not set tls
to true for rediss://
urls
#2325
Comments
+1 |
Found a way to specify the tls flag after digging into the queue constructor:
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
For anyone finding this, if you're on Bull 4, it's worth noting that while Bull doesn't properly handle
To the end of your connection string, and assuming you're passing it directly into Bull (ie. not using the separate host/username/password options), it should enable TLS when calling into IORedis, and connect successfully. |
Hey @craigotis , I am on Bull 4.9.0 and unfortunately the |
@emanuelegorga In what ways does it fail? Can you try with both |
It hangs when trying to enqueue the first job. The same behaviour happens locally if I purposely use an invalid host which will result in Bull not being able to connect to Redis. One thing that makes me doubt about the As I understand, the parameter is supposed to be taken and passed as option to the Redis instance, however, the documentation shows that the options related to TLS are supposed to go within an object instead of a boolean value like |
@emanuelegorga You can put it in the options object if you want to parse it yourself. (Or know at that point that TLS is desired.) Our specific issue was related to Bull not switching on TLS as a result of seeing |
Understand. I feel like I am experiencing the same problem for the reasons mentioned in my previous comment although for some reason still unknown to me it is failing to connect. I appreciate your help here anyway @craigotis ! |
This is what I came up with and it works perfectly. According to the ioredis docs, this is how you define tls, you just leave it empty.
|
Description
When working with TLS encrypted redis connections (e.g., Elasticache), the Redis connection fails to connect because the
tls
attribute on the redis option during connecting is not set.Minimal, Working Test code to reproduce the issue.
Bull version
4.70
Additional information
The text was updated successfully, but these errors were encountered: