The Simplest Way to Make Google Cloud Deployment Manager and Zscaler Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams use google cloud deployment manager and zscaler to build safe cloud setups. The first tool makes cloud hosts, and the second tool routes traffic. This pair helps teams deploy cloud apps and control network rules at once. You write templates to build the cloud project and link the network connector. Then users reach internal apps without exposing open ports to the public web. How google cloud deployment manager and zscaler share roles and data Google Cloud Deployment Manager reads your

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.

Teams use google cloud deployment manager and zscaler to build safe cloud setups. The first tool makes cloud hosts, and the second tool routes traffic.

This pair helps teams deploy cloud apps and control network rules at once. You write templates to build the cloud project and link the network connector. Then users reach internal apps without exposing open ports to the public web.

How google cloud deployment manager and zscaler share roles and data

Google Cloud Deployment Manager reads your declarative templates and calls cloud APIs. It sets up virtual machines, subnets, and firewall rules in your project. Those virtual machines host the connector software that links to the Zscaler cloud.

The setup starts when your template runs under a Google Cloud service account. That service account needs permission to create instances, networks, and secret items. During startup, the new virtual machine reads a stored registration key from cloud storage.

The connector software uses that key to register with the Zscaler control plane. After registration, the connector opens an outbound tunnel to the nearest security node. User traffic flows through Zscaler and down that tunnel into your cloud subnet.

Data flows one way during the build step and two ways during runtime. Deployment Manager sends build instructions to Google Cloud APIs to make the hosts. Once running, the connector sends health checks out and carries user requests back.

Common failure modes and how to scope roles and network paths

Many teams fail by giving the build service account broad project editor roles. If an attacker steals that account, they can delete databases or read secrets. Instead, create a custom role that only manages compute instances and network rules.

Another common mistake is storing the connector registration key in plain template text. Anyone who reads the source repo can take that key and join rogue hosts. Store the key in a secret manager and grant read rights to one role.

GCP Access Context Manager + Deployment Approval Gates: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Shared service accounts also make audit logs hard to read during an incident. When ten engineers use one shared account, you cannot tell who changed a template. Require each engineer or pipeline to log in with their own tied identity.

Network paths between the two systems also break when firewall rules are too wide. A connector does not need inbound ports open from the public internet at all. It only needs outbound access to reach the Zscaler cloud IP ranges.

Lock down the subnet so the connector only reaches the specific apps users need. If the connector can reach every port on your internal network, risk grows fast. Use cloud firewall tags to limit traffic between the connector and target workloads.

Keeping template updates and secret rotation safe

Cloud templates change over time as teams add new subnets or replace old hosts. When you update a template, Deployment Manager compares the new file to live state. A bad edit can delete a running connector and drop active user connections.

Run at least two connector instances across different availability zones in your template. Update one instance at a time so user traffic stays up during changes. Rotate the registration keys on a set schedule and revoke unused connector profiles.

Check your cloud logs and security logs each week to spot failed runs early. Look for denied API calls in Google Cloud and dropped tunnels in Zscaler. Clear alerts help your team fix broken network paths before users notice downtime.

Check database and API queries on the wire

Identity tools, roles, and network rules decide who opens a session. Setup alone cannot check what each query does or mask sensitive values in a response once a session starts. When workflows touch Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, or internal HTTP APIs, hoop.dev runs beside those services as an open-source proxy, a sidecar for your Postgres or API. It inspects requests coming in and results going back on the wire.

Your login details and client tools stay as they are while hoop.dev guardrails refuse bad deletes or drops before they run. On responses, hoop.dev data masking rewrites matched sensitive values in memory. Furthermore, hoop.dev holds SOC 2 Type II, is MIT licensed, and writes every query and decision to an audit trail that generates evidence for HIPAA, GDPR, and PCI DSS. See the source on GitHub.

Frequently asked questions

Why did my connector fail to register during a template run?

The virtual machine often lacks outbound internet routing or cannot read the secret key. Check your cloud NAT setup and verify the instance service account has secret read rights.

How do I stop templates from exposing registration keys in logs?

Never pass raw keys as plain template parameters or startup script text. Let the running instance fetch the key from a secret store during boot instead.

Do I need public IP addresses on my connector virtual machines?

No, you can run the instances with private IP addresses only. Route their outbound traffic through a cloud NAT service to reach the security cloud.

The query runs. The emails stay hidden.