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

Published
Length
3 min read

Luis Felipe Dias

All posts

In production, cilium and phabricator work together to guard your code review pods. Cilium sets network rules in the kernel, while Phabricator runs code checks and deploys. This pairing lets teams run safe builds and block bad network calls right away. When a user pushes code, Phabricator starts a build job inside the cluster. Cilium checks the pod label and decides where that build job can talk. This keeps untrusted build tasks away from core databases and internal apps. How cilium and phabr

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.

In production, cilium and phabricator work together to guard your code review pods. Cilium sets network rules in the kernel, while Phabricator runs code checks and deploys.

This pairing lets teams run safe builds and block bad network calls right away. When a user pushes code, Phabricator starts a build job inside the cluster. Cilium checks the pod label and decides where that build job can talk. This keeps untrusted build tasks away from core databases and internal apps.

How cilium and phabricator handle network flow and permissions

Data moves between these two tools during two main steps in the daily workflow. First, engineers push code updates to the web server or over an SSH port. Second, Phabricator reaches out to build runners and external code hosts to sync changes. Cilium sits at the base of the cluster and watches every single network packet.

Traditional firewalls only look at IP addresses and ports to block or allow traffic. Pods change their IP addresses all the time when they restart or scale up. Cilium fixes this by using workload labels instead of shifting IP addresses for rules. You label the Phabricator web pods, the worker daemons, and the backend database pods.

Then you write simple network rules that match those exact pod labels. The web pod can talk to the database port, and nothing else can. Worker daemons can send webhooks to approved build endpoints on your network. Cilium also reads HTTP paths and methods to give you fine control over requests. You can allow a build runner to read code without letting it delete repos.

Common failure modes and how to scope network paths

Many teams fail by using one shared service account for all Phabricator worker tasks. They also give that single account a broad API token that never expires. If a build script leaks that token, an attacker can read every private repo. Another big issue is leaving database queries and admin actions out of audit logs. Without clear logs, you cannot tell which user ran a bad script or query.

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

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Network rules also break when teams open all outbound traffic for worker pods. Build jobs often need to fetch packages from the public internet during a test. If you allow all outbound traffic, a bad script can reach internal cloud keys. You must block access to local metadata services and private subnets from build pods.

To fix this, split your worker daemons into small groups with distinct labels. Give each group its own narrow role and a token with minimal rights. Use Cilium DNS rules to allow traffic only to specific domain names you trust. Keep the database on a strict path that only accepts calls from core pods. Log every network drop and API call so your team can spot bad rules. Check these logs each week to remove old tokens and tighten open ports. If a sensitive value like an email or card number appears, masking rewrites matched fields in results.

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 do Phabricator SSH clones fail after turning on Cilium rules?

Cilium blocks ports that are not listed in your active pod network rule set. You must add a rule that allows traffic to the SSH daemon pod port.

How do we stop Phabricator build runners from reaching internal services?

Give your build runner pods a unique label in your cluster setup files. Write a Cilium rule for that label that blocks traffic to private IP ranges.

Can Cilium filter traffic between Phabricator and its MySQL database?

Yes, Cilium can restrict database traffic using pod labels and specific TCP port numbers. Only pods with the exact Phabricator app label will be able to send queries.

The query runs. The emails stay hidden.