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 feature by arithmetic1728 · Pull Request #492 · googleapis/python-bigquery

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

Conversation

@arithmetic1728

@arithmetic1728 arithmetic1728 commented Jan 28, 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 this doc 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 bigquery 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.

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: bigquery Issues related to the googleapis/python-bigquery API. label Jan 28, 2021
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Jan 28, 2021
arithmetic1728
arithmetic1728 commented Jan 28, 2021
View reviewed changes
Comment thread google/cloud/bigquery/client.py Resolved

Uh oh!

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

@arithmetic1728
feat: add mtls feature
e716ea6
@arithmetic1728
arithmetic1728 force-pushed the mtls_rebase branch from 66bc033 to e716ea6 Compare January 28, 2021 23:08
@arithmetic1728 arithmetic1728 changed the title [WIP] feat: add mtls feature feat: add mtls feature Jan 28, 2021
@arithmetic1728
update
935b431
@arithmetic1728
arithmetic1728 marked this pull request as ready for review February 1, 2021 09:57
@arithmetic1728
arithmetic1728 requested review from a team, busunkim96, steffnay and tswast and removed request for a team February 1, 2021 09:57
@tswast tswast mentioned this pull request Feb 4, 2021
increase minimum version of google-cloud-core to 1.6.0 #509
Closed
tswast
tswast reviewed Feb 4, 2021
View reviewed changes

@tswast tswast left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Looking good, thanks! Just a few nits.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread google/cloud/bigquery/_http.py Resolved

Uh oh!

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

Comment thread google/cloud/bigquery/client.py Resolved

Uh oh!

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

Comment thread google/cloud/bigquery/client.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.

arithmetic1728 and others added 4 commits February 4, 2021 13:53
@arithmetic1728 @tswast
Update google/cloud/bigquery/_http.py
dc255b4
Co-authored-by: Tim Swast <[email protected]>
@arithmetic1728 @tswast
Update google/cloud/bigquery/client.py
0008d75
Co-authored-by: Tim Swast <[email protected]>
@arithmetic1728 @tswast
Update google/cloud/bigquery/client.py
9df7a92
Co-authored-by: Tim Swast <[email protected]>
@arithmetic1728 @tswast
Update tests/unit/test__http.py
d28042c
Co-authored-by: Tim Swast <[email protected]>
@arithmetic1728

arithmetic1728 commented Feb 4, 2021

Copy link
Copy Markdown
Contributor Author

Looking good, thanks! Just a few nits.

Committed all the suggested changes. Thank you!

All reactions

Sorry, something went wrong.

Uh oh!

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

tswast
tswast approved these changes Feb 5, 2021
View reviewed changes
@tswast
tswast merged commit 1823cad into master Feb 5, 2021
@tswast
tswast deleted the mtls_rebase branch February 5, 2021 15:53
@arithmetic1728 arithmetic1728 mentioned this pull request Feb 9, 2021
feat: add mtls support googleapis/python-storage#367
Merged
gcf-merge-on-green Bot pushed a commit that referenced this pull request Feb 10, 2021
@release-please
chore: release 2.8.0 (#510)
1773dae
🤖 I have created a release \*beep\* \*boop\* 
---
## [2.8.0](https://www.github.com/googleapis/python-bigquery/compare/v2.7.0...v2.8.0) (2021-02-08)


### Features

* add mtls support to client ([#492](https://www.github.com/googleapis/python-bigquery/issues/492)) ([1823cad](https://www.github.com/googleapis/python-bigquery/commit/1823cadee3acf95c516d0479400e4175349ea199))


### Bug Fixes

* don't try to close closed cursors ([#498](https://www.github.com/googleapis/python-bigquery/issues/498)) ([bf44e7b](https://www.github.com/googleapis/python-bigquery/commit/bf44e7b67d2de41c13053a4550484b9ea049db3e))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
@release-please release-please Bot mentioned this pull request Jan 4, 2022
chore(main): release python-bigquery 1.27.1 #1097
Closed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@steffnay steffnay Awaiting requested review from steffnay
@busunkim96 busunkim96 Awaiting requested review from busunkim96
1 more reviewer
@tswast tswast tswast 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: bigquery Issues related to the googleapis/python-bigquery 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.

2 participants

@arithmetic1728 @tswast
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.