Cloud Run just added a new isolation surface — sandboxes — and that matters more than the marketing copy. These sandboxes run inside your existing Cloud Run service instances and are explicitly designed to execute untrusted or model-generated code with a tighter execution boundary and lighter-weight isolation than carving out new services or VMs.
Why this matters: model-driven workloads increasingly need to run ephemeral code close to application state. Until now teams either: 1) accepted the risk of executing generated code inside the same container, 2) spun up separate Cloud Run services with complex auth and networking, or 3) fell back to heavy VM-level isolation. Sandboxes give you a middle path — low-latency, isolated execution without the management overhead of full VM sandboxes.
The new trust boundary is also a new attack surface. Sandboxes are useful because theyre cheap and fast; theyre dangerous if you treat them like an ordinary process. Expect platform teams to be responsible for four immediate changes:
- Rework authentication flows for ephemeral code. Token injection and blanket long-lived service account keys will no longer cut it.
- Enforce per-sandbox observability and audit logs; traces that drop into a sandbox must surface with tenant and request context.
- Harden outbound connectivity and secrets access; model-generated code shouldn't inherit broad network or secret privileges by default.
- Update runtime policies and CI gates — sandboxes make it trivial to run arbitrary code at scale.
Google also published reference guidance for integrating Vertex AI/Gemini privately from Cloud Run. The recommended building blocks are established networking and identity primitives: Private Service Connect and Serverless VPC Access to control traffic egress and keep traffic on Googles network, Cloud DNS private zones or DNS peering for private name resolution, and Workload Identity / IAM-backed service accounts for platform-level identity. Treat Gemini Enterprise as a private product integration with service identity and IAM-backed authorization, not just another public API.
If you're still doing ad-hoc egress NAT and token injection to hit LLM APIs, stop. Private Service Connect or controlled egress proxies combined with scoped DNS and short-lived, audience-restricted tokens (via Workload Identity or OAuth where appropriate) gives you provable network locality and better auditability. Use IAM and service account identity for platform-level authorization, and keep API tokens scoped and ephemeral.
On the infrastructure side, Google continues to evolve TPU hardware and distributed training tooling. Expect ongoing updates to TPU offerings and to runtimes that integrate with GKE and Vertex AI for multi-host training and inference; teams should watch official release notes for supported shapes, images, and JAX versions rather than relying on third-party summaries.
Finally, the hardware and model sides are converging: Vertex AI and the Gemini family are getting regular updates and new preview model sizes, and Google is expanding TPU capacity and tooling. The practical stack is clear: private, low-latency LLM access via Vertex AI/Gemini plus lightweight execution via Cloud Run sandboxes and heavier training/parallelism on TPUs.
Opinion: this is the right product bet from Google. Sandboxes hit the sweet spot between convenience and security for agentic workloads, and the private connectivity pattern for Gemini demonstrates real maturity: teams get private network paths, service identity, and an auditable integration model without jury-rigging. But platform teams must treat sandboxes as a first-class surface — add policy, observability, and hardened egress now or youll be debugging lateral privilege escalation in production.
Prediction: within a year most enterprise LLM integrations running code will use either sandboxed Cloud Run or VM-level isolation as a policy choice, not an ad-hoc engineering stopgap. If your platform doesnt offer a hardened sandbox pattern plus private Gemini connectivity, your compliance and SRE teams will be asking uncomfortable questions — and they should.