Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

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][email protected]: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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants