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

chore: set minimum TLS version to v1.2 #139

Merged
merged 2 commits into from
Mar 21, 2022
Merged

chore: set minimum TLS version to v1.2 #139

merged 2 commits into from
Mar 21, 2022

Conversation

pyrooka
Copy link
Member

@pyrooka pyrooka commented Mar 8, 2022

This PR introduces a custom HTTP adapter that wraps the original one
and adds SSL context, that sets the minimum TLS version required to v1.2.

@pyrooka pyrooka requested a review from padamstx March 8, 2022 19:43
Copy link
Member

@padamstx padamstx left a comment

Choose a reason for hiding this comment

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

LGTM.
We just need to make really sure that this will also work with retries enabled.

Edit: I think we need to also test these changes with a couple of integration tests within the platform-services python SDK just to make sure that these changes work correctly with some actual IBM Cloud services.

@pyrooka pyrooka requested a review from ricellis March 16, 2022 13:38
Copy link
Member

@ricellis ricellis left a comment

Choose a reason for hiding this comment

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

I validated that mounting the SSLHTTPAdapter for http as well as https doesn't seem to cause any problems. LGTM I have just one question arond the SSL context, but that's more for my understanding than any impediment to merging this.

ibm_cloud_sdk_core/utils.py Show resolved Hide resolved
@pyrooka pyrooka merged commit 8d6ec4b into main Mar 21, 2022
@pyrooka pyrooka deleted the http-min-tls branch March 21, 2022 11:11
ibm-devx-sdk pushed a commit that referenced this pull request Mar 21, 2022
## [3.15.1](v3.15.0...v3.15.1) (2022-03-21)

### Bug Fixes

* set minimum TLS version to v1.2 ([#139](#139)) ([8d6ec4b](8d6ec4b))
@ibm-devx-sdk
Copy link

🎉 This PR is included in version 3.15.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

4 participants