'Can I restrict access to Cloud Storage only to instances running on cloud run?

We have a few front and back end services running on Cloud Run. In Cloud Storage we store things such as files and images.

What I want to achieve is accessing the images from my front-end Cloud Run instances and only from my front-end Cloud Run instances. The images by default should, if accessed from other services, throw a 401.

Do you have any suggestions? For now we are not able to figure out a way of doing so.



Sources

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

Source: Stack Overflow

Solution Source