The Simplest Way to Make Crossplane and Linstor Work Like They Should
Teams use crossplane and linstor together to build and manage block storage inside Kubernetes clusters. Crossplane acts as the control plane while Linstor creates fast disks across your storage nodes. This pairing lets developers ask for storage volumes using plain Kubernetes manifests. The control plane reads those manifests and tells the storage manager to build the disks. Your platform team does not need to set up each block volume by hand. How crossplane and linstor handle keys and data f
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 linstor together to build and manage block storage inside Kubernetes clusters. Crossplane acts as the control plane while Linstor creates fast disks across your storage nodes.
This pairing lets developers ask for storage volumes using plain Kubernetes manifests. The control plane reads those manifests and tells the storage manager to build the disks. Your platform team does not need to set up each block volume by hand.
How crossplane and linstor handle keys and data flow
The workflow starts when a developer submits a storage claim to the Kubernetes API. Crossplane watches for these claims and translates them into actions for the storage controller. To do this work, the control plane needs a valid key to log in.
Most teams store this client secret inside a protected Kubernetes namespace. The provider reads the key and opens a secure network link to the storage API. Then it sends a request to create, resize, or delete a storage volume.
Linstor receives the request and checks the permissions tied to that client key. If the key is valid, the controller talks to its node agents across the cluster. Those node agents carve out local disk space and mirror the data across hosts.
Notice that actual app data never flows through Crossplane during normal disk reads and writes. The control plane only sends management commands to set up the volume state. Your running apps read and write blocks straight to the local storage nodes.
Common failure modes and how to scope roles
Many teams make the mistake of giving the control plane a master admin key. If someone leaks that broad token, an attacker can wipe out every storage pool. A shared service account also makes it hard to see who broke a volume.
Unlogged queries between the control plane and the storage API create another big blind spot. When a volume disappears, your team cannot tell if a human or a controller did it. You need clear audit logs for every single API call and disk change.
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 these risks by scoping roles down to the exact actions needed. Create a dedicated role for the provider that only manages specific storage pools. Never let the automated controller delete node setups or change cluster wide network settings.
Lock down the network path between the two tools using strict cluster network rules. Only allow the provider pod to talk to the storage controller API port. Block all other pods from sending network traffic to your storage management plane.
Best ways to test your storage claims
Before you put this pair into production, test how they handle bad requests. Have a developer ask for a disk size that is way too large. Check that the control plane catches the error and writes a clear status message.
Next, test what happens when the storage controller drops off the network for a minute. The control plane should wait and retry the request without making duplicate volumes. When the network comes back, both tools should sync their state right away.
You should also test how the system handles secret rotation on a live cluster. Swap out the API key in your test cluster while workloads are running. Make sure the provider picks up the new secret without dropping active storage claims. Good platform teams run this check every month to avoid surprise outages later.
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
Does Crossplane sit in the data path for Linstor volumes?
No, the control plane only sends setup commands to the storage controller API. Your apps read and write data straight to the underlying storage nodes.
How should we scope the API key used by the provider?
Give the provider a role that can only create and delete volumes in specific pools. Do not give it cluster admin rights or permission to remove storage nodes.
What happens to running disks if the Crossplane pod restarts?
Existing disks keep running without any drop in speed or app uptime. When the pod restarts, it checks the storage API and matches the current state.
Related guides
In this post