This repository was archived by the owner on Sep 3, 2022. It is now read-only.
Commit acb9440
committed
CREDENTIAL_SCOPES: Add /auth/drive for bigquery tables backed by sheets
- 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/3973341 parent bd9647f commit acb9440
2 files changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| 141 | + | |
141 | 142 | | |
142 | 143 | | |
143 | 144 | | |
| |||
0 commit comments