The Simplest Way to Make Github and Tcp Proxies Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

You pair github and tcp proxies to run code tasks on private servers. This setup lets build jobs reach locked network ports without open firewalls. Teams store source code and run test jobs inside hosted cloud runners. Yet databases and backend apps sit deep inside private networks. A raw socket bridge links these two worlds during a deployment run. It forwards bytes from the build runner to the target server port. How github and tcp proxies move traffic and check identity First, a code push

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 github and tcp proxies to run code tasks on private servers. This setup lets build jobs reach locked network ports without open firewalls.

Teams store source code and run test jobs inside hosted cloud runners. Yet databases and backend apps sit deep inside private networks. A raw socket bridge links these two worlds during a deployment run. It forwards bytes from the build runner to the target server port.

How github and tcp proxies move traffic and check identity

First, a code push starts a build job on a hosted runner. The runner needs a way to talk to a private database port. It opens a socket to an edge listener on a public address.

The runner proves its identity using a short token or a key. The listener checks this token against a list of allowed build jobs. Next, the listener opens a fresh socket to the private backend server. Traffic flows back and forth as raw packets over this link.

The source platform handles who can approve and start the build job. Team rules decide which branches can use production keys during a run. Once the stream starts, the socket tool moves bytes without reading them. It only knows the source address, the target port, and the byte count.

Common failure modes and how to scope network paths

Many teams make mistakes when they link build jobs to socket listeners. The worst mistake is using one shared key for every build repo. If a bad actor steals that key, they reach every private port.

Broad network paths also create big risks for your backend systems. A socket listener might allow traffic to an entire private subnet range. Then a compromised test job can scan other servers on that network. You must lock each listener rule to one host and one port.

GitHub Actions Security + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Unlogged traffic is another huge gap in most raw socket setups. A basic port forwarder sees raw bytes, not commands or SQL queries. When a job drops a table, the network log shows only packet sizes. You cannot tell which query broke the app or changed the data.

Sensitive data can also leak into build logs during a deployment run. If a job queries a database, raw results might print to the screen. Data masking rewrites matched fields like emails, phone numbers, or card numbers in results. It also rewrites national IDs so build logs stay safe for teams.

How to lock down roles for build runners

Start by giving each code repo its own unique identity and role. Never share static keys across different teams or different software projects. Set up your build platform to issue tokens that expire in minutes.

Next, map each repo role to the exact target port it needs. A frontend build job has no reason to reach a billing database. Drop any network packet that tries to cross into another server group. Close the socket the moment the build job finishes its last step.

Finally, review your audit logs every week to spot odd traffic spikes. Look for jobs that run at strange hours or move huge files. Good rules and tight network scopes keep your private servers 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

Why do hosted build runners struggle to reach private ports?

Hosted runners use wide ranges of public IP addresses that change often. Opening firewall rules for all those addresses exposes your private network to risk.

How should we manage secrets for automated deployment jobs?

Avoid storing long-lived keys in repo settings whenever you can. Use short-lived tokens tied to a specific branch and job run instead.

Can a basic port forwarder block destructive database queries?

No, a standard port forwarder only sees raw packets and IP addresses. It cannot read protocol commands to block a bad table drop.

The query runs. The emails stay hidden.