This repository was archived by the owner on Sep 3, 2022. It is now read-only.
CREDENTIAL_SCOPES: Add /auth/drive for bigquery tables backed by sheets#456
Open
jdanbrown wants to merge 1 commit intogoogledatalab:masterfrom
Open
CREDENTIAL_SCOPES: Add /auth/drive for bigquery tables backed by sheets#456jdanbrown wants to merge 1 commit intogoogledatalab:masterfrom
jdanbrown wants to merge 1 commit intogoogledatalab:masterfrom
Conversation
- Allow service accounts to query bq tables backed by sheets - Without this scope you get the following 403 error from bq, where "globbing file pattern" appears to come from gdrive: ``` datalab.utils._http.RequestException: HTTP request failed (status 403): Access Denied: BigQuery BigQuery: Permission denied while globbing file pattern. ``` - Repro'ing is a bit complicated: - In gcp, make a "service account" - In gcp, create a "client id" for the service account - In gsuite, enable "domain-wide delegation" for the client id - Make a sheet - Share the sheet with the service account id (maybe not required?) - Make a bq table backed by the sheet - Query the table using the service account creds - Here's the most helpful reference I found: - https://stackoverflow.com/a/41676921/397334
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.
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.
"globbing file pattern" appears to come from gdrive: