FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat: add mtls support by arithmetic1728 · Pull Request #367 · googleapis/python-storage · GitHub

This repository was archived by the owner on Mar 31, 2026. It is now read-only.
/ python-storage Public archive

feat: add mtls support - #367

Merged
arithmetic1728 merged 9 commits into
masterfrom
for_mtls
Feb 10, 2021
Merged

feat: add mtls support#367
arithmetic1728 merged 9 commits into
masterfrom
for_mtls

Conversation

arithmetic1728 commented Jan 27, 2021
edited
Loading

Copy link
Copy Markdown
Contributor

https://google.aip.dev/auth/4114
googlers see go/mtls-python-cloud-core-clients for more details.

Part of the mtls feature is implemented in googleapis/python-cloud-core#75, and will be released as version 1.16.0.

This PR adds the mtls feature to storage client lib. Note that:
(1) if the python-cloud-core version is < 1.16.0, this PR does nothing, it is backward compatible and won't break any current users.
(2) if the user sets GOOGLE_API_USE_CLIENT_CERTIFICATE env var to "true" to trigger mtls, then the PR checks python-cloud-core version. It throws an exception asking the user to bump the version, if the version < 1.16.0. So probably it is a good idea to release python-cloud-core 1.16.0 before merging this PR.
(3) the unit tests work for both python-cloud-core versions, so unit test shouldn't break after the upgrading in the future.
(4) for mtls testing (running internally), we need to skip a couple of system tests:

  • kms/pubsub tests: because the version used doesn't support mtls
  • any tests using service account credentials: because mtls only works with user credentials

product-auto-label Bot added the api: storage Issues related to the googleapis/python-storage API. label Jan 27, 2021
google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Jan 27, 2021
arithmetic1728 changed the title [WIP] feat: add mtls support feat: add mtls support Jan 29, 2021
arithmetic1728 marked this pull request as ready for review January 31, 2021 12:50
arithmetic1728 requested review from a team, busunkim96, frankyn and tswast January 31, 2021 12:50
frankyn requested a review from andrewsg February 8, 2021 20:03
Comment thread google/cloud/storage/_http.py Outdated
Comment thread google/cloud/storage/blob.py Outdated
Comment thread google/cloud/storage/_http.py Outdated
Comment thread tests/unit/test__http.py
arithmetic1728 requested a review from a team February 9, 2021 23:38
Comment thread google/cloud/storage/blob.py Outdated
arithmetic1728 merged commit d35ab35 into master Feb 10, 2021
arithmetic1728 deleted the for_mtls branch February 10, 2021 19:01
cojenco pushed a commit to cojenco/python-storage that referenced this pull request Oct 13, 2021
* feat: add mtls support

* update

* update

* update

* update

* update
cojenco pushed a commit to cojenco/python-storage that referenced this pull request Oct 13, 2021
* feat: add mtls support

* update

* update

* update

* update

* update
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: storage Issues related to the googleapis/python-storage API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL