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
+4
-4
@@ -2,10 +2,10 @@
|
||||
|
||||
**English** · [Português](CONTRIBUTING.pt-BR.md)
|
||||
|
||||
Thanks for helping. Urutau is a lightweight threat intelligence panel for self-hosted servers: it reads logs, classifies hostile activity and scores IPs. The most useful contributions right now are tests, log fixtures, new detection rules and documentation.
|
||||
Thanks for helping. Urutau is a lightweight threat intelligence panel for self-hosted servers: it reads logs, classifies hostile activity and scores IPs. It has two roles in one binary, the hub (`urutau serve`) and the probe (`urutau probe`). The most useful contributions right now are tests, log fixtures, new detection rules and documentation.
|
||||
|
||||
1. **Defensive use only.** Urutau reads logs on servers you own or administer. Do not add features that send traffic to the IPs it lists, scan third parties or hide what the tool does.
|
||||
2. **Log content is hostile.** Every field that comes from a log (path, User-Agent, user name, host, jail) was written by an attacker. It must be length-limited when parsed, never executed or interpolated into a command, and escaped on output. A new parser comes with tests for malformed and oversized input.
|
||||
2. **Log content is hostile, and so is what a probe sends.** Every field that comes from a log (path, User-Agent, user name, host, jail) was written by an attacker. It must be length-limited when parsed, never executed or interpolated into a command, and escaped on output. A new parser comes with tests for malformed and oversized input. The probe stays tiny: it must not import the store, geolocation or intelligence packages (its memory target is under 20 MB), and anything the hub asks it to write must pass `wire.ValidCmdLine`.
|
||||
3. **A classification change pins its category.** New or changed detection rules need a test that shows the expected category and, for a weight change, the resulting score.
|
||||
4. **Standard library first.** The binary is static and dependency-free on purpose. Adding a module needs a clear reason, and `go.sum` then enters the image inputs.
|
||||
5. **100% English codebase.** Source code, comments, scripts, workflows and commit messages are in English. The dashboard is bilingual (English and Portuguese in `internal/server/web/i18n.js`).
|
||||
@@ -17,7 +17,7 @@ scripts/install-hooks.sh
|
||||
scripts/check.sh
|
||||
```
|
||||
|
||||
`check.sh` validates `gofmt`, `go vet`, UI translation coverage, shell script syntax, workflow YAML files and `docker compose config` in seconds, skipping with a warning whatever the machine lacks. `scripts/check.sh --full` also runs `go test -race ./...` and `govulncheck`.
|
||||
`check.sh` validates `gofmt`, `go vet`, UI translation coverage, shell script syntax, workflow YAML files and `docker compose config` (hub and probe) in seconds, skipping with a warning whatever the machine lacks. `scripts/check.sh --full` also runs `go test -race ./...` and `govulncheck`.
|
||||
|
||||
## Interface and translation
|
||||
|
||||
@@ -31,7 +31,7 @@ Always maintain document pairs: every `*.md` and `docs/*` file has an English ve
|
||||
|
||||
Commits follow Conventional Commits 1.0.0 in English (`feat:`, `fix:`, `chore:`, `ci:`, `docs:`, `refactor:`, `test:`, `perf:`, `build:`). Versions follow SemVer 2.0.0. Update the CHANGELOG in the same pull request as a user-visible change: add it under `[Unreleased]`, and at release time rename that section to the version and date and add the comparison link at the end of the file.
|
||||
|
||||
Releases are multi-arch container images (`linux/amd64` and `linux/arm64`) published to the Gitea registry. Pushing a `v*` tag triggers the release workflow, which reuses the image already built for the same inputs when there is one, and creates the Gitea release from the CHANGELOG section.
|
||||
Releases are two multi-arch container images, the hub `urutau` and the probe `urutau-probe` (`linux/amd64` and `linux/arm64`, built from the same Dockerfile targets), published to the Gitea registry. Pushing a `v*` tag triggers the release workflow, which reuses the images already built for the same inputs when there are, and creates the Gitea release from the CHANGELOG section.
|
||||
|
||||
## License
|
||||
|
||||
|
||||
Reference in new issue
Block a user