If you update any document that triggers this function, it will fail to resolve the IAM permissions. No matter what service account I use, or whatever permissions I give (even full admin) I can't seem to find out what's going on. My best guess is because the authType in the event is unknown even though the authId is literally my email address (owner of the GCP account and firebase project).
[REQUIRED] Expected behavior
Be able to resolve permissions and create a cloud task.
[REQUIRED] Actual behavior
I get this error during execution
Error updating task for document notifications/rrZVDDMelsptw1o7MP0e Error: 7 PERMISSION_DENIED: The principal (user or service account) lacks IAM permission "cloudtasks.tasks.create" for the resource
Mind you - I have granted those permissions to all of the service accounts and users in my GCP account.
Were you able to successfully deploy your functions?
Related issues
No
[REQUIRED] Version info
node: v18.17.1
firebase-functions: 5.0.1
firebase-tools: 13.8.0
firebase-admin: 12.1.0
[REQUIRED] Test case
Create a firestore database in the firebase console Create a trigger function with auth context
e.g. my function
[REQUIRED] Steps to reproduce
If you update any document that triggers this function, it will fail to resolve the IAM permissions. No matter what service account I use, or whatever permissions I give (even full admin) I can't seem to find out what's going on. My best guess is because the
authType
in the event isunknown
even though theauthId
is literally my email address (owner of the GCP account and firebase project).[REQUIRED] Expected behavior
Be able to resolve permissions and create a cloud task.
[REQUIRED] Actual behavior
I get this error during execution
Mind you - I have granted those permissions to all of the service accounts and users in my GCP account.
Were you able to successfully deploy your functions?
No