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

Force TLS peer verification when base URL scheme is HTTPS #133

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

SebouChu
Copy link

Related to this issue on the em-http-request gem.

Currently, every request sent to Keen shows this warning :

[WARNING; em-http-request] TLS hostname validation is disabled (use 'tls: {verify_peer: true}'), see CVE-2020-13482 and https://github.com/igrigorik/em-http-request/issues/339 for details

To fix this, this commit checks the base URL's scheme and forces the TLS peer verification if it's HTTPS.

I recommend to release a new version when this is merged, for security reasons.
Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant