-
Notifications
You must be signed in to change notification settings - Fork 1k
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 'openid' scope to gcloud command #589
Conversation
When I run with the `gcloud auth` command as shown, I get this error: ``` ERROR: gcloud crashed (Warning): Scope has changed from "https://www.googleapis.com/auth/drive.readonly https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/accounts.reauth" to "https://www.googleapis.com/auth/accounts.reauth https://www.googleapis.com/auth/cloud-platform openid https://www.googleapis.com/auth/drive.readonly https://www.googleapis.com/auth/userinfo.email". ``` This error message shows that the `openid` scope needs to be added. After adding this scope, the error message goes away. See dbt-labs/dbt-core#3040 for more context.
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 this @heisencoder!
Both commands (with and without openid
) work for me locally. I'm guessing this has something to do with organizational settings for OpenID Connect?
Unfortunately, I don't know the reason why we need to add the |
I'm happy either adding this change or leaving it out if it only affects my particular setup. |
@heisencoder Thanks for your patience as I try to figure out what's what! Per the ongoing conversation in fishtown-analytics/dbt#2953, after some more testing on my end, I think it's possible that we could trim
If you still see an error, fixed by the inclusion of |
@jtcohen6 This sounds great! I'm a big fan of narrowing the scopes! I've run the gcloud command, and can confirm that by removing the userinfo.email scope, I no longer see the error with needing Thanks! |
Based on feedback from Jeremy.
Based on the feedback, I updated the text and tested the changes locally to verify correct syntax. |
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.
Sweet! Let's give this a go here for now. If we're proven wrong, it's much easier to update the docs site than dbt-bigquery code.
Hi all, the above solutions did not work for me unfortunately. I still get the same error message. I am using dbt=0.20.1. |
When I run with the
gcloud auth
command as shown, I get this error:This error message shows that the
openid
scope needs to be added. After adding this scope, the error message goes away.See dbt-labs/dbt-core#3040 for more context.