Skip to content

Permissions required for service account deploy #7754

Closed

Description

@ottob

Many people seems to have the same issue. See for example #6593, #6060 and #5340 (comment)

I found some semi official advice here: https://groups.google.com/g/firebase-talk/c/gc1Me4WCRok/m/QEoVHBlYAwAJ
The recommended role was Firebase Develop Admin. But even that will not work. That role is missing the firebaseextensions.instances.list permission. Only the Firebase Admin roles has that atm, and that seems like overkill.

I even tried to create a custom IAM role with only the firebaseextensions.instances.list permission, but this permission can not be found.

Screenshot 2024-09-26 at 23 17 58

Can you please add the firebaseextensions.instances.list permission to the Firebase Develop Admin IAM role?

[REQUIRED] Environment info

firebase-tools: 13.20.0

Platform: Ubuntu

[REQUIRED] Test case

firebase deploy using a google service account (GADC), for example from a GitHub action.

[REQUIRED] Steps to reproduce

run firebase deploy

[REQUIRED] Expected behavior

successful deploy

[REQUIRED] Actual behavior

lots of permission errors in debug log

Activity

  1. ottob commented on Sep 26, 2024

    @ottob
    Author

    cloudscheduler.jobs.update was also required when I tried to deploy. That was also not part of Firebase Develop Admin

  2. aalej commented on Sep 27, 2024

    @aalej
    Contributor

    Hey @ottob, thanks for reporting this. The firebaseextensions.instance.list permission will be required for any deployments that includes Firebase Cloud Functions. Here's a comment from someone from our engineering team explaining this in detail. Could you try adding the Firebase Extensions Viewer role to see if this would resolve the permission issue?

    Regarding the cloudscheduler.jobs.update, I think this permission is required to be able to deploy scheduled functions since these functions uses Cloud Scheduler to invoke your function.

  3. added
    Needs: Author Feedback
    on Sep 27, 2024
  4. ottob commented on Sep 27, 2024

    @ottob
    Author

    Thanks for you reply. Unfortunately I cannot test this right now, but I'll reply when I have done so.

    But according to
    https://cloud.google.com/iam/docs/understanding-roles#firebaseextensions.viewer that roles does not seem to have the firebaseextensions.instances.list permission.

  5. staticshock commented on Sep 27, 2024

    @staticshock

    I just ran into this as well, and adding the Firebase Extensions Viewer role to the service account (as recommended above) resolved it 👍

  6. aalej commented on Sep 30, 2024

    @aalej
    Contributor

    Thanks for confirming @staticshock. @ottob, looking at the doc you shared, it does seem like the role does not contain the firebaseextensions.instance.list permission. Although, when I tried to reproduce this, adding the Firebase Extensions Viewer role resolves the permission issue.

    I'll raise this to our engineering team to get additional context on whether this is an issue with the documentation or something else entirely.

  7. google-oss-bot commented on Oct 9, 2024

    @google-oss-bot
    Collaborator

    Hey @ottob. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 3 days I will close it automatically.

    If you have more information that will help us get to the bottom of this, just add a comment!

  8. Sam-Spencer commented on Oct 9, 2024

    @Sam-Spencer

    I just ran into this as well, and adding the Firebase Extensions Viewer role to the service account (as recommended above) resolved it 👍

    Chiming in to say that this resolved the issue for me too -- although that role doesn't appear when searching for the necessary permission. Looking forward to more guidance on this. Thank you ❤️.

  9. aalej commented on Oct 9, 2024

    @aalej
    Contributor

    Hey folks, apologies that I wasn’t able to provide an update to this sooner. Discussed this with our engineering team and they verified that adding the Firebase Extensions Viewer role is the fix for not having the firebaseextensions.instances.list permission.

    Regarding the issue where the firebaseextensions.instances.list role isn’t visible, we created an internal tracking bug(b/370526090) to get this looked into.

    Can you please add the firebaseextensions.instances.list permission to the Firebase Develop Admin IAM role?

    @ottob, sorry I missed this, but the Firebase CLI repository isn’t the best place to keep track of this. Can you please file a request to our Firebase Support channel to see if it would be possible to add this permission by default to the predefined role? Thanks!

  10. google-oss-bot commented on Oct 18, 2024

    @google-oss-bot
    Collaborator

    Hey @ottob. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 3 days I will close it automatically.

    If you have more information that will help us get to the bottom of this, just add a comment!

  11. google-oss-bot commented on Oct 23, 2024

    @google-oss-bot
    Collaborator

    Since there haven't been any recent updates here, I am going to close this issue.

    @ottob if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

  12. zenhorace commented on Jul 8, 2025

    @zenhorace

    Had this issue, and the workaround worked for me. It's unfortunate that this issue remains unresolved.

  13. carchrae commented on Jun 30, 2026

    @carchrae

    this was super annoying, and after finding a very convoluted set of roles that worked, i then found my scheduled jobs still did not work! :/

    the tldr fix: give your service account "Editor" permissions.

    while this is certainly far too many permissions, but if you are coming here because FIREBASE_TOKEN no longer works and you are trying to use GOOGLE_APPLICATION_CREDENTIALS then setting the credentials to "Editor" will save you some hair pulling and a ton of wasted time deploying

    @aalej - it is a bit of a crying shame there aren't some decent permissions defined that work for firebase, but i can imagine the meetings involved and people arguing over what should be called what and have what roles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions