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

Error 403 when create temporaryUrl in cloud run #91

Open
tsulatsitamim opened this issue Jun 3, 2020 · 2 comments
Open

Error 403 when create temporaryUrl in cloud run #91

tsulatsitamim opened this issue Jun 3, 2020 · 2 comments

Comments

@tsulatsitamim
Copy link

Client error: `POST https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/[PROJECTNUMBER]-compute@developer.gserviceaccount.com:signBlob?alt=json` resulted in a `403 Forbidden` response.
"code": 403
"message": "Request had insufficient authentication scopes.",
"status": "PERMISS (truncated...)"

It's work fine in local development when using json key_file, but when deployed to cloud run with key_file set to empy string I get 403 error when creating temporaryUrl, it works fine to upload or set file visibilty to public, did I do something wrong?

@the-provost
Copy link

Any solutions? or workarounds?

@tsulatsitamim
Copy link
Author

simple workaround by manually provide service account or ship service account json file with the container

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

2 participants