The Simplest Way to Make Buildkite and Phabricator Work Like They Should
You pair buildkite and phabricator to run automated tests on every code change. Phabricator sends code review events to Buildkite, and Buildkite returns pass or fail results. This workflow keeps bad code out of your main branch. Reviewers see test results right inside the review page before they approve changes. Teams ship faster when these two tools talk to each other without manual steps. How buildkite and phabricator share data and keys The link between buildkite and phabricator relies on
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.
You pair buildkite and phabricator to run automated tests on every code change. Phabricator sends code review events to Buildkite, and Buildkite returns pass or fail results.
This workflow keeps bad code out of your main branch. Reviewers see test results right inside the review page before they approve changes. Teams ship faster when these two tools talk to each other without manual steps.
How buildkite and phabricator share data and keys
The link between buildkite and phabricator relies on web calls and API keys. A developer posts a new code change for review in Phabricator. Phabricator then sends a web notice to start a new job in Buildkite.
Buildkite picks up the job and assigns it to a build agent. The build agent needs a key to pull the raw code change from Phabricator. After the agent runs the tests, it sends the status back to Phabricator.
This two-way flow needs two sets of keys. Phabricator needs a key that can start builds in Buildkite. The Buildkite agent needs a Phabricator key to read code and post results.
You must store these keys in a safe place on your build hosts. Never put API keys inside your source code or build scripts. Use host secrets or a secret store so agents read keys only at run time.
Common failure modes and how to scope roles
Many teams use a personal admin account to link these two systems. When that person leaves the company, the whole build pipeline breaks down. Instead, create a dedicated bot user in both tools for this link.
Broad API keys create another big risk for your team. If a build agent holds an admin key, a bad script can delete repos. Give the bot user only the exact permissions it needs to do its job.
End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
In Phabricator, limit the bot account so it can only read diffs and post build status. In Buildkite, scope the token so it can only trigger builds on specific pipelines. This setup stops an attacker from moving between systems if a key leaks.
Unlogged calls between the two tools also cause headaches during outages. When a build fails to start, teams waste hours guessing which side dropped the call. Turn on audit logs in both tools to track every web call and key use.
Network paths and agent security
Buildkite runs agents on your own servers while its control plane sits in the cloud. Phabricator often runs inside a private company network behind a firewall. Your build agents must reach both Phabricator and the Buildkite cloud to work.
Do not open your whole Phabricator server to the public internet for build webhooks. Place your build agents in a private subnet that can talk to Phabricator. Allow outbound traffic from Phabricator only to known Buildkite web addresses.
Keep your build agents clean between jobs so secrets do not leak across builds. Wipe the work folder after every run and rotate your bot keys on a set schedule. If build logs contain emails or phone numbers, mask those fields before saving the logs.
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
How does Phabricator trigger a Buildkite pipeline?
Phabricator uses a build plan in its Harbormaster app to make an outbound web call. That call hits the Buildkite API with a token and starts a new pipeline run.
How do Buildkite agents send test status back to Phabricator?
When a build finishes, the agent makes an API call back to Harbormaster in Phabricator. This call uses a bot token and updates the code review page with pass or fail results.
What permissions should the shared bot account have?
The bot should only have rights to read code diffs and update build statuses in Phabricator. In Buildkite, its token should only have rights to start and view builds for that project.
Related guides
In this post