fix(fed): sanitize peer rows, cap peer bytes, add --peer-blocklist
CI / Docker image (build and smoke test) (push) Skipped
CI / Format and vet (push) Successful in 24s
CI / Tests (Linux, race detector) (push) Successful in 34s
CI / Dependency audit (push) Successful in 14s
Release / Plan (reuse the published image?) (push) Successful in 3s
Release / ci (push) Skipped
Release / Build image (amd64) (push) Skipped
Release / Build image (arm64) (push) Skipped
Release / Publish tags (push) Successful in 13s
Release / Gitea release (push) Successful in 4s

Peer events and summary rows are rebuilt from validated fields (address,
country code, category) and the forged/unban flags from peers are
ignored. The live relay drops a peer that exceeds about 1 MB/s, also
within a single window. --peer-blocklist=off keeps the hub's blocklist
to local observations. UI polish: plural forms, blocklist preview and
downloads follow the active slice, compact IP cards on phones. Docs for
the 1.1.0 interface.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Lucas RayanandClaude Opus 5.5 committed 2026-11-14 18:10:54 -03:00
1 parent f4b295f582
commit 783b0cba3e
31 files changed
+355 -127

No files matched your search

+46 -32
View File
@@ -42,7 +42,8 @@ window.URUTAU_I18N = {
'slice.host': 'host {name}',
'slice.allDomains': 'all domains',
'slice.domain': 'domain {name}',
'slice.ips': '{n} IPs',
'slice.ips.one': '{n} IP',
'slice.ips.other': '{n} IPs',
'kpi.requests': 'Requests',
'kpi.malicious': 'Malicious events',
'kpi.hostile': 'Hostile IPs',
@@ -50,7 +51,7 @@ window.URUTAU_I18N = {
'kpi.bans': 'Active bans',
'kpi.ips': 'Distinct IPs',
'kpi.monitoring': '{n} monitoring requests filtered out.',
'kpi.sub.hosts': '{n} of {m} hosts online',
'kpi.sub.hosts': 'hosts online: {n} of {m}',
'kpi.sub.malicious': 'HTTP and SSH events',
'kpi.sub.share': '{p} of {n} distinct IPs',
'kpi.sub.bans': 'reported by fail2ban',
@@ -59,7 +60,7 @@ window.URUTAU_I18N = {
'ov.lead.hostile.one': '1 hostile IP in the selected slice',
'ov.lead.calm': 'No hostile IPs in the selected slice',
'ov.lead.empty': 'No events recorded in the selected slice',
'ov.lead.body': '{m} malicious events against {r} requests, from {ips} distinct IPs; {b} active bans.',
'ov.lead.body': 'Malicious events: {m}; requests: {r}; distinct IPs: {ips}; active bans: {b}.',
'ov.lead.bodyEmpty': 'Widen the time range or choose another host. Sources report their state under Sources and hosts.',
'ov.countries': 'Top countries',
'ov.countries.hint': 'Origin of the events in the slice, by number of events.',
@@ -71,19 +72,22 @@ window.URUTAU_I18N = {
'th.lead.top': 'Most activity is classified as "{cat}"',
'th.lead.none': 'No attack activity in the selected slice',
'th.lead.noneBody': 'No scanner, exploit, brute force or SSH events were classified in this slice.',
'th.lead.body': '{n} of {m} classified events ({p}).',
'th.lead.body.one': '{n} of {m} classified event ({p}).',
'th.lead.body.other': '{n} of {m} classified events ({p}).',
'th.lead.domain': 'Most targeted domain: {name}.',
'th.lead.origin': 'Main origin: {name}.',
'tr.lead.some': '{n} visitors viewed {p} pages',
'tr.lead.some': 'Visitors: {n} · page views: {p}',
'tr.lead.none': 'No traffic recorded in the selected slice',
'tr.lead.noneBody': 'Analytics count only successful responses to non-bot clients on the configured domains.',
'tr.lead.body': '{r} requests, {b} from search and AI bots; latency p50 {a} ms and p95 {c} ms.',
'ips.lead': '{n} distinct IPs, {h} hostile and {s} suspicious',
'ips.lead.body': '{b} IPs are banned. Select a row for the full history of an IP.',
'src.lead.all': 'All {n} sources are following',
'src.lead.some': '{a} of {n} sources following; {x} need attention',
'tr.lead.body': 'Requests: {r}, of which {b} from search and AI bots; latency p50 {a} ms and p95 {c} ms.',
'ips.lead.one': '{n} distinct IP: {h} hostile, {s} suspicious',
'ips.lead.other': '{n} distinct IPs: {h} hostile, {s} suspicious',
'ips.lead.body': 'Banned IPs: {b}. Select a row for the full history of an IP.',
'src.lead.all.one': 'The only source is being followed',
'src.lead.all.other': 'All {n} sources are being followed',
'src.lead.some': 'Sources following: {a} of {n}; needing attention: {x}',
'src.lead.none': 'No log sources reported',
'src.lead.body': '{h} of {m} hosts online; {l} lines read, {f} malformed.',
'src.lead.body': 'Hosts online: {h} of {m}; lines read: {l}; malformed: {f}.',
'feed.forged': 'forged monitor user agent',
'timeline.title': 'Activity by category',
'timeline.hint': 'Events per time bucket, stacked by category. Select a legend item to hide it.',
@@ -116,7 +120,8 @@ window.URUTAU_I18N = {
'col.lastEvent': 'Last event',
'pager.prev': 'Previous',
'pager.next': 'Next',
'pager.count': '{n} IPs',
'pager.count.one': '{n} IP',
'pager.count.other': '{n} IPs',
'pager.page': 'Page {n} of {m}',
'feed.title': 'Live feed',
'feed.empty': 'Waiting for events.',
@@ -135,9 +140,11 @@ window.URUTAU_I18N = {
'blocklist.copy': 'Copy list',
'blocklist.download': 'Download .txt',
'blocklist.downloadJson': 'Download .json',
'blocklist.copied': '{n} IPs copied.',
'blocklist.copied.one': '{n} IP copied.',
'blocklist.copied.other': '{n} IPs copied.',
'blocklist.failed': 'Could not copy the list.',
'blocklist.count': '{n} IPs would be listed (last 7 days).',
'blocklist.count.one': '{n} IP would be listed (selected range).',
'blocklist.count.other': '{n} IPs would be listed (selected range).',
'hosts.title': 'Hosts and peers',
'hosts.hint': 'This instance and the peers it federates with.',
'host.online': 'online',
@@ -154,8 +161,8 @@ window.URUTAU_I18N = {
'sources.empty': 'No log source configured on the reporting hosts.',
'src.geo.title': 'Geolocation',
'src.geo.hint': 'Country, city and network of each IP come from a local database; nothing is queried online.',
'src.geo.known': '{n} of {m} listed IPs have a known origin',
'src.geo.countries': '{n} countries in the slice',
'src.geo.known': 'Listed IPs with a known origin: {n} of {m}',
'src.geo.countries': 'Countries in the slice: {n}',
'src.geo.attrib': 'Data attribution',
'src.geo.none': 'No attribution reported by the geo database.',
'state.following': 'following',
@@ -271,7 +278,8 @@ window.URUTAU_I18N = {
'slice.host': 'host {name}',
'slice.allDomains': 'todos os domínios',
'slice.domain': 'domínio {name}',
'slice.ips': '{n} IPs',
'slice.ips.one': '{n} IP',
'slice.ips.other': '{n} IPs',
'kpi.requests': 'Requisições',
'kpi.malicious': 'Eventos maliciosos',
'kpi.hostile': 'IPs hostis',
@@ -279,7 +287,7 @@ window.URUTAU_I18N = {
'kpi.bans': 'Bans ativos',
'kpi.ips': 'IPs distintos',
'kpi.monitoring': '{n} requisições de monitoramento filtradas.',
'kpi.sub.hosts': '{n} de {m} hosts online',
'kpi.sub.hosts': 'hosts online: {n} de {m}',
'kpi.sub.malicious': 'eventos HTTP e SSH',
'kpi.sub.share': '{p} dos {n} IPs distintos',
'kpi.sub.bans': 'informados pelo fail2ban',
@@ -288,7 +296,7 @@ window.URUTAU_I18N = {
'ov.lead.hostile.one': '1 IP hostil no recorte selecionado',
'ov.lead.calm': 'Nenhum IP hostil no recorte selecionado',
'ov.lead.empty': 'Nenhum evento registrado no recorte selecionado',
'ov.lead.body': '{m} eventos maliciosos frente a {r} requisições, de {ips} IPs distintos; {b} bans ativos.',
'ov.lead.body': 'Eventos maliciosos: {m}; requisições: {r}; IPs distintos: {ips}; bans ativos: {b}.',
'ov.lead.bodyEmpty': 'Recomenda-se ampliar o período ou escolher outro host. O estado das fontes está em Fontes e hosts.',
'ov.countries': 'Principais países',
'ov.countries.hint': 'Origem dos eventos do recorte, por número de eventos.',
@@ -300,19 +308,22 @@ window.URUTAU_I18N = {
'th.lead.top': 'A maior parte da atividade é classificada como "{cat}"',
'th.lead.none': 'Nenhuma atividade de ataque no recorte selecionado',
'th.lead.noneBody': 'Nenhum evento de scanner, exploit, força bruta ou SSH foi classificado neste recorte.',
'th.lead.body': '{n} de {m} eventos classificados ({p}).',
'th.lead.body.one': '{n} de {m} evento classificado ({p}).',
'th.lead.body.other': '{n} de {m} eventos classificados ({p}).',
'th.lead.domain': 'Domínio mais visado: {name}.',
'th.lead.origin': 'Origem principal: {name}.',
'tr.lead.some': '{n} visitantes em {p} páginas vistas',
'tr.lead.some': 'Visitantes: {n} · páginas vistas: {p}',
'tr.lead.none': 'Nenhum tráfego registrado no recorte selecionado',
'tr.lead.noneBody': 'A análise de tráfego conta apenas respostas bem-sucedidas a clientes que não são bots, nos domínios configurados.',
'tr.lead.body': '{r} requisições, {b} de bots de busca e de IA; latência p50 de {a} ms e p95 de {c} ms.',
'ips.lead': '{n} IPs distintos, {h} hostis e {s} suspeitos',
'ips.lead.body': '{b} IPs estão banidos. Selecione uma linha para ver o histórico completo do IP.',
'src.lead.all': 'As {n} fontes estão sendo acompanhadas',
'src.lead.some': '{a} de {n} fontes acompanhadas; {x} exigem atenção',
'tr.lead.body': 'Requisições: {r}, das quais {b} de bots de busca e de IA; latência p50 de {a} ms e p95 de {c} ms.',
'ips.lead.one': '{n} IP distinto: {h} hostis, {s} suspeitos',
'ips.lead.other': '{n} IPs distintos: {h} hostis, {s} suspeitos',
'ips.lead.body': 'IPs banidos: {b}. Selecione uma linha para ver o histórico completo do IP.',
'src.lead.all.one': 'A única fonte está sendo acompanhada',
'src.lead.all.other': 'As {n} fontes estão sendo acompanhadas',
'src.lead.some': 'Fontes acompanhadas: {a} de {n}; exigem atenção: {x}',
'src.lead.none': 'Nenhuma fonte de log informada',
'src.lead.body': '{h} de {m} hosts online; {l} linhas lidas, {f} malformadas.',
'src.lead.body': 'Hosts online: {h} de {m}; linhas lidas: {l}; malformadas: {f}.',
'feed.forged': 'user-agent de monitor forjado',
'timeline.title': 'Atividade por categoria',
'timeline.hint': 'Eventos por intervalo de tempo, empilhados por categoria. Selecione um item da legenda para ocultá-lo.',
@@ -345,7 +356,8 @@ window.URUTAU_I18N = {
'col.lastEvent': 'Último evento',
'pager.prev': 'Anterior',
'pager.next': 'Próxima',
'pager.count': '{n} IPs',
'pager.count.one': '{n} IP',
'pager.count.other': '{n} IPs',
'pager.page': 'Página {n} de {m}',
'feed.title': 'Feed ao vivo',
'feed.empty': 'Aguardando eventos.',
@@ -364,9 +376,11 @@ window.URUTAU_I18N = {
'blocklist.copy': 'Copiar lista',
'blocklist.download': 'Baixar .txt',
'blocklist.downloadJson': 'Baixar .json',
'blocklist.copied': '{n} IPs copiados.',
'blocklist.copied.one': '{n} IP copiado.',
'blocklist.copied.other': '{n} IPs copiados.',
'blocklist.failed': 'Não foi possível copiar a lista.',
'blocklist.count': '{n} IPs seriam listados (últimos 7 dias).',
'blocklist.count.one': '{n} IP seria listado (período selecionado).',
'blocklist.count.other': '{n} IPs seriam listados (período selecionado).',
'hosts.title': 'Hosts e pares',
'hosts.hint': 'Esta instância e os pares com os quais ela se federa.',
'host.online': 'online',
@@ -383,8 +397,8 @@ window.URUTAU_I18N = {
'sources.empty': 'Nenhuma fonte de log configurada nos hosts informantes.',
'src.geo.title': 'Geolocalização',
'src.geo.hint': 'País, cidade e rede de cada IP vêm de uma base local; nenhuma consulta é feita online.',
'src.geo.known': '{n} de {m} IPs listados têm origem conhecida',
'src.geo.countries': '{n} países no recorte',
'src.geo.known': 'IPs listados com origem conhecida: {n} de {m}',
'src.geo.countries': 'Países no recorte: {n}',
'src.geo.attrib': 'Atribuição dos dados',
'src.geo.none': 'Nenhuma atribuição informada pela base de geolocalização.',
'state.following': 'acompanhando',