Allowlist Vertex Location Endpoints by Route
Vertex and the current Gemini Enterprise Agent Platform expose regional, multi-region, and global model endpoints with different processing and connectivity properties. A route allowlist should bind the approved hostname, location resource, project, model, and network path before any prompt leaves the application.

A Vertex model request carries location in more than one place. The selected hostname can target a regional or multi-region endpoint. It can also target a global endpoint, while resource names in the request can contain a location segment. Checking only the DNS suffix leaves a gap between the route that security approved and the destination the application actually addressed.
I want every authenticated AI route to resolve one approved destination tuple before dispatch. The tuple includes hostname and project, resource location and model, API method, and network path. Any mismatch should stop the request before prompt bytes cross the boundary.
TL;DR
- Allowlist the complete Vertex destination tuple, including hostname and project, resource location and model, API method, and the approved private or public network path.
- Treat regional and multi-region endpoints as policy states distinct from global endpoints; block automatic substitution unless the route explicitly permits it.
- Parse location-bearing resource names and compare them with the selected endpoint instead of trusting SDK client configuration.
- Record requested and enforced destinations, then test hostname or location drift, redirects, failover, and DNS or proxy rewrites before release.
Endpoint choice changes the processing contract
Google's current deployments and endpoints documentation lists regional and multi-region choices alongside a global service address for models and generative AI features. Google says the global endpoint can improve availability, but the caller cannot control or know which region receives the ML processing request. That makes global a distinct policy choice rather than a harmless fallback label.
The same page documents multi-region hostnames for the United States and European Union. The US hostname is aiplatform.us.rep.googleapis.com; the EU hostname is aiplatform.eu.rep.googleapis.com. Google states that these endpoints keep service processing of Customer Data within the selected jurisdictional boundary. It also warns that endpoints alone do not guarantee data residency or in-region ML processing, so the route record should link to the separate residency decision instead of inventing one from the hostname.
A location allowlist enforces the destination approved by legal and privacy owners, along with platform owners. It does not create the underlying residency determination.
The Vertex AI security guide places endpoint restriction beside identity and prompt policy. The endpoint check belongs on every provider-bound request, not only in deployment configuration.
The allowlist key is a destination tuple
A hostname by itself is too broad. The same service host can receive requests for different projects and models, as well as different methods and location-bearing resources. Build the allowlist around a tuple that names the provider host and Google Cloud project, location and publisher or model resource, API method, and route policy version. Add the expected network path when private connectivity is part of the approval.
The current Gemini model inference reference shows location inside resource names such as projects/{project}/locations/{location}/cachedContents/{cachedContent}. That location must agree with route policy. A request sent through an approved host can still point at a resource from an unapproved location or project if the gateway validates only the URL authority.
Normalize hostnames to lowercase and strip a single trailing dot. Compare exact labels. Reject user information, unexpected ports or raw IP literals, wildcard suffix tricks, and alternate Google API domains that the route owner never approved. Parse the path and body with the API-specific schema, then compare every recognized project and location field with the route tuple.
My blunt opinion is that *.googleapis.com is not an allowlist. It is permission to call an enormous cloud surface and hope the SDK behaves.
The LLM endpoint HTTP method allowlist supplies the companion method control. Bind the host and method to one path template in the route decision.
Global fallback requires an explicit decision
Availability code often treats endpoint substitution as an operational detail. For a location-bound AI route, it changes the processing contract. A regional call that silently falls back to global has crossed from a known location choice into a destination where Google says processing region cannot be controlled or known.
Default to fail closed when the approved endpoint is unavailable. If a business owner accepts global fallback for a specific route, encode that as a separate destination tuple with its data classes and principal set, model list, expiry, and audit result. Avoid a generic retry rule that rewrites the host after a timeout. The retry engine should ask route policy for another approved destination and record the transition before sending the next attempt.
Multi-region substitution also needs policy. The US and EU multi-region endpoints represent different jurisdictional boundaries. They are not interchangeable replicas for a route carrying restricted data. A model can also have different endpoint availability, so validate the approved model against Google's current location matrix during release review and again when policy is updated.
The multi-region AI gateway failover guide covers attempt lineage. Keep every attempted destination rather than overwriting the failed regional request with the later success.
Private connectivity belongs in the route record
Google's location documentation says Private Google Access is unsupported for multi-region endpoints and warns that attempts can produce connectivity problems or TLS handshake and certificate mismatch problems. For private access to those endpoints, Google directs customers to Private Service Connect, using a direct endpoint or a backend behind a load balancer.
A route approved for a Private Service Connect endpoint should not quietly switch to the public service hostname because a private DNS entry disappeared. Record the expected connection mode, private endpoint identifier or backend policy, TLS server name, and effective upstream hostname. Verify those values at the last trusted proxy before dispatch.
A load balancer can also rewrite authority or choose a backend. The gateway should validate the logical provider destination before the load balancer and capture the effective backend evidence available after routing. If those views disagree, stop or quarantine according to route policy. Logging only the original URL hides the path that carried the prompt.
On an operations screen, draw the approved location as a blue pin beside the hostname. A fallback attempt should appear on a separate row with an amber pin. That small visual detail prevents two destinations from collapsing into one green "Vertex" status tile.
Parse resource locations before dispatch
Location checks should run after the complete request is assembled. SDK initialization may set a default location, while cached content and other request fields, including tuned resources, can carry their own resource names. Parse each location-bearing name that the selected API contract recognizes and compare it with the approved tuple.
Unknown fields deserve a hold path, especially after provider or SDK changes. Preserve the field name and value in protected evidence, then block high-impact routes until the adapter understands the new location semantics. Dropping an unfamiliar resource reference can turn a provider change into silent destination drift.
Canonicalization must precede comparison. Percent-decode the path once under a strict URI parser and reject encoded separators and dot segments. Avoid reparsing after policy evaluation. Resolve the final URL only through trusted route configuration. Caller-controlled redirects should be disabled; any provider redirect should be rejected unless its target is separately allowlisted and the method plus body semantics are preserved under a documented rule.
The LLM route URI normalization guide covers the parser boundary. Location enforcement should consume that canonical route representation rather than rebuilding the URL with string concatenation.
Evidence should show requested and effective destinations
The audit record needs the authenticated principal and application route, requested and canonical hosts, project and resource location, model and method, network path and policy version, plus the decision. Add the effective upstream host or private endpoint evidence visible to the gateway. For retries, assign a new attempt record and keep the parent operation identifier.
Use vertex_host_not_allowed for a host failure. A location discrepancy emits vertex_location_mismatch. Denied global fallback and a changed network path need their own named findings as well. A generic destination error slows incident review because it conceals which part of the tuple failed.
Do not infer residency from an accepted request. Record the destination policy decision and the residency policy reference as separate evidence. Legal and privacy teams own the approved jurisdictional rule. Platform teams own route configuration and failover. Security owns enforcement tests and alert handling. This division keeps an HTTP control from claiming authority over contracts, storage, support access, or provider-side processing outside the documented endpoint behavior.
Release fixtures should force destination drift
Begin with one accepted request for each approved tuple and capture the upstream URL and resource names, method and model, plus the network path. Change the regional hostname to global, swap the US multi-region host for the EU host, alter the project, and insert a different location into a cached-content resource. Every mutation should produce a named decision before provider dispatch.
Add hostname edge cases: mixed case and a trailing dot, an unexpected port and a deceptive suffix, an IP literal, and an encoded path separator. Test a redirect to another Google API host. Another fixture should remove private DNS or alter the Private Service Connect backend so the effective path disagrees with route policy.
Exercise failover under a simulated regional outage. The retry engine should select only destinations attached to that route and data class. If no approved target remains, the operation stops with complete attempt evidence. Provider availability never grants permission to change jurisdiction.
Finally, update the SDK in a controlled branch and diff captured HTTP requests. The test passes only when host, path, resource location, and method still match the approved golden request or the policy owner approves a new tuple.
DeepInspect
DeepInspect can inspect authenticated user or agent HTTP traffic deliberately routed through its proxy before it reaches Vertex or the current Gemini Enterprise Agent Platform endpoint. It can enforce an exact destination tuple, block location and project mismatches, restrict fallback, and validate the method and canonical URI while binding the decision to a per-decision audit record.
The application owns identity issuance and route purpose, data classification and residency analysis, project configuration and private networking, model qualification, and downstream effects. Google owns provider infrastructure and documented endpoint behavior. Direct calls and local inference, DNS or network paths outside the proxy, and provider-side processing beyond inspected HTTP metadata remain outside DeepInspect's enforcement boundary.
Book a technical deep dive at deepinspect.ai.
Frequently asked questions
- Can a route allow both regional and global Vertex endpoints?
Yes, when route policy lists each as a separate approved destination with explicit data classes and principals, models, and fallback conditions. The global choice needs a recorded owner because Google says its processing region cannot be controlled or known.
- Is the endpoint hostname enough to prove data residency?
Google's location page explicitly warns that endpoints alone do not guarantee data residency or in-region ML processing. Keep the endpoint decision and the organization's residency analysis as linked but separate records.
- Should an SDK location setting satisfy the control?
The SDK setting is configuration input. Enforce the final HTTP host and parse location-bearing resource names after serialization. That catches defaults and middleware rewrites, cached-resource references, and failover behavior that can differ from initialization state.
- What should happen when an approved region is unavailable?
Follow the route's declared failover policy. Select another approved tuple and create a new attempt record, or fail closed when none remains. Avoid automatic global substitution because it changes the documented processing-location properties of the request.