0
votes

I registered one of my firebase cloud function as webhook URL in ABC. ABC will send webhook request to my function URL if there is any event. But webhook request always got 403 response, and my cloud function never got triggered.

So my question is will firebase block any IP from sending request to cloud functions server? Or is there any possible reason the external request got 403 error?

Thanks!

2
What you have right now lacks details. If you're not willing to share enough details for anyone to reproduce the issue, you should contact Firebase support for assistance. support.google.com/firebase/contact/support - Doug Stevenson
It looks like I have to give allUsers permission to be cloud functions invoker in GCP console. - damingzi

2 Answers

1
votes

I got answers from this post

1. Go to the cloud function tab
2. Select your cloud function (check box)
3. Click "Add members" under Permissions tab in the right side
4. Enter "allUsers" under "New memebers"
5. Select Role as "Cloud Functions -> Cloud Functions Invoker"
6. Save
7. Test your cloud function by just pasting it in the browser
0
votes

I found this helpful: https://cloud.google.com/functions/docs/securing/managing-access-iam#allowing_unauthenticated_function_invocation

It appears that Google now requires these functions to be explicitly whitelisted to the allUsers user...