The Simplest Way to Make Crossplane and Gitpod Work Like They Should
Teams pair crossplane and gitpod to spin up cloud resources from remote workspaces. Crossplane builds databases and buckets while Gitpod runs the coding containers. This workflow gives each developer a clean space to write and test code. Developers do not have to install heavy cloud tools on their laptops. Instead, they write a simple spec file inside their browser workspace. The cluster control plane reads that spec and builds the real cloud service. How crossplane and gitpod share keys and
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.
Teams pair crossplane and gitpod to spin up cloud resources from remote workspaces. Crossplane builds databases and buckets while Gitpod runs the coding containers.
This workflow gives each developer a clean space to write and test code. Developers do not have to install heavy cloud tools on their laptops. Instead, they write a simple spec file inside their browser workspace. The cluster control plane reads that spec and builds the real cloud service.
How crossplane and gitpod share keys and data
To make crossplane and gitpod work together, both tools need clear trust rules. Gitpod starts a fresh container when a developer opens a code branch. That container needs a safe way to talk to the Kubernetes cluster. Meanwhile, Crossplane runs inside that cluster and talks to the cloud provider.
Identity flows from the developer to the workspace, then to the cluster. First, the developer logs in to Gitpod with their single sign-on account. Next, the workspace uses a scoped token to reach the Kubernetes API. The developer submits a claim for a new database or storage bucket.
Crossplane sees this new claim and checks the attached cloud role. It then calls the cloud API to build the requested database. Once the database is ready, Crossplane writes the new host details to a secret. The workspace reads that secret so the app can run tests right away.
Common failure modes and how to scope roles
Many teams hit trouble when they share one big admin key across workspaces. If every Gitpod container uses the same cluster key, audit logs break down. You cannot tell which person asked for an expensive cloud database. Worse, a leaked workspace token could let an attacker delete live data.
Broad tokens also cause resource drift and surprise cloud bills. Developers close their browser tabs and forget about the databases they built. Without strict rules, those test databases run all weekend and waste money. Unlogged queries from dev containers can also expose private customer records.
Crossplane Composition Security + End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
You can fix this by giving each workspace its own short-lived role. Tie the workspace identity to the user who started the session. Scope the cluster role so the workspace can only write claims in one namespace. Never let a dev container read secrets from other teams or live apps.
Lock down network paths between the workspace and the cloud database too. Place test databases in a private network that only accepts traffic from known pods. Use data masking to rewrite emails, phone numbers, and card numbers in query results. Set automatic cleanup rules so Crossplane deletes test databases when a workspace stops.
Keeping workspaces fast and safe at scale
Fast startup times matter when developers open ten workspaces a day. Waiting twenty minutes for a fresh cloud database slows down the whole team. Platform teams solve this by pre-building small pools of ready databases with Crossplane. When a Gitpod session starts, it claims a warm database in seconds.
Keep your resource templates small and easy to read. Developers should only pick simple sizes like small, medium, or large. Crossplane handles the subnet rules, disk encryption, and backup tags behind the scenes. This split keeps developers happy while security teams keep full control over cloud rules.
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 a Gitpod workspace talk to a Crossplane cluster?
The workspace uses a scoped Kubernetes client token tied to the user identity. This token lets the workspace send resource claims to one specific cluster namespace.
Should developers get direct cloud provider keys in Gitpod?
No, developers should never hold raw cloud provider keys in their workspaces. Give them rights to create Crossplane claims, and let the cluster talk to the cloud.
How do we stop leftover cloud resources from running up bills?
Tie the life of each Crossplane claim to the Gitpod workspace lifecycle. When a developer deletes the workspace, a cleanup webhook should delete the matching claim.
Related guides
In this post