The Simplest Way to Make Kuma and Vertex AI Work Like They Should
Running Kuma and Vertex AI together links your local service mesh to cloud models. This setup lets internal apps call machine learning endpoints over controlled network paths. Teams use Kuma to manage service traffic across zones and clusters. They use Vertex AI to train, host, and run models on Google Cloud. Pairing both tools helps teams track traffic and enforce strict security rules. How Kuma and Vertex AI share data and permissions Kuma runs a data plane proxy next to each service in yo
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.
Running Kuma and Vertex AI together links your local service mesh to cloud models. This setup lets internal apps call machine learning endpoints over controlled network paths.
Teams use Kuma to manage service traffic across zones and clusters. They use Vertex AI to train, host, and run models on Google Cloud. Pairing both tools helps teams track traffic and enforce strict security rules.
How Kuma and Vertex AI share data and permissions
Kuma runs a data plane proxy next to each service in your mesh. When an app calls a model, traffic flows through this local sidecar first. Kuma checks its traffic rules to see if the app can talk out. You define an external service resource inside the mesh for the cloud endpoint. This resource tells the mesh where to send requests outside the cluster.
Vertex AI needs a valid Google Cloud identity before it accepts any request. Your app or workload identity must log in and get an access token. Kuma does not manage Google Cloud roles on its own. Instead, the mesh handles network routing, mutual TLS inside the cluster, and outbound TLS. Your cloud setup handles the role check when the request hits the model API. Both layers must agree before data flows back to your app.
Fixing common failure modes with roles and network paths
Many teams start by sharing one service account key across all mesh services. This is a big risk because a leaked key opens every model endpoint. If one app gets hacked, the attacker can run up huge cloud bills. They can also read private training data or model weights. To fix this, bind a unique workload identity to each specific app service. Give each identity the smallest role needed to call its specific model.
Broad network rules are another common mistake in service mesh setups. If you turn on outbound pass-through, any pod can reach any web address. You lose visibility into which app called which external AI endpoint. Instead, turn off pass-through and register each cloud host as a mesh service. Then write a traffic permission rule that links one source service to that host.
AI Agent Security: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Timeouts and retries also cause trouble when calling large language models. Model calls often take much longer than standard database or API requests. If Kuma uses short default timeouts, it will drop slow model responses early. Worse, fast retries can flood the cloud endpoint and use up your quota. Set custom timeout rules on the external service route to match model latency. Limit retries so slow prompts do not trigger a storm of extra calls.
Keeping sensitive data safe in model traffic
Logs are vital when you run AI workloads in production. Kuma can log every network call that leaves the cluster for Google Cloud. Still, standard network logs only show hostnames, status codes, and byte counts. They do not check the prompt text for private user details.
Developers might send customer emails, phone numbers, or card numbers inside a prompt. You need a way to inspect payloads and mask those fields in results. Masking rewrites matched fields like national IDs before the data moves further. Combining mesh routing rules with payload checks keeps your model pipelines clean and safe.
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
How does Kuma route traffic to external Vertex AI endpoints?
You define an external service inside your Kuma mesh for the Google Cloud host. Kuma then routes outbound app traffic through the sidecar using strict TLS rules.
How should apps log in to Vertex AI from a Kuma mesh?
Use workload identity federation instead of static service account keys. Map each mesh service account to a cloud role with narrow model permissions.
Why do Vertex AI requests time out inside a Kuma service mesh?
Large models take several seconds to generate a full response. You must raise the outbound timeout limit in Kuma for those specific external routes.
Related guides
In this post