Permissions recommended for the Cloud Build service account in the official Google documentation and the Firebase CLI community builder docs are insufficient:
- In the permissions table, locate the email ending with @cloudbuild.gserviceaccount.com, and click on the pencil icon.
- Add
Cloud Build Service Account,Firebase AdminandAPI Keys Admin roles.
I still get the following error in Cloud Build when I do firebase deploy:
Error: HTTP Error: 403, The caller does not have permission
What I've tried is different Firebase IAM roles, Editor, and Owner. So far only the Owner role works. That is way too much privilege for a Cloud Build service account, and violates the least-privilege model.
Everything is in the same Google Cloud project.
Anyone know how to troubleshoot this? Or know which role/permission is missing?
Cloud Functions Adminrole. - Michael BleighCloud Functions Admin. I tried addingFirebase Hosting Adminand it still does not work (I thinkFirebase Admincovered it anyways). - ahongFirebase Hosting Adminrole which includes the permissions listed on the site and it still does not work. It's possible Firebase did a release and broke their roles. - ahong