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

[ECO-4767] Fix server certificate verification #2

Merged
merged 1 commit into from
May 13, 2024

Conversation

lawrence-forooghian
Copy link
Collaborator

For ably/ably-ruby#396. See code comment for details.

@lawrence-forooghian lawrence-forooghian changed the base branch from master to create-ably-fork April 25, 2024 17:48
@lawrence-forooghian lawrence-forooghian force-pushed the ECO-4767-fix-tls-verification branch 4 times, most recently from 62afd51 to 80b79cf Compare April 25, 2024 17:57
lawrence-forooghian added a commit to ably/ably-ruby that referenced this pull request Apr 25, 2024
@lawrence-forooghian
Copy link
Collaborator Author

(This is based on top of #1, which forks the library for Ably. That one is still a WIP but I think that this PR can be reviewed.)

@lawrence-forooghian lawrence-forooghian marked this pull request as ready for review April 26, 2024 12:16
Copy link
Collaborator

@umair-ably umair-ably left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - great use of comments btw 👏

@lawrence-forooghian lawrence-forooghian force-pushed the ECO-4767-fix-tls-verification branch from 39dbd71 to 2862fbf Compare April 26, 2024 14:54
Base automatically changed from create-ably-fork to master April 26, 2024 17:38
Copy link
Collaborator

@sacOO7 sacOO7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lawrence-forooghian lawrence-forooghian force-pushed the ECO-4767-fix-tls-verification branch from 2862fbf to 9996b7b Compare April 26, 2024 18:15
@graham-russell graham-russell self-requested a review May 3, 2024 09:24
Copy link

@graham-russell graham-russell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM. Verifying the certificate before the handshake is complete is the right thing to do.

@lawrence-forooghian lawrence-forooghian merged commit e31d776 into master May 13, 2024
10 checks passed
@lawrence-forooghian lawrence-forooghian deleted the ECO-4767-fix-tls-verification branch May 13, 2024 14:34
lawrence-forooghian added a commit to ably/ably-ruby that referenced this pull request May 15, 2024
See ably-forks/em-http-request#2.

This fixes the internet-up check and hence the fallback hosts mechanism.

Resolves #396.
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.

4 participants