-
Notifications
You must be signed in to change notification settings - Fork 4.4k
[BEAM-12641] Use google-auth instead of oauth2client for GCP auth #15004
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
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
2611878
Add adapter to use google-auth creds with apitools
chunyang 0bd2c24
Bump distlib version
chunyang 485c035
Use google-auth-httplib2 library
chunyang cb67cd5
Merge remote-tracking branch 'origin/master' into cyang/auth-shim
chunyang 8b20c57
Remove oauth2client dependency from ownership file
chunyang 23b0fca
Re-add oauth2client to license dep URLs
chunyang 4ea4c56
Fix spacing
chunyang 441bdac
Merge remote-tracking branch 'origin/master' into cyang/auth-shim
chunyang aa6fec3
Merge branch 'master' into cyang/auth-shim
tvalentyn ab47155
Merge remote-tracking branch 'origin/master' into cyang/auth-shim
chunyang 4b29e94
Merge branch 'cyang/auth-shim' of github.com:chunyang/beam into cyang…
chunyang 1205f58
Merge remote-tracking branch 'origin/master' into cyang/auth-shim
chunyang fbd4e79
Merge branch 'master' into cyang/auth-shim
chunyang 87d64d6
Merge branch 'master' of https://github.com/apache/beam into cyang/au…
chunyang 68e3a91
Merge remote-tracking branch 'fork/cyang/auth-shim' into cyang/auth-shim
chunyang fc55794
Merge remote-tracking branch 'origin/master' into cyang/auth-shim
chunyang 5b8d05c
Regenerate python requirements; Remove oauth2client from deps_urls_py…
543bc50
Revert distlib version
e1eadbe
Revert dep_urls_py.yaml
yeandy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -63,9 +63,6 @@ deps: | |
| pymongo: | ||
| owners: yichi | ||
|
|
||
| oauth2client: | ||
| owners: | ||
|
|
||
| proto-google-cloud-pubsub-v1: | ||
| owners: | ||
|
|
||
|
|
||
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
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
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
Oops, something went wrong.
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.
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.
I think this path was used to authenticate requests originating from GCE VMs, and we had it so that when Beam SDK is running Dataflow workers, the requests to GCP were authenticated just because the SDK is running on GCE VM.
I wonder how this will work with the new dependency.
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.
Thanks for the review @tvalentyn. My understanding is that the
google.auth.default()call in line 151 will attempt to find credentials on GCE VMs using the instance Metadata Server so we don't need a special case within the Beam code. Is this something we can check via the existing integration tests?https://github.com/googleapis/google-auth-library-python/blob/08c987d0215c9d3e230efe5b7c13e6b8197267bc/google/auth/_default.py#L386-L389