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

Published
Length
3 min read

Luis Felipe Dias

All posts

Using kubler and phabricator together lets teams link container builds to code reviews. Phabricator tracks code changes and tasks, while Kubler builds the final container images. This setup creates a clear path from a developer patch to a running container. Teams can check every build step and match each image to an approved commit. When both tools share clear rules, builds stay fast and easy to audit. How kubler and phabricator share keys and data Data flows from Phabricator to the build ho

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.

Using kubler and phabricator together lets teams link container builds to code reviews. Phabricator tracks code changes and tasks, while Kubler builds the final container images.

This setup creates a clear path from a developer patch to a running container. Teams can check every build step and match each image to an approved commit. When both tools share clear rules, builds stay fast and easy to audit.

How kubler and phabricator share keys and data

Data flows from Phabricator to the build host where Kubler runs. A developer submits code for review in Phabricator and waits for approval. Once a peer approves the change, Phabricator triggers a build job.

The build job pulls the latest build scripts from the Phabricator code repo. Kubler then reads these scripts and builds the container images in clean namespaces. To pull private code, the Kubler build host needs a valid key.

Teams often create a bot account in Phabricator for this task. The bot uses an SSH key or an API token to read code. After Kubler finishes the build, the runner sends the status back to Phabricator. Developers see right away if their patch broke the container build.

Common failure modes and how to scope roles

Many teams make the mistake of using personal keys on the build server. If that engineer leaves the team, the build pipeline stops working at once. Shared admin tokens are another major risk in this workflow.

If a build host holds a broad Phabricator token, any script can read all repos. A bad script could even close tasks or approve code changes on its own. Unlogged commands on the Kubler host also create big blind spots for security teams.

When two engineers run builds as the same root user, logs show one name. You cannot tell who changed a build file or pushed a broken image. To fix this, give the Phabricator bot read-only rights to specific repos only.

End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Never give the build bot write access to your main code branches. Keep the network path between the Kubler host and Phabricator tight and strict. Allow traffic only on the exact ports needed to pull code and post status.

Rotate the bot keys on a fixed schedule so old keys do not linger. Separate the build spaces so test builds cannot touch production images or keys.

Keeping container builds safe and easy to audit

Good logs make it easy to trace every image back to a single task. Each time Kubler runs, record the commit hash and the Phabricator task number. Store these build logs in a safe place off the main build server.

If a build fails, developers should read the logs without logging into the host. Giving everyone direct shell access to the Kubler machine leads to drift and mistakes. Instead, let Phabricator trigger the runs and collect the output for the team.

Check your Phabricator audit logs often to see which repos the bot reads. If a repo no longer needs container builds, remove the bot from its rules. Keep your base images small and update them often to patch known bugs. When you pair strict roles with clean logs, your build pipeline stays safe.

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

How should Kubler pull private code from Phabricator?

Create a dedicated bot user in Phabricator with read-only access to the needed repos. Give the Kubler build runner a scoped SSH key tied to that bot user.

Why should we avoid shared root shells on the Kubler host?

Shared root shells hide which engineer ran a command or changed a build script. Individual identities let you track every change and fix broken builds much faster.

What data should Phabricator send to the build runner?

Phabricator should send the repo name, the exact commit hash, and the task ID. This lets the runner test the right code and report the status back.

The query runs. The emails stay hidden.