feat: 1.1.0 interface, geography drill-down and live attack map
Release / Plan (reuse the published image?) (push) Successful in 4s
CI / Docker image (build and smoke test) (push) Skipped
CI / Format and vet (push) Successful in 19s
CI / Tests (Linux, race detector) (push) Successful in 35s
CI / Dependency audit (push) Successful in 16s
Release / ci (push) Successful in 35s
Release / Build image (arm64) (push) Successful in 51s
Release / Build image (amd64) (push) Successful in 1m11s
Release / Publish tags (push) Successful in 13s
Release / Gitea release (push) Skipped

A new console interface (side rail, seven pages, opening sentence and
active slice on every page, IP drawer, light and dark design tokens);
a Geography page that drills from the world to a country's regions and
cities; a Live page drawing attacks as arcs on a flat map or a globe.

Backend: GET /api/v1/geo, GET /api/v1/live/recent, host/src/dst on live
events, --location, a strict static file pattern, and live federation
through GET /api/v1/peer/stream (peer token only, bounded and sanitized
relay on the hub).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Lucas RayanandClaude Opus 5.5 committed 2026-11-14 17:47:28 -03:00
1 parent ff143ec4a2
commit f4b295f582
37 files changed
+5312 -1000

No files matched your search

+5 -1
View File
@@ -107,6 +107,9 @@ type HostInfo struct {
HostileIPs int `json:"hostile_ips"`
ActiveBans int `json:"active_bans"`
LatencyMS int64 `json:"latency_ms,omitempty"`
// Live: this instance is streaming events (always true for the local one).
Live bool `json:"live"`
Location *Location `json:"location,omitempty"`
}
// Summary is the mergeable dashboard payload.
@@ -404,7 +407,8 @@ func (s *Store) buildSummary(rg Range) Summary {
return Summary{
Version: s.cfg.Version, Host: s.cfg.Name, Range: rg.Name, Generated: nowU,
Hosts: []HostInfo{{Name: s.cfg.Name, Self: true, Online: true, Version: s.cfg.Version, LastSeen: nowU,
Requests: tot.Requests, Malicious: tot.Malicious, HostileIPs: tot.HostileIPs, ActiveBans: tot.ActiveBans}},
Requests: tot.Requests, Malicious: tot.Malicious, HostileIPs: tot.HostileIPs, ActiveBans: tot.ActiveBans,
Live: true, Location: s.Location()}},
Totals: tot, Timeline: tl, IPs: ips,
TopPaths: topN(paths, topKeep), TopDomains: topN(doms, topKeep), TopUAs: topUAs, TopUsers: topN(users, topKeep), Countries: topN(ctry, 120),
Recent: recent, Sources: srcs, Attribution: s.attrib,