Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

GC Functions 2-gen: 403 Forbidden on public function URL

When I have a public function (the code is the basic starter boilerplate) on Google Cloud Functions

https://prnt.sc/jlq1PpRizj27

I cannot access the respective URL

https://prnt.sc/8Obg_J334SU8

neither add allUsers principal.

https://prnt.sc/qHn-MIdKB7Er

This issue is not present on 1-gen.

Solved Solved
0 1 1,695
1 ACCEPTED SOLUTION

Hi @No0Priority,

Welcome to Google Cloud Community!

Based on the information provided, it appears that you are encountering a 403 error when using the 2nd Gen public function. You may want to follow this instructions from the documentation provided when using the 2nd Gen:

  1. Go to the Google Cloud console:

    Go to Google Cloud console

  2. Click the linked name of the function to which you want to grant access.

  3. Click the Powered By Cloud Run link in the top right corner of the Function details overview page.

  4. Open the Security tab, and under Authentication, select Allow unauthenticated invocations.

  5. Click Save.

Thank you.

View solution in original post

1 REPLY 1

Hi @No0Priority,

Welcome to Google Cloud Community!

Based on the information provided, it appears that you are encountering a 403 error when using the 2nd Gen public function. You may want to follow this instructions from the documentation provided when using the 2nd Gen:

  1. Go to the Google Cloud console:

    Go to Google Cloud console

  2. Click the linked name of the function to which you want to grant access.

  3. Click the Powered By Cloud Run link in the top right corner of the Function details overview page.

  4. Open the Security tab, and under Authentication, select Allow unauthenticated invocations.

  5. Click Save.

Thank you.