feat!: Urutau 2.0.0, ultralight probes and a single analysis hub
Each server runs an ultralight probe (scratch image, ~7 MiB RSS) that tails the logs, ships raw lines to the hub over HTTPS with an on-disk spool, and applies enforce decisions locally. The hub keeps one node per probe (primary node = the 1.x data dir, unchanged), does all analysis and serves the UI. Peer federation is removed. 'urutau import' brings 1.x data dirs in with hash and count verification. UI: probes page, host qualified incidents, IPs never wrap, egress heatmap labels, live and replay globes no longer auto-rotate, replay repeat, live traffic metrics. BREAKING CHANGE: URUTAU_PEERS, URUTAU_PEER_* and /api/v1/peer/* are gone; log path variables move from the hub to the probe. See docs/migration-2.0.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
23a7a5963a
commit
8546d14cef
130 files changed
+9396
-3311
No files matched your search
+10
-32
@@ -1,9 +1,11 @@
|
||||
# Urutau: reads the Traefik access log, sshd auth log and fail2ban log of the
|
||||
# host (read-only), classifies what it sees and serves the dashboard.
|
||||
# Urutau hub: serves the dashboard and the API and receives the lines that the
|
||||
# probes (one per server, see deploy/probe/docker-compose.yml) send over HTTPS.
|
||||
# The hub reads no log file and mounts none.
|
||||
#
|
||||
# cp .env.example .env # set URUTAU_TOKEN (openssl rand -base64 48)
|
||||
# docker compose pull && docker compose up -d # operators: published image
|
||||
# docker compose up -d --build # developers: local build
|
||||
# docker compose exec urutau urutau probes create <name> # token for a new probe
|
||||
name: urutau
|
||||
|
||||
services:
|
||||
@@ -14,18 +16,9 @@ services:
|
||||
# Required: the service refuses to start without it (32+ characters and
|
||||
# 128+ bits of entropy). Alternatively mount a file and set URUTAU_TOKEN_FILE.
|
||||
URUTAU_TOKEN: ${URUTAU_TOKEN:-}
|
||||
URUTAU_AUTH_LOG: /logs/host/auth.log
|
||||
URUTAU_FAIL2BAN_LOG: /logs/host/fail2ban.log
|
||||
URUTAU_NAME: ${URUTAU_NAME:-urutau}
|
||||
# Your own servers: their events are dropped entirely (comma separated CIDRs/IPs).
|
||||
URUTAU_TRUSTED: ${URUTAU_TRUSTED:-}
|
||||
# Federation: other instances this one aggregates, e.g. hostinger=https://urutau.example.org
|
||||
URUTAU_PEERS: ${URUTAU_PEERS:-}
|
||||
# Shared secret for federation (32+ characters, different from URUTAU_TOKEN);
|
||||
# it only opens /api/v1/peer/export. Empty disables the export.
|
||||
URUTAU_PEER_TOKEN: ${URUTAU_PEER_TOKEN:-}
|
||||
# Only these source networks may call the export (empty: any with the token).
|
||||
URUTAU_PEER_ALLOW: ${URUTAU_PEER_ALLOW:-}
|
||||
# Reverse proxies whose X-Forwarded-For is trusted. Only the dedicated
|
||||
# urutau-edge network below, which holds nothing but this service and the
|
||||
# reverse proxy: any other container there could forge client IPs.
|
||||
@@ -38,41 +31,26 @@ services:
|
||||
URUTAU_ADMIN_USERS: ${URUTAU_ADMIN_USERS:-}
|
||||
# Geo database refresh interval (0 disables the download).
|
||||
URUTAU_GEO_UPDATE: ${URUTAU_GEO_UPDATE:-24h}
|
||||
# Port probes logged by the host kit (deploy/host/install.sh); empty disables.
|
||||
URUTAU_PROBE_LOG: ${URUTAU_PROBE_LOG:-/logs/host/probe.log}
|
||||
# Download the official Tor exit/relay lists (on|off).
|
||||
URUTAU_TOR_AUTO: ${URUTAU_TOR_AUTO:-on}
|
||||
# Second firewall: off | observe | on. "on" appends ban decisions to
|
||||
# /logs/enforce/decisions.log, applied by the host fail2ban jail "urutau"
|
||||
# (install the kit with deploy/host/install.sh --enforce and uncomment the
|
||||
# /logs/enforce volume below).
|
||||
# Second firewall: off | observe | on. "on" queues ban decisions for the
|
||||
# probe of each server, which appends them to its decisions.log, applied by
|
||||
# the host fail2ban jail "urutau" (install the kit with
|
||||
# deploy/host/install.sh --probe --enforce on every probe host).
|
||||
URUTAU_ENFORCE: ${URUTAU_ENFORCE:-off}
|
||||
URUTAU_ENFORCE_SHARE: ${URUTAU_ENFORCE_SHARE:-off}
|
||||
URUTAU_ENFORCE_THRESHOLD: ${URUTAU_ENFORCE_THRESHOLD:-5}
|
||||
# Outbound traffic analysis (auto | on | off) from the kit's nftables log.
|
||||
# Outbound traffic analysis (auto | on | off) from the egress log each probe sends.
|
||||
URUTAU_EGRESS: ${URUTAU_EGRESS:-auto}
|
||||
# name=container-prefix:role, comma separated (see docs/configuration.md).
|
||||
URUTAU_EGRESS_WORKLOADS: ${URUTAU_EGRESS_WORKLOADS:-}
|
||||
URUTAU_EGRESS_RESOLVERS: ${URUTAU_EGRESS_RESOLVERS:-}
|
||||
# Match the host time zone: fail2ban.log timestamps are local time.
|
||||
# Match the probes' time zone: fail2ban.log timestamps are local time and the hub parses them.
|
||||
TZ: ${TZ:-UTC}
|
||||
ports:
|
||||
- "${URUTAU_PUBLISH:-127.0.0.1:8790}:8790"
|
||||
volumes:
|
||||
# Only a dedicated Traefik log directory, never the whole proxy directory
|
||||
# (it holds acme.json and the dynamic configuration). Point Traefik's
|
||||
# accesslog.filepath at /traefik/logs/access.log, which Coolify keeps in
|
||||
# /data/coolify/proxy/logs on the host.
|
||||
- /data/coolify/proxy/logs:/logs/traefik:ro
|
||||
# A dedicated host directory holding only the sshd and fail2ban logs
|
||||
# (rsyslog copies sshd there; fail2ban's logtarget points there). A
|
||||
# directory, not single files: logrotate recreates them by rename, and a
|
||||
# file bind mount would keep following the old inode. See docs/docker.md.
|
||||
- /var/log/urutau:/logs/host:ro
|
||||
# Second firewall decisions (read-write), only with URUTAU_ENFORCE=observe|on:
|
||||
# - /var/log/urutau-enforce:/logs/enforce
|
||||
- urutau-data:/data
|
||||
group_add: ["4"] # adm: can read the logs in /var/log/urutau
|
||||
networks: [urutau-edge]
|
||||
read_only: true
|
||||
cap_drop: [ALL]
|
||||
|
||||
Reference in new issue
Block a user