'Cloud run invoking another Cloud run with "Allow internal traffic and traffic from Cloud Load Balancing" fails with error 403

I have built a Django backend and deployed it in cloud run. I have also built a react frontend that was also deployed in cloud run. Frontend calls Django backend. Everything works while backend Allow all traffic, when I change it to "Allow internal traffic and traffic from Cloud Load Balancing" I get 403 error. Both are using VPC connector. And also both are on un-authenticated cloud Run.



Solution 1:[1]

Focus on your architecture and where the code is running.

  • Your backend run on Cloud Run
  • Your front ent? it's served by Cloud Run, but executed on your browser.

That's why, your browser haven't a serverlessVPC connector or something like that and the request to the backend come from the internet, nothing from your Cloud Run frontend.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 guillaume blaquiere