The Simplest Way to Make Crossplane and Vertex AI Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Using Crossplane and Vertex AI together lets teams manage cloud AI setups from Kubernetes. Engineers define machine learning tools as code, and the cluster builds them in Google Cloud. This workflow turns manual cloud tasks into repeatable file updates. Product teams ask for AI models or data stores through simple cluster files. Platform teams set the security rules once and reuse them everywhere. Everyone uses the same Git review flow for both app code and AI tools. How Crossplane and Vertex

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.

Using Crossplane and Vertex AI together lets teams manage cloud AI setups from Kubernetes. Engineers define machine learning tools as code, and the cluster builds them in Google Cloud.

This workflow turns manual cloud tasks into repeatable file updates. Product teams ask for AI models or data stores through simple cluster files. Platform teams set the security rules once and reuse them everywhere. Everyone uses the same Git review flow for both app code and AI tools.

How Crossplane and Vertex AI share roles and data

The control plane runs inside your Kubernetes cluster. It watches for custom resource files that describe Google Cloud tools. When a developer adds a file, the provider talks to the Google Cloud API. It creates or updates the requested machine learning asset right away.

To make this work, the cluster needs permission to act in Google Cloud. Teams link a Kubernetes service account to a Google Cloud service account. Workload Identity Federation handles this link without static JSON keys. The provider exchanges its cluster token for a short cloud token. Then it uses that token to manage notebooks, endpoints, and datasets.

Data flows along two distinct paths in this setup. Control calls go from the cluster provider to the Google Cloud API. Training data and model prompts go from your apps or buckets to the AI service. Keeping control calls separate from training data keeps your setup clean and safe.

Common failure modes and how to scope access

Many teams start by giving the cluster provider one big admin role. That single role can create models, read buckets, and change network rules. If a user can write resource files in the cluster, they gain all those powers. A bad file could expose private training data or delete a live model endpoint.

Static service account keys cause another major problem. Teams sometimes download a JSON key and store it as a cluster secret. Anyone who can read secrets in that namespace can steal the key. They can then run cloud commands from outside the cluster without leaving clear user logs.

Crossplane Composition Security + AI Agent Security: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

To fix this, split your provider roles by team or namespace. Give each team a dedicated Google Cloud service account with narrow rights. One role might only deploy endpoints, while another role manages training jobs. Use private network paths like Private Service Connect for all model traffic. This keeps prompts and training files off the public internet.

Keeping human and workload actions accountable

Automated loops fix drift when someone changes a setting in the cloud console. The cluster checks the live state against your Git files every few minutes. If a setting changes by hand, the provider sets it back to match Git. This stops secret changes from staying live in production.

Even with Git checks, engineers still need to test models and check data. If they share one cloud role for debugging, you lose track of who did what. Audit logs will only show the shared service account name. You should tie every live query and debug action to a single person. Masking rules can also rewrite sensitive fields like emails, phone numbers, or card numbers in results.

Add runtime guardrails and masking beside your databases and APIs

Login rules, role grants, and CI checks govern who connects to your stack. Yet any allowed script, engineer, or AI agent still runs commands with the full scope of its role. For workloads on Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes, SSH, or internal HTTP services, hoop.dev sits beside the service as an open-source proxy, a sidecar for your database or API.

Before a query runs, hoop.dev guardrails check the statement against your rules. An AI Analyzer you configure can score intent or hold risky calls for human review. Next, hoop.dev data masking rewrites sensitive fields in responses, and each verdict is logged per listener. Explore the MIT-licensed project on GitHub.

Frequently asked questions

How should Crossplane log in to Google Cloud for Vertex AI?

Use Workload Identity Federation instead of static JSON keys. This links your cluster service account directly to a Google Cloud role using short tokens.

Can developers create AI models without full cloud console access?

Yes, platform teams can publish safe templates inside the cluster. Developers submit a small file, and the cluster builds the model with approved settings.

How do we stop one team from changing another team's models?

Bind separate cloud service accounts to each Kubernetes namespace. Give each account permissions only for its own Google Cloud project or folder.

The query runs. The emails stay hidden.