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

Allow using hosted Redis instances by default #294

Merged

Conversation

schneems
Copy link
Contributor

Hosted Redis servers use self signed certificates (because they do not own the domain they're running on such as compute-1.amazonaws.com) therefore a full SSL connection verification will fail. The fix for that behavior is to disable verification so a self signed certificate can be used docs from a hosted Redis/Key-value store provider.

This PR makes the default behavior to allow connecting to self signed Redis servers.

This failing SSL connection behavior was originally reported in #292, however that issue focuses on raising visibility of such failures.

This is an alternative to #293 that does not introduce a new configuration flag.

Hosted Redis servers use self signed certificates (because they do not own the domain they're running on such as `compute-1.amazonaws.com`) therefore a full SSL connection verification will fail. The fix for that behavior is to disable verification so a self signed certificate can be used [docs from a hosted Redis/Key-value store provider](https://devcenter.heroku.com/articles/connecting-heroku-redis#connecting-in-ruby).

This PR makes the default behavior to allow connecting to self signed Redis servers. 

This failing SSL connection behavior was originally reported in Shopify#292, however that issue focuses on raising visibility of such failures.

This is an alternative to Shopify#293 that does not introduce a new configuration flag.
@schneems schneems marked this pull request as ready for review November 19, 2024 22:48
@ChrisBr
Copy link
Contributor

ChrisBr commented Dec 2, 2024

I'm testing this internally quickly but looks good to me. Sorry for the delay.

@ChrisBr
Copy link
Contributor

ChrisBr commented Dec 3, 2024

Worked, thanks! I will cut a release shortly.

@ChrisBr ChrisBr merged commit 3f780b8 into Shopify:main Dec 3, 2024
1 check passed
@ChrisBr
Copy link
Contributor

ChrisBr commented Dec 3, 2024

@schneems
Copy link
Contributor Author

schneems commented Dec 3, 2024

Thank you!

schneems added a commit to heroku/heroku-buildpack-ruby that referenced this pull request Dec 3, 2024
Should work on hosted redis now Shopify/ci-queue#294
schneems added a commit to heroku/heroku-buildpack-ruby that referenced this pull request Dec 5, 2024
Should work on hosted redis now Shopify/ci-queue#294
schneems added a commit to heroku/heroku-buildpack-ruby that referenced this pull request Dec 5, 2024
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.

2 participants