Security
Token authentication
Ingest authentication is an optional bearer token. Set INGEST_TOKEN in
the collector’s environment, or pass --rtps-token (a non-empty flag overrides
the environment variable). The consumer must validate the token to reject
unauthenticated telemetry; with no token configured the collector sends no
authentication header.
Prefer the environment variable: command-line arguments are visible in ps.
Tokens must match RFC 6750 b64token syntax, and they are redacted from
configuration error messages. HTTP(S) targets reject URL userinfo and query
strings so credentials cannot be smuggled into the URL.
Plaintext transports
http://,
grpc:// or a bare host:port travels unencrypted.The collector logs a startup warning when a token is used with one of those targets. Use HTTPS when the token must be encrypted in transit.
Unix sockets
unix:///path.sock targets ignore the bearer token and rely on socket file
permissions. The consumer creates the socket; restrict it (for example mode
0600, or a directory only the intended users can enter) so that only the
collector’s user can connect. No warning is logged for Unix targets.
CORS is not authentication
If your consumer exposes an HTTP ingest endpoint, CORS headers only control what browsers may read cross-origin. They do not authenticate the collector. Always validate the bearer token on the server.
Raw dumps
Raw dumps contain the still-encrypted packets, but the GT7 key is public, so anyone with a dump can decrypt it. Treat dump files as plain telemetry data.
Browser stream
The optional WebSocket listener (--ws-listen) is off by default. When enabled
it is read-only and serves brake and throttle only. Full model:
Browser streaming and
ADR 0003.
- Bind: the host must be an IP literal or
localhost. Loopback is the safe default;:port,0.0.0.0,::and other non-loopback IPs requireGT7_WS_TOKENand either--ws-tls-cert/--ws-tls-keyor the explicit--ws-allow-insecure-lan(which logs a plaintext warning). - Origin:
--ws-originis mandatory and matched exactly (no wildcards). A missing,nullor unlistedOrigingets HTTP 403 before the upgrade. Browsers do not apply same-origin policy to WebSockets, so this check is the protection against hostile websites. - Host: on loopback binds, any
Hostother than a loopback IP literal orlocalhostgets HTTP 421 (DNS rebinding), on every path. - Token:
GT7_WS_TOKEN(environment only, 32..256 characters fromA-Za-z0-9._~-; generate withopenssl rand -hex 32). Browsers send it as a second subprotocol,["gt7.inputs.v1", "gt7.token." + token]. It is never accepted in the URL, never echoed and compared in constant time. It is redacted from configuration and runtime errors, andSec-WebSocket-Protocolis never logged. The token is visible to devtools on the page and to any TLS-terminating proxy; it grants read-only access to input telemetry. - TLS: Go default TLS config (minimum TLS 1.2). Browsers do not trust
self-signed certificates. A proxy that terminates TLS must not log
Sec-WebSocket-Protocol. - Limits: about 8 KiB of headers (
net/httpadds a 4 KiB allowance), 3s header timeout, no request bodies, 4 clients by default (max 64) with slots taken only after Origin, Host and token pass, bounded per-client queues and write deadlines, 1 KiB read limit (any data message closes the connection with 1008), ping every 10s. - No CORS headers, no access log, and
/healthzreveals nothing beyond{"status":"ok"}.
A loopback bind without a token trusts every local process and every allowlisted origin.
Signed releases, SBOM and provenance
Every release artifact (archives, checksums.txt and SBOMs) has a keyless
Sigstore bundle, and archives carry an SPDX SBOM. The release workflow also
publishes SLSA build provenance attestations. See
Install for the cosign verify-blob and
gh attestation verify commands.
CI scans with Trivy, zizmor (GitHub Actions audit) and govulncheck; see Contributing.
Reporting a vulnerability
Please report vulnerabilities privately with GitHub private vulnerability reporting (security advisories): report a vulnerability. Do not open a public issue for security problems.