Skip to content

DOCS

Upload and fleet

Upload is the step that copies a local scan, a Guard activity log, or lockfile drift to the organization. The CLI does not upload during scan.

export BALERX_API_KEY="<key>"
balerx upload --api-url https://balerxgate.com --scan report.json
balerx upload --api-url https://balerxgate.com --activity-log activity.jsonl
balerx upload --api-url https://balerxgate.com --scan report.json --lockfile balerx.lock

PowerShell:

$env:BALERX_API_KEY = "<key>"
balerx upload --api-url https://balerxgate.com --scan report.json

Or read from stdin with --api-key -:

printf '%s' "$BALERX_API_KEY" | balerx upload --api-url https://balerxgate.com --api-key - --scan report.json

PowerShell stdin:

"$env:BALERX_API_KEY" | balerx upload --api-url https://balerxgate.com --api-key - --scan report.json

Set BALERX_API_URL and BALERX_API_KEY to skip the flags. The command stays offline until a URL and key are present.

Plain http:// is refused unless the host is loopback (localhost, 127.0.0.0/8, or ::1) or you pass --allow-insecure. A typo such as http://192.0.2.1 exits 1 in under a second and does not send the key. Connect times out after 10 seconds and reads after 20 seconds, so an unreachable host fails within 30 seconds.

--scan is a JSON file from balerx scan --json. --activity-log is the Guard JSONL file. Tool arguments are dropped before that file is posted. A long activity log is sent in chunks that stay under the 5 MB ingest cap (by event count and serialized bytes). A single event larger than that cap fails with a clear error. Scan upload stays one POST. --lockfile compares the machine with the lockfile and attaches drift to the scan upload.

The CLI posts scans to {api-url}/v1/ingest/scans and activity to {api-url}/v1/ingest/activity. Scan upload needs scan:upload. Activity upload needs activity:write. Those routes share the ingest limiter with OTLP and policy pull: HTTP 429 includes Retry-After as whole seconds (at least 1). Wait that long and retry. A successful upload still returns HTTP 202. HTTP 403 means the key is valid but missing that scope. The JSON body includes scope. balerx upload prints This key is missing the scan:upload permission. Create a key with it in Settings. (or activity:write for activity logs). The API strips credentials from MCP server URLs in a scan again before storing it, so an upload from an older scanner is stored redacted too. The web app proxies /v1, so the API URL can be the same origin you use in the browser.

Create the key under Settings, or in the setup walkthrough. The plaintext is shown once. See Ingest keys.

Fleet

Each uploaded hostname becomes a machine. Later uploads for the same hostname add history. The Fleet page shows the latest risk score, MCP server names, whether Guard hooks were installed, and drift.

Demo fleet inventory with three machines, findings, and Guard hook status
Demo data. Three machines in the Balerx Demo organization.

A hostname that is blank is stored as unknown.

Fleet incidents are FLEET-MCP-NEW, FLEET-HOOKS-REMOVED, FLEET-DRIFT, and FLEET-CRITICAL.

Team and Enterprise buyers can book a demo. We store the request in our database. This form does not send mail.