The Simplest Way to Make Cilium and Gitpod Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Running cilium and gitpod together pairs cloud coding workspaces with kernel-level network rules. This setup isolates each developer workspace inside your cluster while routing traffic fast. Gitpod spins up fresh coding pods on demand for every new task. Cilium uses eBPF in the Linux kernel to control pod network traffic. When you join them, each developer gets a fast, isolated place to write code. You do not need slow legacy firewall tables to keep these workspaces apart. The cluster assigns r

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 cilium and gitpod together pairs cloud coding workspaces with kernel-level network rules. This setup isolates each developer workspace inside your cluster while routing traffic fast.

Gitpod spins up fresh coding pods on demand for every new task. Cilium uses eBPF in the Linux kernel to control pod network traffic. When you join them, each developer gets a fast, isolated place to write code. You do not need slow legacy firewall tables to keep these workspaces apart. The cluster assigns rules based on pod labels instead of changing IP addresses.

How network flow and identity work in cilium and gitpod

Every time a developer starts a task, Gitpod creates a new pod. This pod needs to pull code, fetch packages, and reach test databases. Without clear network rules, one workspace might reach another developer's private pod. Cilium stops this lateral movement by reading the Kubernetes labels on each pod.

When the workspace pod boots, the network plugin assigns it a security identity. This identity travels with every network packet that leaves the developer workspace. You write network policies that match these labels to allow or block traffic. For example, a workspace label can allow traffic to a staging database pod. At the same time, the rule blocks packets heading to other coding pods. DNS rules can also limit which outside domains the workspace can reach.

Data flows directly between the workspace and approved cluster services through the kernel. Because eBPF bypasses old host routing layers, network delay stays very low. Developers can run web previews and test local microservices without network lag. Meanwhile, platform teams can see every packet path across the cluster.

Common failure modes and how to scope workspace roles

A common failure mode occurs when teams give workspaces broad cluster roles. If all coding pods share one service account, network isolation breaks down. Every workspace gets the same identity, so one rule applies to all developers. A bad script in one pod could then query services meant for another team.

End-to-End Encryption + Cilium Network Policies: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Another frequent problem is blocking core system traffic by mistake. Workspaces must talk to internal cluster DNS, container registries, and Gitpod control planes. If you apply a strict default-deny rule too fast, workspaces fail to start. Developers will see stuck loading screens because the pod cannot pull its base image. Also, some coding workspaces need to build containers inside the pod itself. Kernel socket routing features can clash with nested container networks if not scoped well.

To fix this, assign distinct namespaces or labels per project and team. Map each Gitpod project to a dedicated Kubernetes service account with tight permissions. Build your baseline network rules to allow core DNS and control plane ports first. Then add project-specific egress rules for internal test services and external code hosts. Finally, check that pod-to-pod encryption is active if workspaces cross public cloud nodes. This keeps source code and test data safe as packets move between hosts.

You should also avoid storing long-lived database keys inside workspace startup files. Network rules only control where packets go, not what queries run inside the connection. Unlogged database queries from shared workspace roles make security audits very hard. Pair your network rules with tight user roles and clear audit logs for data stores.

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

Why do Gitpod workspaces hang during startup after enabling Cilium?

Strict egress rules often block the workspace from reaching cluster DNS or image registries. Check that your baseline network rule allows traffic to core cluster system services.

How do we stop one developer workspace from reaching another workspace?

Apply a policy that denies ingress and egress between pods with workspace labels. Only allow traffic between the workspace pod and the main Gitpod control services.

Can developers still build Docker images inside a Cilium-managed workspace?

Yes, but nested container networks can clash with host-level socket routing features. You may need to adjust socket load balancing settings so inner bridge networks function.

The query runs. The emails stay hidden.