You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to set the invoker for the IAM policy on the following functions #6017
I can't provide the sample as it is owned by company.
The important thing is that I want to edit the data inside Firestore using Cloud Functions. It used to have no error at all. But, now it gives error:
Unable to set the invoker for the IAM policy on the following functions:
functions:albumedit(us-central1)
Some common causes of this:-You may not have the roles/functions.admin IAM role. Note that roles/functions.developer does not allow you to change IAM policies.
-An organization policy that restricts NetworkAccesson your project.
i functions: cleaning up build files...
Error:There was an error deploying functions
I logged in as Owner access in Firebase Cloud Function.
This should give me absolute access to all roles.
[REQUIRED] Steps to reproduce
Just deploy function which has editing and deleting data inside Firestore
[REQUIRED] Expected behavior
It should be run without error.
[REQUIRED] Actual behavior
The function cannot be run anymore.
Reacted by Milo Hill, Wege, Thuý, Ben Jack Gill, Jack Kirkham and Ethan Sarif-Kattan
I am having the same problem deploying some functions. We use ansible to run automated deployments, which uses a service account for authentication (not "firebase login").
Everything was working fine within the last month. New functions were properly deployed. Nothing was changed with out firebase config, only new function code.
The workarounds listed above did not work. However, we can login ("firebase login") with a user account and run the deploy successfully.
As a small team, it's daunting to manage all this security spaghetti google cloud is throwing at us.
Activity
gOzaru commentedon Jun 21, 2023
I think this issue is still active.
#4335
milo- commentedon Jun 22, 2023
Seeing the same thing with newly deployed functions
gOzaru commentedon Jun 22, 2023
That is after recent update, if I were correct.
gOzaru commentedon Jun 23, 2023
I think I have found the solution (here)
Now my function is working again.
Note:
If you cannot edit the Manage Policy, then setup Cloud Identity first by clicking here
clarkbox commentedon Aug 8, 2023
I am having the same problem deploying some functions. We use ansible to run automated deployments, which uses a service account for authentication (not "firebase login").
To use a service account key:
exportGOOGLE_APPLICATION_CREDENTIALS="/tmp/serviceAccount.json"Everything was working fine within the last month. New functions were properly deployed. Nothing was changed with out firebase config, only new function code.
The workarounds listed above did not work. However, we can login ("firebase login") with a user account and run the deploy successfully.
As a small team, it's daunting to manage all this security spaghetti google cloud is throwing at us.
jaakdentrekhaak commentedon Jun 4, 2024
Thank you @gOzaru! It works for me. I want to share the steps I had to take: