feat!: Urutau 2.0.0, ultralight probes and a single analysis hub
CI / Format and vet (pull_request) Failing after 53s
CI / Dependency audit (pull_request) Successful in 33s
CI / Tests (Linux, race detector) (pull_request) Successful in 2m1s
CI / Docker images (build and smoke test) (pull_request) Failing after 47s

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:
Lucas RayanandClaude Opus 5.5 committed 2026-11-15 22:14:50 -03:00
1 parent 23a7a5963a
commit 8546d14cef
130 files changed
+9396 -3311

No files matched your search

+16 -1
View File
@@ -72,7 +72,22 @@ type LiveEvent struct {
}
// Location is the configured location of this instance (nil when unset).
func (s *Store) Location() *Location { return sanitizeLocation(s.cfg.Location) }
func (s *Store) Location() *Location {
if l := s.locOverride.Load(); l != nil {
return sanitizeLocation(l)
}
return sanitizeLocation(s.cfg.Location)
}
// SetLocation replaces the configured location (the hub sets it per probe).
func (s *Store) SetLocation(l *Location) {
if l == nil {
s.locOverride.Store(nil)
return
}
c := *l
s.locOverride.Store(&c)
}
// GeoOf resolves the geography of an address or IPv6 /64 key (zero without an enricher).
func (s *Store) GeoOf(ip string) core.GeoInfo {
+2
View File
@@ -253,6 +253,8 @@ type Store struct {
cfg Config
now func() time.Time
locOverride atomic.Pointer[Location] // set by SetLocation
mu sync.RWMutex
stamps [slots]int64
counts [slots][core.NumCats]uint32