Can't Run Firebase Test Lab Tests Using Gcloud And Service Account: 403, Does Not Have Storage.objects.create


Answer :

You should be able to use a service account created in the Google Cloud Console. Did your service account have the required project Editor role? (as noted in this doc: https://firebase.google.com/docs/test-lab/continuous)


After lots of clicking through the Firebase console and the Google Cloud Console, reading SO, asking for help on Slack, and more trial and error than I care to admit, I discovered that the Firebase console has a service account page:

https://console.firebase.google.com/u/0/project/project-name-12345/settings/serviceaccounts/adminsdk

That is different from the service accounts page in the Google Cloud Console

https://console.cloud.google.com/iam-admin/serviceaccounts/project?project-name-12345

It turns out you want the Firebase service account, you can not create one via the cloud console. Super, super annoying.


This is the list of the roles that I put in to my service account :

  1. Firebase - Firebase admin ( I think this is overkill. I might update it later )
  2. Project - Editor
  3. Storage - Storage Object Creator

It does not matter whether you create the service account from Firebase or google cloud console. As long as you have these roles in your service account then you should be able run the Firebase test lab.


Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable