Agent downloading

Downloading agent binaries from the server

To distribute precompiled agents to targets, serve them from the /binaries/ endpoint via https://[SERVER]/binaries/.

Quick usage

  1. Build an agent binary for the target platform.
  2. Copy it into the configured binaries-path directory.
  3. Configure Basic Auth if the endpoint is reachable by untrusted clients.
  4. Download it from https://SERVER/binaries/.

Verify the response before executing a downloaded binary and publish a checksum through your deployment process.

Configuration

By default (binaries-basic-auth unset), /binaries/ is served with no authentication. To protect it, configure a username/password:

# HTTP Basic Auth credentials required to access the binaries endpoint.
binaries-basic-auth: user:password
# Filesystem path the server serves agent binaries from.
binaries-path: ./binaries
  • --binaries-basic-auth: Basic Auth credentials (user:password) required to reach /binaries/.
  • --binaries-path: filesystem path the binaries are served from. Unset means nothing is served.

Once set, requests without valid Basic Auth credentials for that user/password are rejected with a 401.