Hey folks, I'm trying to set up API Gateway as main entry point to various backend services running on Cloud Run and I'm having a few questions that might make me reconsider the choice of technology, it is my understanding that:
Is it possible to have API Gateway access backend CloudRun services without going over the internet / without exposing the individual CloudRun public endpoints?
What happens in terms of pricing when someone accesses an endpoint via the Gateway? The Gateway accesses the backend over the internet so I assume there's egress traffic being charged from the CloudRun to the API Gateway then again from the API Gateway to the end client, meaning that we pay twice/double for a single request?
Thanks in advance.
Hi @Elkasitu,
Welcome to Google Cloud Community!
As of this writing, this feature is not yet available based on this documentation on receiving requests from other Google Cloud services.
internal
, note that many support authenticating to Cloud Run, such as Pub/Sub (supports both internal
and authentication), API Gateway, and Dialogflow CX. Depending on your security needs, it might be sufficient for the destination Cloud Run service to require authentication instead of "internal" ingress.You may also check this existing feature request that you may find helpful.
In terms of pricing, you may refer to this pricing calculator or to our Cloud Billing support for additional information with regards your preferred configuration.
Hope this helps.
Do we have a workaround for this security concern ?
How we can expose our cloud run service to be accessibble only via the API gateway ?