I would like to deny direct access to Cloudfunctions with their default URL as:
https://europe-west1-helloworld.cloudfunctions.net/function-name
And only allow access via GCP Load balancer
I would expect creating some kind of service-account which would be used by Loadbalancer when accessing the Functions/Run containers, but it is not possible to assign any.
My current state is:
- When I assign
allUsersin Cloud Functions's permissions, I can access it both directly and via LB. - When I remove the
allUsers, I cannot access them neither directly, neither via LB.
