firebase-functions
firebase-functions copied to clipboard
Adding `runWith({ invoker: "allUsers" })` to does not update gcf permissions
Related issues
[REQUIRED] Version info
node:
firebase-functions: 3.22.0 firebase-tools:
firebase-admin: 10.3.0
[REQUIRED] Test case
N/A
[REQUIRED] Steps to reproduce
- add
.runWith({ invoker: "allUsers" })to a cloud function - deploy the function
[REQUIRED] Expected behavior
It should reflect in https://console.cloud.google.com/functions/list
[REQUIRED] Actual behavior
It does not reflect in https://console.cloud.google.com/functions/list
Were you able to successfully deploy your functions?
yes
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
Does it update previously created cloud functions or it only works on new functions?
or does this option even work at all
Hi @Manokii thanks for opening an issue at Firebase!
In order to correctly set the IAM policy of the function to allUsers, you would define your function like this,
.runWith({ invoker: "public" })
Hi @Manokii thanks for opening an issue at Firebase!
In order to correctly set the IAM policy of the function to
allUsers, you would define your function like this,.runWith({ invoker: "public" })
oh i see, I set it up wrong this whole time, thank you very much!