The Simplest Way to Make Buildkite and Tcp Proxies Work Like They Should
Teams pair buildkite and tcp proxies to run build jobs inside private networks. This setup lets self-hosted runners reach internal databases and apps without public IPs. In this model, the cloud control plane schedules the pipeline steps. Your local agents poll for work and open local network sockets to finish deploys. It keeps sensitive data off the public internet during tests and releases. Yet many teams still struggle to lock down what each job can reach. How buildkite and tcp proxies han
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.
Teams pair buildkite and tcp proxies to run build jobs inside private networks. This setup lets self-hosted runners reach internal databases and apps without public IPs.
In this model, the cloud control plane schedules the pipeline steps. Your local agents poll for work and open local network sockets to finish deploys. It keeps sensitive data off the public internet during tests and releases. Yet many teams still struggle to lock down what each job can reach.
How buildkite and tcp proxies handle traffic and roles
A runner sits inside your private network and waits for pipeline jobs. When a job starts, the runner pulls code and runs your test scripts. Those scripts often need to read or write data in private services. They send traffic through local network forwarders to reach the right database host.
Identity and roles must flow from the pipeline step to the network socket. The runner checks the job token before it opens a network path. Next, the network forwarder checks the source IP and TLS certs of the runner. If both checks pass, the forwarder sends the raw packets to the backend host.
Data flows over a direct socket between the runner and the target service. The forwarder passes bytes back and forth without changing the app payload. When the pipeline step ends, the runner closes the socket right away. This flow keeps network paths open only while a build job runs.
Common failure modes and how to scope network paths
Many teams place all runners in one flat subnet with broad network rules. Any pipeline job on that runner can reach every database through the forwarder. If a bad script runs in a pull request, it can hit prod data. Shared service accounts make this worse because every job uses the same static password.
Another big issue is blind packet routing at the network layer. Standard port forwarders only log IP addresses, port numbers, and byte counts. They do not record which build step ran a destructive database command. When a migration breaks a table, the team cannot trace the exact pipeline run.
End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
You can fix this by splitting runners into small pools by job type. Give build runners for pull requests zero network routes to prod forwarders. Put deploy runners in a separate subnet with strict firewall rules. Each runner pool should use its own distinct role and short-lived certs.
You should also match database roles to specific pipeline branches. Let main branch deploy jobs use write roles on the target service. Give test jobs read-only roles on staging databases with masked emails and card numbers. Always rotate runner keys often and log every job ID before opening a port.
Why network routing alone falls short for build audits
Packet forwarders move bytes well, but they do not understand database commands. Security teams need to see the exact queries that a deploy job runs. They also need a way to pause risky jobs for human approval. Tying pipeline identity to query logs closes the gap between builds and data security.
Govern statements and responses across databases and APIs
Good config and scoped roles are needed setup. They do not check single queries in flight or mask sensitive fields in returned rows. Across Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, and internal HTTP endpoints, hoop.dev runs beside each supported service as an open-source proxy, a sidecar for your database or API.
First, hoop.dev guardrails block banned queries before they run. Then hoop.dev data masking rewrites matched sensitive values in responses in memory. The audit trail records every statement and verdict per resource. Furthermore, hoop.dev holds SOC 2 Type II and is open source on GitHub.
Frequently asked questions
Why do build runners need local network forwarders?
Runners often sit in isolated subnets away from core databases. Local forwarders route traffic across subnets without opening broad firewall holes.
How do I stop test jobs from reaching production databases?
Run test jobs on separate agent queues in their own network segment. Block those subnets from reaching prod ports at the firewall level.
What happens if a build job hangs while holding an open socket?
Set strict idle timeouts on both your pipeline steps and your network forwarders. This drops dead sockets and frees up database resources right away.
Related guides
In this post