R.Schaefer
R.Schaefer

Reputation: 133

What's the best way to proxy requests with GCP?

What is the best way to proxy requests with GCP, e.g. to hide secrets. Is it by making use of GCP API-Gateway which spawns a Load Balancer or by using a Load Balancer directly. Or are there any other ways?

A sample request to "transform" might be:

Client -> XXX (API-Gateway / Load Balancer)  -> External Service

       -> https://api.xxx.com/xxx            -> https://api.xxx.com/xxx?secret=secret

Or is the most simple and most cost efficient way to spawn a GCP function to proxy requests?

Upvotes: 1

Views: 676

Answers (1)

Yvan G.
Yvan G.

Reputation: 1298

The way that I can recommend is the Signed URL. Wherein you can use the URL prefixes for signed URL. If you used load balancer, signedkey is the one we can use to append URL.

However, on this feature we should consider the limitation of this service where there is a time limit using this feature. To know more about this feature you can check this link. If there are other recommendations please feel free to edit this post.

Upvotes: 1

Related Questions