How to Configure Drone Docking Port
A drone docking port is the network port where build agents meet the central server. You set it up by binding the server to a safe port and locking down ingress rules. In build systems like Drone CI, runners need a clear path to pull jobs and send logs. Setting up the right port keeps your build traffic private and stops outside scans. Teams often pair this setup with TLS certificates and strict firewall rules. When you plan your port rules well, build jobs run fast and stay safe. How a drone
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.
A drone docking port is the network port where build agents meet the central server. You set it up by binding the server to a safe port and locking down ingress rules.
In build systems like Drone CI, runners need a clear path to pull jobs and send logs. Setting up the right port keeps your build traffic private and stops outside scans. Teams often pair this setup with TLS certificates and strict firewall rules. When you plan your port rules well, build jobs run fast and stay safe.
How a drone docking port setup works
In a build setup, the central server listens on one or two network ports. One port serves the web app and takes webhooks from your code host. A second port often handles remote runners that poll for new build work. Teams call this runner endpoint the drone docking port in their network plans.
This setup affects two main groups in your system: human users and machine runners. Engineers log in through the web port to view build logs and manage repo settings. Remote runners use the docking port to check in, pull secrets, and report job status. Both paths need strong network rules and clear identity checks.
Start with safe defaults when you map out these network ports. Never expose the runner port to the open web if your runners live in a private network. Bind the service to an internal IP address and require TLS on every link. Give each runner a unique shared secret or token, and rotate those keys on a set schedule.
You also need to plan how container workloads bind ports on the runner host itself. A build step might spin up a test database or web service during a run. Keep those temporary ports bound to the local loop interface on the runner machine. This stops other builds or outside hosts from talking to a test service mid-run.
Checking and auditing your port setup
After you set up the ports, test the path from both inside and outside your network. Run a port scan from an outside host to confirm the runner port stays closed to the public. Then check from a runner subnet to confirm the agent can reach the server and complete a TLS handshake. Watch the server logs during a test build to verify that runner check-ins pass without auth errors.
End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Static port rules and shared runner keys only solve part of the security problem. Once a runner or an engineer logs in, static network rules cannot see what happens inside the session. A compromised build script or an over-privileged user can still run risky commands against connected systems. Network ports check where traffic comes from, but they do not check the commands inside that traffic.
Shared secrets in build configs also create long-term risks for your team. If a runner key leaks in a build log, an attacker can pretend to be a valid worker. If a database key sits in a repo store, any build step in that pipeline can read it. You need a way to watch live commands, limit key scope, and mask sensitive data like emails or card numbers in build outputs.
Managing runner access and build secrets
Good pipeline security separates network port setup from workload permissions. Keep your server ports locked down with firewall rules and private subnets first. Then focus on how your runners and engineers talk to databases, cloud APIs, and internal servers during a job. By controlling each session at the command level, you reduce the blast radius of any single build.
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
What port does a Drone server use by default?
The server usually listens on standard HTTP and HTTPS ports for web traffic and webhooks. Teams can map these container ports to any host port they choose in their deployment files. If you use separate ports for runner communication, keep them on a private network interface.
How do I secure communication between runners and the server?
Always enable TLS so all traffic over the port stays encrypted in transit. Place the runner port behind a private virtual network or firewall allowlist so only known runner IPs can reach it. Rotate the shared secret between the server and runners on a regular schedule.
Why should I avoid binding build service ports to the host network?
Binding a test container port to the host network exposes that temporary service to other machines on the subnet. Keep test services inside the isolated build network created for that single pipeline run. This prevents port conflicts between parallel builds and blocks unauthorized network traffic.
Related guides
In this post