GCP Security Deep Use Cases #2: wanna secure your egress HTTP/S traffic? Use Secure Web Proxy!
Nelliusz Fr?cek
Secure Your GCP Proactively: Architecture, Engineering, Threat Intel & Detection | 7x GCP Certified | Let's Talk
Let's concentrate today on Secure Web Proxy use case. It's perfect GCP service if you need to secure your egress web traffic.
Use case: Securing Cloud Run egress HTTP/S traffic with TLS inspection in single VPC
Use case: your company uses Cloud Run services (all deployed in us-east region) as a compute platform for a few Java applications. Currently in your Landing Zone there is only one VPC. In last week you've discovered data leak due to undesired egress traffic from Cloud Run application. You want to controll all egress HTTP/S traffic coming from Cloud Run appplications. You want to have strict control over traffic, including filtering HTTP headers and allowing egress traffic only to specific domains. Additionally you want to ensure that your egress traffic leaves GCP with with defined, static IP addresses. In your Landing Zone there is already Certificate Authority Service used.
Solution architecture for use case:
Quick explanation:
领英推荐
In above example - URL list will allow connecting to example.com and google.com domains for Cloud Run application no 1.
Below rule will allow Cloud Run application with SA "cloud-run-1-sa" to connect to domains from "cloud-run-1-allow-list" URL list (example.com and google.com) when header "Custom" with value "X" will be present in HTTP request. It's possible also to filter e.g. by HTTP request method, path, query or user agent.
We can create policy with rules for each Cloud Run applications and associate such policy with Secure Web Proxy instance:
After that Cloud Run application will be able to connect only to allowed domains.
That's it! As you can see using Secure Web Proxy is very easy. I hope you've enjoyed this article and you've learned a lot about securing egress web traffic with Secure Web Proxy. If yes - please like, subscribe (observe or add me to your connections), share and comment - I will be very grateful for this. A lot of GCP Security Deep Use Cases coming - stay tuned!