diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b4975e..38d686f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,18 @@ Format based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versio ## [Unreleased] +## [2.2.0] - 2026-11-16 + +### Added + +- IP analysis: an address that never attacked but is an egress destination (for example the IP of an egress incident) now opens a "Destination" view: which hosts and workloads connected to it, ports, connections, ASN/country, findings and linked incidents. New endpoint `GET /api/v1/ip/{ip}/egress`. When nothing exists the page says definitively that the IP was never seen; if it was seen inbound outside the period it shows the last date and a 30-day button. +- Global host filter: several probes can be selected at once (`host=oracle,hostinger` in the URL and the API); selecting all of them, or "All hosts", means every probe. + +### Fixed + +- Traffic: the hub dropped Traefik lines after every copytruncate rotation of `access.log` (it compared only inode and offset and ignored the head fingerprint the probe sends), so legitimate traffic on the Oracle host vanished for hours after each rotation. Regression test `TestSameHeadCopytruncate`. +- Global host filter: going back to "All hosts" did nothing, because the URL without `host=` kept the previous host. + ## [2.1.2] - 2026-11-16 ### Fixed diff --git a/CHANGELOG.pt-BR.md b/CHANGELOG.pt-BR.md index b815dae..cfe1af1 100644 --- a/CHANGELOG.pt-BR.md +++ b/CHANGELOG.pt-BR.md @@ -6,6 +6,18 @@ Formato baseado no [Keep a Changelog](https://keepachangelog.com/pt-BR/1.1.0/); ## [Não lançado] +## [2.2.0] - 2026-11-16 + +### Adicionado + +- Análise de IP: um endereço que nunca atacou mas é destino de saída (por exemplo o IP de um incidente de egress) agora abre a vista "Destino de saída": quais hosts e cargas de trabalho se conectaram, portas, conexões, ASN/país, achados e incidentes ligados. Endpoint novo `GET /api/v1/ip/{ip}/egress`. Quando não há nada, a página diz de forma definitiva que o IP nunca foi visto; se foi visto como origem fora do período, mostra a última data e um botão de 30 dias. +- Filtro global de host: várias sondas podem ser selecionadas ao mesmo tempo (`host=oracle,hostinger` na URL e na API); marcar todas, ou "Todos os hosts", significa todas as sondas. + +### Corrigido + +- Tráfego: o hub descartava linhas do Traefik depois de cada rotação copytruncate do `access.log` (comparava só inode e offset e ignorava a impressão digital do início que a sonda envia), então o tráfego legítimo do host Oracle sumia por horas após cada rotação. Teste de regressão `TestSameHeadCopytruncate`. +- Filtro global de host: voltar para "Todos os hosts" não fazia nada, porque a URL sem `host=` mantinha o host anterior. + ## [2.1.2] - 2026-11-16 ### Corrigido diff --git a/internal/app/version.go b/internal/app/version.go index 1e0f7be..e0b7d84 100644 --- a/internal/app/version.go +++ b/internal/app/version.go @@ -2,4 +2,4 @@ package app // Version is the release version (SemVer). Release builds may override it with // -ldflags "-X .../internal/app.Version=...". -var Version = "2.1.2" +var Version = "2.2.0" diff --git a/internal/server/web/app.js b/internal/server/web/app.js index 6e13da8..3433465 100644 --- a/internal/server/web/app.js +++ b/internal/server/web/app.js @@ -1863,6 +1863,9 @@ function setShell(over) { var sl = { range: state.range, from: state.from, to: state.to, host: state.host }; Object.keys(over).forEach(function (k) { sl[k] = over[k]; }); + // "all" leaves host= out of the URL and readSlice keeps the current host when the key is absent: + // apply the host here so going back to every probe works + if (over.host !== undefined) { state.host = hostJoin(hostList(over.host)); lsSet('urutau.host', state.host); } var q = Object.assign({}, state.params.query); delete q.p; // a new period or host starts at page 1 var id = current ? current.id : 'overview', hash = buildHash(id, state.params.segments, q, sl); if (hash !== location.hash) history.pushState(null, '', hash);