Skip to content
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

Auth issue when using service account credentials file #101

Open
jadenlemmon opened this issue Dec 1, 2023 · 0 comments
Open

Auth issue when using service account credentials file #101

jadenlemmon opened this issue Dec 1, 2023 · 0 comments

Comments

@jadenlemmon
Copy link

Following the docs here, I've enabled this add on while using the GOOGLE_APPLICATION_CREDENTIALS env var to point to a local service account credentials file.

Inside the gcp-auth pod that gets created in the cluster I see the error Response: {"error":"invalid_scope","error_description":"Invalid OAuth scope or ID token audience provided."}.

After a little digging it seems to be related to this line where a scope is not being passed.

If I update the line to google.FindDefaultCredentials(ctx, "https://www.googleapis.com/auth/cloud-platform") to include a scope then I believe it works.

I'm not sure why it works for a regular users application default credentials but not the service account credentials file though?

I'm happy to open a PR for this if that would be helpful or if you know of something else I can do to make this work please let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant