GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: add mtls support by arithmetic1728 · Pull Request #367 · googleapis/python-storage

This repository was archived by the owner on Mar 31, 2026. It is now read-only.

Conversation

@arithmetic1728

@arithmetic1728 arithmetic1728 commented Jan 27, 2021 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@product-auto-label product-auto-label Bot added the api: storage Issues related to the googleapis/python-storage API. label Jan 27, 2021
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Jan 27, 2021
@arithmetic1728
arithmetic1728 force-pushed the for_mtls branch from 79b5dd2 to 9ac0063 Compare January 28, 2021 01:49
@arithmetic1728 arithmetic1728 changed the title [WIP] feat: add mtls support feat: add mtls support Jan 29, 2021
@arithmetic1728
feat: add mtls support
01a97a2
@arithmetic1728
arithmetic1728 force-pushed the for_mtls branch from 2bf1118 to 01a97a2 Compare January 29, 2021 10:35
arithmetic1728 added 2 commits January 31, 2021 03:53
@arithmetic1728
update
24346f8
@arithmetic1728
update
d128360
@arithmetic1728
arithmetic1728 marked this pull request as ready for review January 31, 2021 12:50
@arithmetic1728
arithmetic1728 requested review from a team, busunkim96, frankyn and tswast January 31, 2021 12:50
arithmetic1728 and others added 2 commits February 8, 2021 11:26
@arithmetic1728
update
8562cf2
@arithmetic1728
Merge branch 'master' into for_mtls
2325031
@frankyn
frankyn requested a review from andrewsg February 8, 2021 20:03
andrewsg
andrewsg suggested changes Feb 9, 2021
View reviewed changes
Comment thread google/cloud/storage/_http.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google/cloud/storage/_http.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google/cloud/storage/_http.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google/cloud/storage/blob.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

frankyn
frankyn suggested changes Feb 9, 2021
View reviewed changes
Comment thread google/cloud/storage/_http.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread tests/unit/test__http.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread tests/system/test_system.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread tests/system/test_system.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

@arithmetic1728
update
dca4785
@arithmetic1728
arithmetic1728 requested a review from a team February 9, 2021 23:38
@arithmetic1728
Merge branch 'master' into for_mtls
e47027b
frankyn
frankyn suggested changes Feb 10, 2021
View reviewed changes
Comment thread google/cloud/storage/blob.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread tests/system/test_system.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread tests/system/test_system.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

arithmetic1728 added 2 commits February 9, 2021 23:43
@arithmetic1728
update
85f64fd
@arithmetic1728
Merge branch 'for_mtls' of https://github.com/googleapis/python-storage…
c16f762
… into for_mtls
frankyn
frankyn approved these changes Feb 10, 2021
View reviewed changes
andrewsg
andrewsg approved these changes Feb 10, 2021
View reviewed changes
@arithmetic1728
arithmetic1728 merged commit d35ab35 into master Feb 10, 2021
@arithmetic1728
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
@arithmetic1728 @cojenco
feat: add mtls support (googleapis#367)
5c334d8
* 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
@arithmetic1728 @cojenco
feat: add mtls support (googleapis#367)
1e76cbe
* feat: add mtls support

* update

* update

* update

* update

* update
@release-please release-please Bot mentioned this pull request Jan 12, 2022
chore(main): release 3.0.0 #688
Closed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@tswast tswast Awaiting requested review from tswast
@busunkim96 busunkim96 Awaiting requested review from busunkim96
2 more reviewers
@andrewsg andrewsg andrewsg approved these changes
@frankyn frankyn frankyn approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

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

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@arithmetic1728 @andrewsg @frankyn
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.