Deployment example
Watcher runs as Docker containers in your environment. These diagrams show two authentication paths. Both paths lead into the same stack.
For a cluster deployment, see the Kubernetes infrastructure example. For Tailscale Aperture and LiteLLM connections, see the gateway deployment reference.
WorkOS authentication
Your reverse proxy terminates TLS and routes traffic. WorkOS handles sign-in.
Bring your own authentication
Your reverse proxy authenticates each request. It removes untrusted identity headers. It adds the trusted user and role headers Watcher consumes. Watcher does not connect to WorkOS on this path.
The stack contains these components:
- Analyzer
- API
- Database
- Bootstrap container
- Retention cleanup worker
- Grading scheduler (when trailing review is enabled)
The retention worker runs continuously. For each organization with a session-content retention period, it scrubs sessions inactive for longer than the period and deletes unlinked grades older than it. It also deletes client heartbeats more than eight days old, keeping each machine's ten newest reports from before that point. It does not touch the rest of the agent inventory data, which is not deleted yet.
No period is set by default, so session content and unlinked grades are kept indefinitely. Unlinked grades hold the messages sent to the grader and can grow by several gigabytes a week in a busy organization, and the reference RDS instance does not grow its storage automatically, so set a period or watch database storage.
Organization administrators can enable a period between 7 and 365 days. They configure this through the Analyzer's Data Retention controls or the organization settings API.
Both workers run the API image with separate entrypoints.
See Setup for installation. See Security for data flows. See Supply chain security for artifact controls.