-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Add drive scope to GCP Auth #23569
Add drive scope to GCP Auth #23569
Conversation
R: @kennknowles Can you review this please? |
Assigning reviewers. If you would like to opt out of this review, comment R: @yeandy for label python. Available commands:
The PR bot will only process comments in the main thread (not review comments). |
Codecov Report
@@ Coverage Diff @@
## master #23569 +/- ##
==========================================
- Coverage 73.46% 73.33% -0.14%
==========================================
Files 718 719 +1
Lines 95935 95795 -140
==========================================
- Hits 70477 70248 -229
- Misses 24147 24236 +89
Partials 1311 1311
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
R: @tvalentyn |
Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control |
I think we want to minimize the number of scopes that are requested on behalf of a user. Users can already set their own credential factory in Beam Java and configure it to request any scopes when creating the credential object. We could use something similar for Beam Python. For a simple improvement, we could make a pipeline option that each user can configure with the existing scopes being the default? |
FWIW this is straightforward.
We can add the contents of that option the the default scopes currently hardcoded. Note: it is sufficient to do this just for Python, Java already has a capability to create and supply custom credentials. |
Can we use a list type instead of using semi-colons as pipeline_options.py supports lists already? Having an equivalent in Java is convenient so that the user experience is the same. This will also help with xlang so that those additional scopes can be specified for IO reasons. Also suggest |
@lukecwik @tvalentyn I can certainly add the |
@lukecwik good point, thanks. beam/sdks/python/apache_beam/options/pipeline_options.py Lines 742 to 753 in 2d84233
a repeatable option : you can then combine the content with the |
This was superseded by #23644, feel free to reopen PR if you want to continue with this change. |
This adds the ability to access Google Drive backed BigQuery tables in the Python and Java SDKs. Fixes #23290.
Note: I couldn't find the GCP Auth in the TypeScript and Go SDKs.
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
R: @username
).addresses #123
), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, commentfixes #<ISSUE NUMBER>
instead.CHANGES.md
with noteworthy changes.See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)
See CI.md for more information about GitHub Actions CI.