Skip to main content
By default, OpenTofu creates the install’s own network: a subnet and its ranges, the subnet the Gateway’s load balancer needs, private addresses for Cloud SQL and Memorystore, private DNS for Google APIs, and Cloud NAT for the way out. When your network team owns the network, set existing_network instead. OpenTofu then creates nothing inside the network, so the team provides everything below. Everything else (the cluster, the databases, the buckets, the service accounts) is still created in your project. A Shared VPC works too.

What the network team provides

For Snowflake, the way out covers every host SELECT SYSTEM$ALLOWLIST() returns.

Set it

In terraform/terraform.tfvars:
The plan reads the subnet and its ranges, and stops at once, naming what is missing.

Private Service Connect instead of peering

To give Cloud SQL and the cache Private Service Connect endpoints instead of Private Services Access:
The cache is then Memorystore for Valkey, since Memorystore for Redis has no Private Service Connect. The network team creates a Service Connection Policy for the gcp-memorystore service class in your region, naming the subnet the endpoints use: the node subnet, or a subnet of their own, which you name as existing_network.psc_subnetwork. The endpoints take two or three addresses. On a Shared VPC, also set cloudsql_psc_endpoint = "connection_policy", and the team creates a second policy, for the google-cloud-sql service class, naming the same subnet. Cloud SQL then makes its own endpoint, and whoever runs OpenTofu needs no role on the host project.

A control plane reachable only from inside

List every range kubectl and helm run from, such as your VPN’s. Left empty, only the cluster’s own nodes and pods reach the control plane.

On a Shared VPC

The host project grants, before the first apply:
  • roles/container.hostServiceAgentUser on the host project, to your project’s GKE service agent, service-<project number>@container-engine-robot.iam.gserviceaccount.com.
  • roles/compute.networkUser on the node subnet, to that GKE service agent and to the Google APIs service agent, <project number>@cloudservices.gserviceaccount.com.
  • roles/compute.networkUser on the node subnet, and on psc_subnetwork if you set it, to whoever runs OpenTofu.
Your project is attached to the host as a service project, and the host project has the GKE API enabled.

Fixed addresses for allowlists

Some sources accept calls only from addresses on their list: dbt Cloud with IP restrictions, or a Snowflake network policy. In your own network, Jedify’s calls leave through your NAT or firewall, so give those sources your NAT’s addresses. With Cloud NAT, reserve the addresses and assign them by hand, so they don’t change.
The network OpenTofu creates by default has Cloud NAT with addresses Google picks and may change. Where a source allowlists addresses, use your own network.

Keep pod addresses inside the network

GKE keeps a pod’s own address when it calls a private destination. If your firewalls should see node addresses instead, or your pod range is reused elsewhere, add this to your Jedify resource:
Every packet a pod sends out of the cluster then leaves with its node’s address. Traffic inside the cluster is unaffected.

With no internet access

Jedify runs with no path to the internet, as long as nothing you connect it to lives there.

Google APIs, privately

Every Google API Jedify calls, Firestore included, is reached through Google’s private addresses, with these private DNS zones bound to the network: The network also routes 199.36.153.0/24 to the default internet gateway, which keeps that traffic inside Google’s network. On a network OpenTofu creates, it makes the zones and the route (enable_private_google_access_dns). On your own network, your network team provides them.
Firestore has its own address range. A firestore.goog zone that points at the range of the other zones leaves the database unreachable, while every other Google call works.

What still needs a way out

Only what you connect Jedify to outside Google Cloud:
  • An identity provider on the internet, such as Okta, Google or Entra ID. The sign-in service calls its token endpoint from the cluster at every sign-in. One you reach privately needs nothing.
  • A model provider outside Google Cloud, if you route models to one. Vertex AI is a Google API, so the zones above cover it.
  • A data source outside Google Cloud, such as Snowflake or dbt Cloud, unless you reach it privately. BigQuery is a Google API.
  • Let’s Encrypt, if the certificate comes from it. A certificate from your own certificate authority needs nothing.
In 2026.12.9 the sign-in service also sends usage reports to zitadel.com. A later release turns them off, and nothing in Jedify depends on them.

Routing is not enforcement

The private zones keep Google traffic off the internet; they don’t stop anything else from reaching it. To enforce no internet access, add a deny-by-default egress firewall rule with one allow for 199.36.153.0/24, keep nodes without external addresses, and consider a VPC Service Controls perimeter around the project.

The install host

The install host needs no internet either, but OpenTofu needs its providers: mirror them with tofu providers mirror on a connected machine, and point the install host’s .tofurc at the mirror with filesystem_mirror. Helm pulls the operator’s chart from Jedify’s registry, under pkg.dev.

Check it

The preflight checks every row above from the install host, before you apply, and names each fix:
It changes nothing, so your network team can run it as themselves.