Standalone broker configuration and operations¶
Use this reference with Choose a standalone broker installation. The Linux service and container run the same CLI and read the same configuration. Paths below are relative to /opt/trackme-broker unless shown as absolute.
Connection settings¶
connections is a list with at least one entry. Each connection runs a worker with its own upstream, bootstrap token, identity and pairing. Configure a second entry when the same host must serve another TrackMe installation. Each upstream administrator accepts that connection’s own pairing code.
Key in each connection |
Meaning and default |
|---|---|
|
Required, unique within the file. Instance, connection and local target names start with a letter or digit, allow letters, digits, dots, underscores and hyphens, and are at most 128 characters. The connection name selects its persistent state directory. |
|
Required. Use |
|
Supply the bootstrap credential. A relative file path resolves beside the YAML. A nonempty file setting takes precedence over an inline token. Prefer a protected file. After renewal, the worker uses its saved token under the state directory. Keep the configured bootstrap file readable for configuration checks and startup. |
|
Defaults to true for a new connection. An existing identity from before the default changed keeps local management if the option is omitted. Set the option explicitly when migrating. TrackMe for Splunk 2.4.26 supports delegated policy. Use local targets with earlier stacks that do not send a policy. |
|
Verify the upstream certificate by default. For a private CA, set an absolute path to a readable PEM trust bundle. In a container the path must exist inside the container. This setting covers the upstream channel only. |
|
Optional HTTP or HTTPS egress proxy for this upstream. The worker calls destinations directly. Configure the proxy here even if the host sets |
|
Automatic renewal defaults to true, every 7 days. The interval accepts 1–365 days. The upstream must accept the current token to renew it. |
|
Maximum concurrent requests on this connection. Default 4, range 1–64. |
|
Maximum response size for one request. Default 256 MiB, range 1–1024. The stack can impose a lower limit. Use matching limits across a pool. |
Destination policy and TLS¶
For a managed connection, the worker applies the signed policy from its paired upstream. In Manage TrackMe Brokers, select the group’s Manage targets, add the HTTPS destinations and check Applied for each member. An empty list denies every call. Save the list before switching an existing local connection to managed mode. A policy change takes effect on a subsequent pull. Work already admitted can finish.
For a locally managed connection, set managed_destinations: false on the connection and add a top-level targets list. All locally managed connections in this configuration share that list. This example permits a Splunk management endpoint and a webhook path.
targets:
- name: collector
url_prefix: https://collector.example.com:8089
verify_ssl: true
ca_file: /opt/trackme-broker/etc/internal-ca.pem
- name: receiver
url_prefix: https://notify.example.com/in/trackme
verify_ssl: true
Each entry requires a unique name and an HTTPS url_prefix. The rule matches the host and port plus the named path or its descendants. A leading *. host wildcard is supported. Use an origin for a Splunk management or Cribl API, and a narrower path where practical for webhooks. Use names reachable from every member. In Docker, localhost refers to the container.
Target verify_ssl defaults to true. Disabling it leaves HTTPS encryption in place but removes authentication of the destination. A private CA on a local target belongs in that target’s ca_file. Managed policy distributes URLs and verification choices. Use local mode when a target needs its own CA file. The standalone client uses its bundled certifi roots by default and ignores host REQUESTS_CA_BUNDLE and SSL_CERT_FILE. A proxy that inspects upstream TLS needs its issuing CA in the connection trust bundle.
Process settings, files and permissions¶
Top-level YAML key |
Meaning and default |
|---|---|
|
Stable name of this installation. Defaults to the hostname. Set it explicitly when containers may be replaced. |
|
Default |
|
Optional rotating log inside the log directory (25 MiB, five backups). The default writes to stdout. An empty |
|
Default |
|
Default |
The installation root and program files are administrator-owned. Keep etc/ owned by root and the broker group with mode 0750, and etc/broker.yaml with mode 0640. Choose one of these ownership and mode combinations for the bootstrap token.
Broker-owned regular file with mode 0400 or 0600.
Root-owned regular file with the broker’s primary group and mode 0440 or 0640. Reserve that group for the broker.
These checks also apply to mounted secrets. A read-only mount presenting mode 0444 fails validation. Check the owner and mode as seen by UID/GID 10001 inside the container. The service user owns the state tree, with mode 0700 on directories and 0600 on files. Each connection’s private keys live under connections/<name>/identity.json in that tree. Protect the whole tree and its backups as credentials, including saved tokens, pairing status and migration backups.
Environment overrides¶
All variable names below start with TRACKME_BROKER_. For example, TOKEN_FILE means TRACKME_BROKER_TOKEN_FILE. Nonempty environment settings override YAML.
Variable suffix |
Effect |
|---|---|
|
Select the installation root or YAML file. By default the launcher resolves its installation root and loads |
|
Set the instance name or select the connection to override. Set |
|
Set the upstream type, base URL and bootstrap credential. |
|
Override the corresponding connection booleans. Use |
|
|
|
Override the three writable directories. |
|
Override the matching log settings. |
Use YAML for the renewal interval, concurrency and response limits, and local target list. After editing, validate the effective configuration as the service user. Apply configuration changes with sudo systemctl restart trackme-broker or docker compose restart broker. If you changed the Compose environment or mounts, use docker compose up -d --force-recreate. Reuse the original state mount.
Operate the standalone broker¶
Run the commands below via sudo -u trackme-broker /opt/trackme-broker/bin/trackme-broker for systemd, or docker compose exec broker trackme-broker for Compose. Use --connection NAME on pairing, target listing and connection-specific operations when there are several connections.
Command |
When to use it |
|---|---|
|
Show standalone and embedded core versions, locate the effective directories, or validate the configuration and token permissions. |
|
Initialize keys offline or run the workers in the foreground. A pairing code appears only after registration. Let the service manager own the running process. |
|
Show the current pairing banner. |
|
Show the last reported state. |
|
List the last reported managed policy for the selected connection or the configured local rules. Test opens a TCP/TLS connection without sending an HTTP request. It uses a matching local rule’s TLS settings, otherwise normal verified TLS. Use the account test in TrackMe to verify managed-policy routing and destination credentials. |
|
Ask the running worker to rotate its keys or renew the current token on its next processing cycle. |
|
Remove that connection’s local pairing and state. Stop the worker first. |
A new instance has no pairing code. Run config check as the service account. A token permission error names the offending file. If validation passes, check the journal or container logs for the registration result. An upstream HTTP 401 points to the bootstrap account or token. A TLS error points to the management URL, trust bundle or an inspecting proxy. An expired code is replaced automatically while the worker is running. Read the latest one with pair.
Online but requests fail. Check the account’s Connectivity, the target URL including port, each member’s applied policy, and the destination certificate. Online describes the upstream channel. Use Activity and the expanded broker’s recent failures to distinguish a refused target, TLS failure, timeout or rejected destination credentials. See Failure codes. Read stdout through the journal or container logs.
For Docker and Linux upgrades, rollback and post-upgrade checks, see Upgrade the standalone TrackMe Broker.
For a permanent tarball removal, install.sh --uninstall preserves configuration and persistent data. Adding --purge also deletes them.