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

Published
Length
3 min read

Luis Felipe Dias

All posts

Running crossplane and google cloud deployment manager together helps teams build cloud resources with ease. This pair lets you keep old templates while moving new apps to Kubernetes rules. Many teams still have legacy templates running in their Google Cloud projects today. Moving every template at once takes too much time and creates big risks. When you pair both tools, you can run old templates alongside new control planes. Your team can build new apps using Kubernetes APIs and still read exi

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 crossplane and google cloud deployment manager together helps teams build cloud resources with ease. This pair lets you keep old templates while moving new apps to Kubernetes rules.

Many teams still have legacy templates running in their Google Cloud projects today. Moving every template at once takes too much time and creates big risks. When you pair both tools, you can run old templates alongside new control planes. Your team can build new apps using Kubernetes APIs and still read existing cloud data.

How crossplane and google cloud deployment manager share roles and data

Each tool uses a different way to talk to the Google Cloud API. Deployment Manager runs inside Google Cloud and uses a built-in cloud service account. Crossplane runs inside a Kubernetes cluster and needs its own service account to work. Both tools send requests to the same Google Cloud APIs to build resources.

To make them work together, you should use Workload Identity on Google Cloud. This setup links a Kubernetes service account to a Google Cloud service account. You do not need to save static JSON keys inside your cluster secrets. Crossplane gets short-lived tokens from Google Cloud and uses them to make API calls.

Data flows between the two tools through shared cloud state and read-only lookups. Deployment Manager creates base items like networks, subnets, and projects for your team. Crossplane then reads those network names and builds databases or storage buckets inside them. This clear split stops the two tools from fighting over the same cloud item.

Common failure modes and how to scope roles

The biggest mistake teams make is sharing one service account between both tools. If both tools use the same broad role, your audit logs become useless. You will not know which tool changed a rule or deleted a database. Even worse, a bug in one tool could break resources owned by the other.

Another common problem happens when both tools try to write to one resource. Crossplane runs a loop that checks and fixes cloud items all the time. Deployment Manager only pushes changes when a user runs an update job. If Crossplane edits a resource made by Deployment Manager, the next template run will fail.

GCP Access Context Manager + Crossplane Composition Security: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

You can fix this by giving each tool its own scoped service account. Give the Deployment Manager account rights to edit only base networks and project settings. Give the Crossplane account rights to create only app resources like buckets and SQL instances. Use clear labels on every cloud resource to show which tool owns it.

Steps to move resources between the two tools

When you are ready to retire old templates, move your items one by one. First, set Crossplane to read the existing cloud resource without making any changes. Check your logs to make sure the resource specs match the live cloud state.

Next, remove the resource from your Deployment Manager template without deleting the real item. Cloud rules let you abandon a resource so it stays alive in your project. After the template drops the item, let Crossplane take full control of it. This simple flow keeps your databases and networks running with zero downtime for users.

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

Can both tools manage the same Google Cloud resource at once?

No, only one tool should have write rights for any single cloud resource. Let Deployment Manager own base networks while Crossplane owns app databases and buckets.

How should Crossplane log in to Google Cloud without static keys?

Use Google Cloud Workload Identity to link your Kubernetes pod to a cloud role. This method removes static JSON keys and gives your pods short-lived tokens.

How do we track changes when both tools run in one project?

Create a separate Google Cloud service account for each tool and each team. Cloud Audit Logs will then show the exact account that made every API call.

The query runs. The emails stay hidden.