1

In local system is working perfectly but when deployed to production using gcloud app deploy it is throwing error on every end point calling

**> message: "rpc error: code = PermissionDenied desc = Missing or

insufficient permissions."**

Narendar
  • 370
  • 10
  • 20

2 Answers2

0

I had the same problem (when trying to migrate from Go 1.9 runtime to a newer runtime). For me, "[app_name]@appspot.gserviceaccount.com" was missing from the permissions. The service account existed though, just not listed. So, I added the service account and set the following permissions:

  • App Engine Standard Environment Service Agent
  • Cloud Datastore User

All worked again.

Dharman
  • 30,962
  • 25
  • 85
  • 135
HelmutGrep
  • 23
  • 2
0

See below answer which helped me..

https://stackoverflow.com/a/62033777/4481287

gcloud set project project-bar
gcloud projects add-iam-policy-binding project-bar --member serviceAccount:project-foo@appspot.gserviceaccount.com --role roles/datastore.user

Essentially you want to give your main google app engine service account, access to your firebase project

Norbert
  • 6,026
  • 3
  • 17
  • 40
Kevin Cohen
  • 1,211
  • 2
  • 15
  • 22