Skip to main content
Uplink opens every connection to Agent Golf, and Agent Golf never connects to Uplink. Inbound traffic comes only from your harnesses, your monitoring, and, when the local API is on, the browsers of your users.

Firewall rules

Uplink gets the address of the data connection from the Agent Golf API, so allow outbound TCP to port 7422. If your firewall needs host names, contact support@agent.golf. If you send the logs and traces of Uplink to your own collector, also allow that connection. See Monitoring.

Listeners and default binds

Uplink also binds internal ports for its own engines on 127.0.0.1 only: port 4222 and one random port. They need no firewall rule. If port 4222 is in use on the host, set UPLINK_NATS_PORT to a free port, or to -1 for a random port. The binary starts the gRPC listener only when OTLP_GRPC_PORT is set, and binds it to OTLP_GRPC_HOST, by default 127.0.0.1. It uses the TLS settings of the HTTP listener. OTLP over HTTP with Protobuf stays the recommended protocol. For the settings of each listener, see Configuration.

Secure the OpenTelemetry listener

The OTLP listeners do not authenticate requests. Any host that can reach port 4318, or port 4317 when the gRPC listener is on, can send telemetry to Uplink.
  • Keep ports 4318 and 4317 on a private network, such as your VPC or VPN. Never expose them to the internet.
  • Allow port 4318 only from the subnets of your developer machines, CI runners, and workstations.
  • Turn on TLS for traffic from other hosts. Set OTLP_TLS_CERT_FILE and OTLP_TLS_KEY_FILE to the PEM certificate chain and key, or set otlp.tls.existingSecret in the Helm chart. If your certificate is not publicly trusted, give the harnesses the CA bundle.
  • The binary binds loopback by default, so only harnesses on the Uplink host can reach it. To accept harnesses on other hosts, set OTLP_HTTP_HOST, and OTLP_GRPC_HOST for the gRPC listener, for example to 0.0.0.0. Without TLS, Uplink then logs the warning OTLP listener accepts plain unauthenticated HTTP beyond loopback; restrict network access or set OTLP_TLS_CERT_FILE and OTLP_TLS_KEY_FILE.
  • In Docker, publish the listeners as -p 127.0.0.1:4318:4318 -p 127.0.0.1:4317:4317 to keep them on the loopback of the host.
  • In Kubernetes, set networkPolicy.enabled and networkPolicy.otlpFrom in the Helm chart to admit only your harness sources to ports 4318 and 4317. Your network plugin must enforce NetworkPolicy.
Without TLS, the harness sends its publishing key in plain text. The dashboard warns about such an endpoint, and agentgolf harness setup needs --allow-insecure-endpoint for it.

Secure the admin listener

The admin listener has no authentication. Keep it on loopback and scrape it with an agent on the same host. The container image binds it on all container interfaces, so publish port 4319 only on the loopback of the host, as -p 127.0.0.1:4319:4319, or do not publish it. In the Helm chart, metrics.enabled binds the admin listener on all pod interfaces and adds prometheus.io scrape annotations to the pod. With networkPolicy.enabled, add your scraper to networkPolicy.metricsFrom. An empty list admits no peer to port 4319.