firebase-functions icon indicating copy to clipboard operation
firebase-functions copied to clipboard

Adding `runWith({ invoker: "allUsers" })` to does not update gcf permissions

Open Manokii opened this issue 3 years ago • 2 comments

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

  1. add .runWith({ invoker: "allUsers" }) to a cloud function
  2. 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

Manokii avatar Aug 15 '22 11:08 Manokii

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

google-oss-bot avatar Aug 15 '22 11:08 google-oss-bot

Does it update previously created cloud functions or it only works on new functions?

or does this option even work at all

Manokii avatar Aug 15 '22 17:08 Manokii

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" })

colerogers avatar Aug 16 '22 15:08 colerogers

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!

Manokii avatar Aug 16 '22 15:08 Manokii