The Simplest Way to Make Crossplane and JetBrains Space Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams use crossplane and jetbrains space together to build cloud resources from code. JetBrains Space stores the code and runs jobs, while Crossplane creates the cloud servers and databases. This workflow lets developers ask for new cloud tools through simple code reviews. Space checks the request, and Crossplane builds the exact resource in the cloud. How crossplane and jetbrains space share data and roles The link between crossplane and jetbrains space starts in your code repo. Developers

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 use crossplane and jetbrains space together to build cloud resources from code. JetBrains Space stores the code and runs jobs, while Crossplane creates the cloud servers and databases.

This workflow lets developers ask for new cloud tools through simple code reviews. Space checks the request, and Crossplane builds the exact resource in the cloud.

How crossplane and jetbrains space share data and roles

The link between crossplane and jetbrains space starts in your code repo. Developers write files that describe the databases or storage buckets they need. They push these files to a repo inside JetBrains Space. A Space job then runs checks on the new files.

After a team member approves the change, Space talks to the Kubernetes cluster. This cluster runs the Crossplane control plane. Space uses a service key or token to log in to the cluster. It sends the updated resource files straight to the cluster API.

Crossplane reads these new files inside the cluster. It then uses its own cloud keys to build the real cloud items. When the cloud provider finishes the job, Crossplane writes connection details into cluster secrets. Your apps can then read those secrets to talk to the new database.

Data flows in one clear path from the Git repo to the cloud. Space handles the team reviews, chat alerts, and job runners. Crossplane handles the state checks and talks to the cloud APIs. Both tools need clear rules so they only touch what they should.

Common token risks and how to scope access

Many teams make the mistake of giving Space a full cluster admin key. If a bad actor steals that key, they control the whole cluster. They can also read every secret that Crossplane creates for your apps. Shared service accounts make it hard to see who made a bad change.

Broad cloud keys inside Crossplane create another big risk for your team. If Crossplane holds one root key, any Space job can build anything. A small typo in a Space repo could wipe out a live database. Unlogged commands from automation workers also leave gaps during security audits.

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 Space project its own small role. Set up Kubernetes role rules so a project only touches its own namespace. Never let the Space runner read the raw secrets that Crossplane writes. The runner only needs permission to send the resource request files.

You should also split up your Crossplane cloud keys by team or stage. Use one cloud role for test apps and another for live apps. Lock down network paths so only known Space runners reach the cluster API. Finally, turn on cluster audit logs to track every single request from Space.

Keeping day-to-day workflows fast and safe

Good access rules should not slow down your developers during their daily work. Start by building standard templates for the cloud items your team uses most. Store these templates in a shared repo where leads can review them. Developers then fill in a few simple fields in their own project repos.

Use Space merge checks to catch mistakes before they reach the cluster. A quick job can check if a request asks for too much memory. It can also block changes that try to use the wrong cloud role. When the checks pass, the job sends the clean file to Crossplane.

Teams also need a safe way to check live systems when things break. Automation handles the normal builds, but humans still fix broken states and databases. Make sure your engineers use scoped roles when they inspect the cluster or cloud. Log every query and command, and mask sensitive fields like emails or card numbers.

Govern statements and responses across databases and APIs

Good config and scoped roles are needed setup. They do not check single queries in flight or mask sensitive fields in returned rows. Across Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, and internal HTTP endpoints, hoop.dev runs beside each supported service as an open-source proxy, a sidecar for your database or API.

First, hoop.dev guardrails block banned queries before they run. Then hoop.dev data masking rewrites matched sensitive values in responses in memory. The audit trail records every statement and verdict per resource. Furthermore, hoop.dev holds SOC 2 Type II and is open source on GitHub.

Frequently asked questions

Does JetBrains Space need direct cloud keys when using Crossplane?

No, Space only needs a key to talk to the Kubernetes cluster. Crossplane holds the cloud keys and talks to the cloud APIs directly.

How do we stop a Space job from deleting live cloud databases?

Give the Space runner a limited cluster role restricted to a test namespace. Also set deletion rules on your Crossplane resources so they keep live data safe.

Where do database passwords go after Crossplane builds a database?

Crossplane writes the new login details into a Kubernetes secret inside your cluster. Your apps read that secret directly, so Space never needs to store the password.

The query runs. The emails stay hidden.