The Simplest Way to Make Gitpod and Rook Work Like They Should
Running gitpod and rook together gives cloud workspaces reliable storage inside Kubernetes. Gitpod starts clean coding spaces on demand, while Rook manages Ceph storage pools. This setup lets developers save code, container layers, and build caches on cluster disks. When a workspace stops and starts again, Rook mounts the right volume back. How gitpod and rook handle roles and data flow Both tools run inside Kubernetes and use native cluster roles to talk. Gitpod runs a workspace pod for eac
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 gitpod and rook together gives cloud workspaces reliable storage inside Kubernetes. Gitpod starts clean coding spaces on demand, while Rook manages Ceph storage pools.
This setup lets developers save code, container layers, and build caches on cluster disks. When a workspace stops and starts again, Rook mounts the right volume back.
How gitpod and rook handle roles and data flow
Both tools run inside Kubernetes and use native cluster roles to talk. Gitpod runs a workspace pod for each developer session in a set namespace.
When a workspace needs disk space, Gitpod creates a standard storage claim. The Rook operator watches the cluster API for these new storage claims.
Rook then carves out a volume from the Ceph pool and binds it. The Kubernetes node mounts that volume into the active workspace pod.
Each tool relies on service accounts to check permissions during this flow. Gitpod needs rights to ask for volumes in its workspace namespace.
Rook uses its own storage role to manage raw disks across cluster nodes. Data moves straight from the workspace pod to the underlying Ceph storage daemons.
Teams can also use Rook object buckets to back up workspace states. In that mode, Gitpod sends snapshot tarballs to the internal audit storage.
It logs in with an audit storage key stored in a cluster secret. Keeping both systems in the same cluster cuts network delay during builds.
Common storage failures and how to scope access
A common mistake is sharing one broad admin key between both systems. If a workspace pod reads the Rook admin key, any user can wipe pools.
Another frequent issue comes from flat cluster networks with no traffic rules. Without network rules, a compromised workspace can talk straight to Ceph management ports.
End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Unlogged storage requests also make it hard to track who deleted a volume. You can fix these gaps by separating namespaces and scoping down each role.
Put Gitpod workspaces in one namespace and Rook operators in a separate namespace. Create a dedicated storage class just for developer workspace claims.
Give Gitpod a role that can only request volumes from that storage class. Never mount the Rook cluster admin secret inside a workspace namespace.
If Gitpod uses Rook object storage, create one bucket with a scoped user key. Limit that key so it can only read and write inside that bucket.
Next, add Kubernetes network policies to block workspace pods from Rook control pods. Allow workspace traffic only to the data ports needed for volume mounts.
Turn on Kubernetes audit logs for storage claims and secret reads. Review these logs often to spot odd volume requests or failed login attempts.
Sizing storage pools for fast workspace startups
Workspace pods write many small files when developers pull code and build packages. Slow disks will stall workspace startups and frustrate the engineering team.
Use solid state drives for the Rook pool that backs active workspaces. Set clear storage quotas on the workspace namespace so one user cannot fill disks.
Configure reclaim rules to clean up stale volumes after a developer deletes a workspace. Clear limits keep the storage cluster fast and healthy for everyone.
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
Why use Rook with self-hosted Gitpod?
Self-hosted Gitpod needs fast block and object storage to save workspace files. Rook provides both storage types inside Kubernetes without needing an outside cloud vendor.
How do you stop workspaces from reading Rook admin secrets?
Run Rook in its own locked namespace and use strict Kubernetes role rules. Give Gitpod access only to specific storage classes and single-bucket object keys.
What storage type works best for workspace backups?
Rook object storage works best for saving stopped workspace snapshots and build artifacts. Active running workspaces perform better when mounted on Rook block volumes.
Related guides
In this post