The Simplest Way to Make Cloud Run and Netskope Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Pairing cloud run and netskope lets teams run serverless containers while inspecting every network call. This setup protects private apps by checking user identity and device health before traffic arrives. Serverless apps scale up and down in seconds to match user demand. Yet public endpoints often expose internal tools to unwanted web traffic. Putting security checks in front of these containers keeps company data safe. Your team can ship code fast and keep strict security rules in place. Ho

Your coding agents run with your access.

Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.

Pairing cloud run and netskope lets teams run serverless containers while inspecting every network call. This setup protects private apps by checking user identity and device health before traffic arrives.

Serverless apps scale up and down in seconds to match user demand. Yet public endpoints often expose internal tools to unwanted web traffic. Putting security checks in front of these containers keeps company data safe. Your team can ship code fast and keep strict security rules in place.

How cloud run and netskope handle traffic and logins

Understanding how cloud run and netskope pass traffic starts with the user login flow. First, a worker logs in through their identity provider on a managed device. The security client checks the device posture and user group right away. Next, the user sends a request to the serverless app URL.

The network platform intercepts this traffic and applies your company security rules. It checks for sensitive data like emails, phone numbers, or card numbers in the payload. If the request passes every check, the traffic moves toward the Google Cloud project. The container platform then checks the incoming identity token before running the container.

Traffic can flow through a private network path instead of the open web. Teams set up a private publisher inside the cloud network to receive routed calls. This publisher links to the serverless app through an internal load balancer or connector. The container only accepts requests that come from this trusted internal network path.

Common failure modes and how to scope roles

Many teams leave serverless URLs open to the public internet by mistake. Anyone with the link can hit the endpoint if ingress settings keeps the session active. Another common mistake is using one shared service account for every single container. If an attacker steals that broad key, they can read or write across many systems.

Teams also struggle when developers use static API keys inside app variables. Those keys rarely expire and often end up in plain text build logs. Also, basic web logs do not show which person ran a specific database query. Security teams only see the shared service account name in the cloud log.

End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

To fix network paths, lock down ingress settings on every serverless service. Set the service to accept traffic only from internal load balancers and shared VPC networks. Place a private publisher inside that VPC to bridge the user and the app. This stops outside callers from reaching the container URL directly.

Next, give each serverless app its own unique cloud service account. Grant that role only the exact permissions it needs to do its job. Avoid broad editor or owner roles at the project level. Rotate keys often and rely on short-lived identity tokens for service-to-service calls.

Managing data rules and audit logs across both tools

Good security requires clear logs from both the network edge and the cloud host. The network client records which user requested the app and checks the payload size. Meanwhile, the cloud platform logs when the container starts and which role it uses. Joining these two log streams helps teams spot weird behavior right away.

You should also set up data loss rules for files moving through the app. If a container returns national IDs or card numbers, rules can block the download. Masking rules can also rewrite matched fields in results before they reach the screen. Clear rules keep sensitive records inside your private cloud boundary at all times.

Govern statements and responses across databases and APIs

Good config and scoped roles are needed setup. They do not check single queries in flight or mask sensitive fields in returned rows. Across Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, and internal HTTP endpoints, hoop.dev runs beside each supported service as an open-source proxy, a sidecar for your database or API.

First, hoop.dev guardrails block banned queries before they run. Then hoop.dev data masking rewrites matched sensitive values in responses in memory. The audit trail records every statement and verdict per resource. Furthermore, hoop.dev holds SOC 2 Type II and is open source on GitHub.

Frequently asked questions

How do we stop public traffic from hitting our serverless URLs?

Turn off public ingress on the service and allow only internal network traffic. Route all user requests through an internal load balancer linked to your private publisher.

Should multiple containers share the same cloud service account?

No, each service should use a separate role with minimal permissions. This limits the blast radius if one container or token gets compromised.

Can we inspect data payloads sent to serverless apps?

Yes, routing traffic through the security client lets you scan uploads and downloads. You can block or mask fields like emails and phone numbers in transit.

The query runs. The emails stay hidden.