Deployment Overview¶
WitFoo Analytics is a containerized security analytics platform deployed via Docker Compose or the WFA (WitFoo Appliance) CLI. This section covers all deployment methods, service configuration, monitoring, TLS, and the Conductor signal pipeline.
Supported Environments¶
| OS | Version | Architecture | WFA package |
|---|---|---|---|
| Ubuntu | 24.04 LTS | amd64 | .deb |
| Red Hat Enterprise Linux | 9 | amd64 | .rpm |
| Red Hat Enterprise Linux | 10 | amd64 | .rpm |
Hardware Requirements
Minimum hardware depends on the deployment role. See the WFA Deployment page for per-role specifications. An Analytics AIO + Conductor node needs at least 6 CPUs, 28 GB RAM and 200 GB of disk; an Analytics AIO node needs at least 4 CPUs, 20 GB RAM and 200 GB of disk.
Upgrading to 1.2.0¶
Release 1.2.0 has steps to take before you upgrade:
- Docker Compose and standalone stacks must set
AUTH_CONFIG_ENCRYPTION_KEY, the key that seals stored secrets. No default ships, and everydocker composecommand refuses to run until it is set. - WFA-managed appliances update the Analytics images to 1.2.0 first, then install WFA 2.5.4 (or 2.5.3, which shipped with 1.2.0) soon after. On an appliance WFA owns the encryption key, so do not edit it by hand.
- Separate Conductor nodes are upgraded with Analytics or before it.
See Upgrading to 1.2.0 for every step and the known limitations.
Deployment Methods¶
Docker Compose¶
The standard deployment method for development and production environments. Several compose files support different deployment topologies.
# All-in-One (most common for single-node deployments)
docker compose -f docker/docker-compose.aio.yml up -d --build
See Docker Compose Reference for full details on all compose files and service definitions.
WFA CLI¶
The WFA (WitFoo Appliance) CLI automates installation, configuration, and upgrades for appliance-based deployments.
wfa configure asks for the role and writes the node's configuration; wfa analytics install checks the host against the role's minimum hardware. See WFA Deployment for the interactive configuration wizard and all CLI commands.
Deployment Roles¶
WitFoo Analytics supports four deployment roles that scale from a single node to a distributed cluster.
| Role | Description | Services | Use Case |
|---|---|---|---|
| AIO | All-in-One | 11 Analytics services | Single-node deployments |
| AIO + Conductor | All-in-One with signal pipeline | 11 Analytics services plus the Conductor services | Single-node with log collection |
| Data Node | Cassandra storage node | Cassandra only | Distributed storage cluster |
| Processing Node | Application services | 10 services (no local Cassandra) | Connects to external data nodes |
Single-Node Architecture¶
The AIO role runs all services on a single machine. This is the simplest deployment and suitable for most organizations.
Browser --> Reverse Proxy (443/8081) --> API (8080) --> Incident Engine (8082)
--> UI (3000)
--> Dispatcher (8003): /mcp, /ws/chat and the other WebSockets
Distributed Architecture¶
For larger deployments, separate data nodes (Cassandra) from processing nodes (application services).
Processing Node Data Node(s)
+-------------------+ +-------------------+
| API, UI, Engine | -------> | Cassandra (9042) |
| Proxy, Dispatcher | +-------------------+
| NATS, Ingestion | +-------------------+
| Graph Processor | -------> | Cassandra (9042) |
| Prometheus, Grafana| +-------------------+
+-------------------+
One Processing node per Data cluster
One Analytics Processing node per organization and Data cluster is supported in 1.2.0.
Service Overview¶
WitFoo Analytics consists of the following core services:
| Service | Port | Description |
|---|---|---|
| reverse-proxy | 443, 8081 | HTTPS/HTTP entry point, routes to all backend services |
| api | 8080 | REST API, authentication, user management |
| incident-engine | 8082 | Incident analysis, work units, reporting |
| dispatcher | 8003 | WebSockets, the MCP endpoint and background job orchestration |
| artifact-ingestion | 8090, 8443 | Receives security artifacts over HTTP (8090) and HTTPS (8443) |
| graph-processor | -- | Background processor for graph node/edge creation |
| ui | 3000 | Svelte 5 web application |
| cassandra | 9042 | Primary data store (Cassandra 5.0) |
| nats | 4222 | Internal message broker |
| prometheus | 9090 | Metrics collection and storage |
| grafana | 3001 | Metrics dashboards and visualization |
On a WFA appliance running WFA 2.5.1 or later, the api (8080) and incident-engine (8082) ports are not published on the host, and NATS is published on 127.0.0.1 only. See Architecture for the published ports of each deployment.
Quick Start¶
-
Clone the repository and ensure Docker is installed.
-
Set
AUTH_CONFIG_ENCRYPTION_KEYin the root.envfile to a random 32-byte value, base64-encoded:The key is part of your data: back it up with the database and store the two apart. The provided launch scripts generate a key when none is set.
-
Start all services with the AIO compose file:
-
Wait for all health checks to pass (approximately 2-3 minutes):
-
Access the web UI at
https://localhostorhttp://localhost:8081.
Default Credentials
The default administrator account is [email protected] / F00theN0ise!. Change this password immediately after first login.
Production Readiness Checklist¶
Before deploying WitFoo Analytics to production, verify the following:
Load Balancer Configuration¶
- HSTS headers enabled on the load balancer or reverse proxy (
Strict-Transport-Security: max-age=31536000; includeSubDomains) - SSL termination configured with valid TLS certificates
- Health check endpoint configured (e.g.,
/api/v1/status)
Trusted Proxies¶
- Declare each load balancer in front of the reverse proxy:
WF_TRUSTED_PROXIESon Docker Compose (comma-separated addresses or CIDRs), ortrusted_proxiesinnode.jsonon a WFA appliance (WFA 2.5.1 or later) - Make sure the load balancer sends
X-Forwarded-ForandX-Forwarded-Proto. The reverse proxy does not readX-Real-IP - On a WFA appliance, add
trusted_proxiesagain after everywfa configureorwfa fetchre-run: a re-run writesnode.jsonwithout it
See TLS Configuration for what the reverse proxy trusts when the list is unset.
Security Headers¶
The reverse-proxy automatically applies 7 OWASP security headers to all responses:
| Header | Value |
|---|---|
X-Content-Type-Options | nosniff |
X-Frame-Options | DENY |
X-XSS-Protection | 0 |
Referrer-Policy | strict-origin-when-cross-origin |
Content-Security-Policy | Restrictive default policy |
Permissions-Policy | Restrictive feature policy |
Strict-Transport-Security | max-age=31536000; includeSubDomains |
Database Credentials¶
- Cassandra credentials are auto-generated per node during WFA installation -- do not use default credentials in production
- Verify Cassandra is not exposed on public network interfaces
Network Hardening¶
- On Docker Compose,
INTERNAL_LISTEN_IP(default127.0.0.1) publishes NATS, the api, incident-engine, the dispatcher, the UI, Prometheus and Grafana.LISTEN_IPstill publishes Cassandra (9042, 9160), the artifact receiver (8090, 8443) and the edge (443, 8081), so restrict Cassandra's ports at the host firewall - Only expose the reverse-proxy port (443) to users, and the artifact receiver (8443) to your Conductors
- Configure firewall rules to limit inter-node communication to required ports
Environment Variables
See the Environment Variables reference for all security-related configuration options including WF_TRUSTED_PROXIES, AUTH_CONFIG_ENCRYPTION_KEY, and WF_JWT_SECRET.
Next Steps¶
- Docker Compose Reference -- Compose file details, service definitions, and ports
- Configuration -- Environment variables for all services
- WFA Deployment -- Automated appliance deployment via CLI
- Monitoring -- Prometheus metrics, Grafana dashboards, and alerting
- TLS Configuration -- HTTPS setup and certificate management
- Conductor Pipeline -- Log collection and signal processing
- Upgrading to 1.2.0 -- Steps before and after the upgrade