The Simplest Way to Make Conductor and Tcp Proxies Work Like They Should
You pair conductor and tcp proxies to route workflow tasks to private backend services. Conductor runs your app steps, while a TCP forwarder carries raw network packets. Teams use this setup to keep internal databases and queues off the public internet. Worker nodes poll the workflow engine for jobs and send data through network relays. This pattern lets distributed apps run tasks across isolated cloud subnets without public endpoints. How conductor and tcp proxies pass traffic and keys A wo
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 conductor and tcp proxies to route workflow tasks to private backend services. Conductor runs your app steps, while a TCP forwarder carries raw network packets.
Teams use this setup to keep internal databases and queues off the public internet. Worker nodes poll the workflow engine for jobs and send data through network relays. This pattern lets distributed apps run tasks across isolated cloud subnets without public endpoints.
How conductor and tcp proxies pass traffic and keys
A workflow starts when your main app sends a job request to the engine. The central server puts each task into a queue and waits for a worker. Worker apps run inside your private network and poll the engine for new tasks.
When a worker picks up a task, it often needs to reach another backend. That target might sit in a separate virtual network or a locked data center. The worker opens a socket to a TCP relay to cross that network boundary.
The TCP forwarder reads the target address and passes raw packets to the destination. It does not read the app data inside the stream. So, the worker itself must hold the login key for the target service. The worker logs in with its own role, runs the task, and sends results back.
Common failure modes with shared keys and broad network rules
Many teams give every workflow worker the same shared service account key. If one worker gets compromised, an attacker gains full reach across all linked backends. Shared keys also make audit logs hard to read during a security review. You can see that a worker ran a query, but not which workflow triggered it.
Broad network rules create a second major risk in this setup. A basic TCP relay checks IP addresses and ports, not user roles or task types. Once a worker can reach the relay port, it can send any command. If a bad script runs on the worker, the relay forwards those packets without question.
End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Dropped sockets also cause trouble when tasks take a long time to finish. Load balancers and relays cut idle TCP streams after a set time limit. If a workflow task waits on a slow query, the relay might drop the link. The worker then fails the task, or worse, runs a write command twice on retry.
How to scope worker roles and network paths
You can fix these risks by splitting workers into small, single-purpose groups. Do not run one giant worker pool that handles every task in your company. Instead, group workers by the specific backend service they need to touch. Give each worker group its own narrow role and a unique login key.
Lock down your network paths to match those small worker groups. Set firewall rules so only the payment worker subnet can reach the payment relay port. Keep read tasks and write tasks in separate queues with separate database roles. This simple split stops a bug in a reporting task from changing live user rows.
You should also mask sensitive fields before task payloads enter the workflow state store. Conductor saves task inputs and outputs so you can track job progress. If a task pulls emails, phone numbers, or card numbers, rewrite those fields first. Store only masked strings or safe record IDs in the central workflow log.
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 workflow workers drop links through a TCP relay?
Most TCP relays close idle sockets after a few minutes of silence. You should set TCP keepalive timers on your worker nodes to keep links open.
Should the workflow server sit behind a raw TCP forwarder?
No, the workflow server uses HTTP or gRPC calls that need web routing rules. Use a standard web load balancer with TLS for the central server API.
How do we keep sensitive data out of workflow task logs?
Workers should never pass raw card numbers or national IDs in task output payloads. Write raw results to a locked store and pass only a reference ID back.
Related guides
In this post