Metadata-Version: 2.5
Name: trackme-broker-standalone
Version: 1.0.0
Summary: TrackMe Broker standalone runner: the same broker as the Splunk add-on, without Splunk.
Author: TrackMe Limited
Requires-Python: <3.14,>=3.13
Requires-Dist: cryptography<47,>=46
Requires-Dist: pyyaml<7,>=6
Requires-Dist: requests<3,>=2.32
Description-Content-Type: text/markdown

# TrackMe Broker (standalone)

The standalone form of **TrackMe Broker**: the same broker as the Splunk add-on (`trackme-broker`), without Splunk.
It runs on a Linux x86_64 host or in a container (Docker, Podman, Kubernetes), opens every connection itself to
**TrackMe Platform** (primary target) or **TrackMe for Splunk**, carries their API calls to the internal targets its
administrator declared, and sends the answers back. Nothing listens on the customer side.

- Backend only: no web interface. Configuration is a file and environment variables; operations are a CLI.
- On first start it generates its keys and shows the pairing code and fingerprint that an administrator enters in
  TrackMe Platform (System, Brokers) or in TrackMe for Splunk (Manage TrackMe Brokers).
- Same protocol, same core and same security rules as the add-on: deny by default, HTTPS only, signed calls, sealed
  requests and responses, key rotation and token renewal.

Deliverables (Linux x86_64 only for now, versioned independently from 1.0.0):

- the public image **`trackmelimited/trackme-broker`** on Docker Hub (Docker, Podman, Kubernetes with a Helm chart);
- on the TrackMe downloads site, for customers who cannot pull from Docker Hub: the image as a `docker save` archive,
  and a self-contained Linux x86_64 `.tgz` (bundled Python, systemd unit). No RPM or DEB.

Every release is signed (cosign), with SHA-256 checksums and SBOMs.

Pairing: give the broker the TrackMe URL and a broker token; on start it prints the pairing code and fingerprint on
stdout, which an administrator enters in TrackMe. Keys stay in the broker's state directory, protected by file permissions.

Status: SB-0 through SB-3 are in place. The broker core is vendored from `trackme-broker` 1.1.3 and
owned here (decision of 2026-11-20: this product does not wait on `trackme-broker` pull request #28).
`trackme-broker run` is the process. See [docs/STUDY.md](docs/STUDY.md) and the
[work packages](docs/work-packages/README.md).

## Development

Python 3.13 and [uv](https://docs.astral.sh/uv/). `version.json` is the version.

```
uv sync --frozen
uv run trackme-broker version
uv run ruff check .
uv run ruff format --check .
uv run mypy
uv run pytest
```

`trackme-broker version` prints the product version and the embedded core release:
`1.0.0 (core: 1.1.3)`. A pull request publishes a preview to the downloads site and tags
`trackmelimited/trackme-broker:preview` on Docker Hub. Agent and delivery rules are in
[CLAUDE.md](CLAUDE.md) and [AGENTS.md](AGENTS.md).
