How to Configure Drone Port Operations

Published
Length
3 min read

Luis Felipe Dias

All posts

Setting up drone port operations controls how your build server talks to runner agents. You secure this setup by binding local ports, adding TLS, and limiting runner roles. Build pipelines run untrusted code and read private keys during every single deploy. A bad network setup exposes your build server to outside threats on the web. Teams must lock down network ports before they run their first build job. How to set up drone port operations Drone uses a main server and separate runner agents

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.

Setting up drone port operations controls how your build server talks to runner agents. You secure this setup by binding local ports, adding TLS, and limiting runner roles.

Build pipelines run untrusted code and read private keys during every single deploy. A bad network setup exposes your build server to outside threats on the web. Teams must lock down network ports before they run their first build job.

How to set up drone port operations

Drone uses a main server and separate runner agents to run your build steps. The server listens on web ports and waits for runners to poll for work. You must set the server host and port values during your initial setup. Most teams bind the main web port to a private network address first.

Runners talk to the main server over HTTP or gRPC network ports. If runners sit on the same host, bind the port to localhost only. If runners sit on remote hosts, turn on TLS encryption for all traffic. Never expose an unencrypted build port to the public web.

Next, you must set up a shared secret key between the server and runners. Only runners with this secret key can join the pool and take build jobs. Keep this secret key safe and rotate it on a regular schedule. You should also map each runner to a narrow role with strict permissions.

Good defaults prevent many common breaches in your build fleet. Block all inbound ports by default in your cloud firewall rules. Open only the exact web and rpc ports that your runners need. Limit which source code repos can trigger jobs on high-privilege runner hosts.

How to check and audit runner sessions

After you set up your ports, you need to check the active setup. Test from a remote host to confirm that closed ports reject outside requests. Check your server logs to confirm that only known runners log in and poll. Review your firewall rules every month to catch any open test ports.

End-to-End Encryption + Red Team Operations: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Static port rules and shared keys only check identity at the start. Once a runner logs in, the network rule cannot see what the job does. A build script with database keys can run any query it wants. Static firewall rules also cannot mask emails or card numbers in query results.

Teams also struggle to audit shared runner keys across large build fleets. When ten runners share one secret key, logs look the same for every machine. You cannot tell which specific build user triggered a bad command on a host. You need deeper checks at the command and query level to stay safe.

Standard port logs only show network packets and basic connection times. They do not record the actual database queries or shell commands inside a job. Security teams must add command auditing to see what happens after a runner connects. You should also strip sensitive output like phone numbers before logs save to disk.

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 sits inline in the wire protocol beside those services as an open-source proxy, a sidecar for your Postgres or API. On every query an AI agent or engineer runs against production, hoop.dev decides to pass, mask, block, or hold it for human review.

Your login details and client tools stay as they are while hoop.dev guardrails refuse bad deletes or drops before they run, and hoop.dev data masking rewrites matched sensitive values in responses 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

Which network ports do Drone servers and runners use?

The server uses standard web ports for user traffic and runner polling. Some setups also use a separate gRPC port for remote runner communication. Always check your setup guide and close any port you do not use.

How do we secure traffic between remote runners and the server?

You should enable TLS encryption on the server or place it behind TLS termination. Pair TLS with a strong shared secret key so unknown hosts cannot poll jobs. Restrict the runner port to known runner IP addresses in your firewall.

Why are firewall rules not enough for build runner security?

Firewall rules only control which machines can reach a network port. They do not inspect the commands or queries that run inside an active job. You still need strict role limits and query logging for every build target.

The query runs. The emails stay hidden.