chore(release): 2.3.0
This commit is contained in:
1 parent
f9a6783a1f
commit
7f9db226db
3 files changed
+10
-5
No files matched your search
+4
-1
@@ -6,6 +6,8 @@ Format based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versio
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [2.3.0] - 2026-11-23
|
||||
|
||||
### Added
|
||||
|
||||
- Firewall telemetry (inbound attempts): the application logs cannot see connection attempts to ports where nothing listens, nor packets from addresses that are already banned (the firewall drops them silently), so the panel understated the real scale and SSH attacks seemed to fall only because bans work. New host kit option `install.sh --ingress` adds an observation-only nftables table (`inet urutau_ingress`, prerouting priority -150, before Docker's DNAT; counters and a rate-limited log, it never drops, accepts, marks or rewrites anything) and a timer that writes exact counters to `/var/log/urutau/ingress.counters`, plus a sample of the attempts in `/var/log/urutau/ingress.log`. The probe tails both (`URUTAU_INGRESS_LOG`, `URUTAU_INGRESS_COUNTERS`), the hub aggregates per host in hourly buckets for 30 days, and Defense gets a "Firewall: inbound attempts" section: exact totals and attempts per hour, share to closed ports, share from currently banned sources (estimated from the sample), and top ports, networks and countries labelled as sampled. New endpoint `GET /api/v1/ingress`; `urutau doctor` reports whether the source is present and fresh. The attempts are telemetry only: they never become events or evidence, so there is no ban feedback loop. To upgrade: update the hub and the probes, then on each host run `sudo sh deploy/host/install.sh --ingress` (add `--probe` and `--enforce` as that host already uses). The sources show as `waiting` until then. A cloud provider firewall (for example an Oracle Cloud security list) blocks some ports before the host, so the metric is what reaches the host.
|
||||
@@ -355,7 +357,8 @@ First release.
|
||||
- Hostile log content is limited in length and escaped on output; the dashboard ships a strict Content-Security-Policy and the usual hardening headers.
|
||||
- `--insecure-no-auth` is refused unless the bind address is loopback.
|
||||
|
||||
[Unreleased]: https://git.lucasrguerra.dev.br/ciberfauna/urutau/compare/v2.1.1...HEAD
|
||||
[Unreleased]: https://git.lucasrguerra.dev.br/ciberfauna/urutau/compare/v2.3.0...HEAD
|
||||
[2.3.0]: https://git.lucasrguerra.dev.br/ciberfauna/urutau/compare/v2.2.2...v2.3.0
|
||||
[2.1.1]: https://git.lucasrguerra.dev.br/ciberfauna/urutau/compare/v2.1.0...v2.1.1
|
||||
[2.1.0]: https://git.lucasrguerra.dev.br/ciberfauna/urutau/compare/v2.0.0...v2.1.0
|
||||
[2.0.0]: https://git.lucasrguerra.dev.br/ciberfauna/urutau/compare/v1.6.0...v2.0.0
|
||||
|
||||
+5
-3
@@ -6,9 +6,7 @@ Formato baseado no [Keep a Changelog](https://keepachangelog.com/pt-BR/1.1.0/);
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Corrigido
|
||||
|
||||
- Estudos de longo prazo (15 e 30 dias) não estouram mais o tempo: com cerca de 25.000 eventos por dia em 30 dias, período, relatório, campanhas, funil e métricas levavam de 6 a 19 s e voltavam `truncated` com famílias, técnicas e campanhas parciais. Os dias fechados do registro de eventos agora são decodificados uma vez e mantidos na memória (teto de 96 MB, invalidados pelo tamanho e data de modificação do arquivo), o dia atual é lido do arquivo, as sessões são montadas em paralelo e compartilhadas por período, funil e métricas, e a normalização de caminhos é memorizada. No conjunto sintético de 30 dias (750.000 eventos, 2 hosts), as três visões juntas foram de 7,5 s a frio e 5,1 s a quente (cerca de 16 s com limite de memória de 256 MiB, truncado) para 3,7 s a frio e 1,5 s a quente sob GOMEMLIMIT 256MiB, sem truncar, cerca de 200 MB de heap. O painel mostra um aviso quando um estudo realmente atinge um limite. Os alvos mais atacados com contagem igual agora também são ordenados por host, então o resultado é determinístico. Testes `TestDayCacheEqualsFullScan`, `TestDayCacheInvalidatesOnChange` e `BenchmarkStudy30d`.
|
||||
## [2.3.0] - 2026-11-23
|
||||
|
||||
### Adicionado
|
||||
|
||||
@@ -18,6 +16,10 @@ Formato baseado no [Keep a Changelog](https://keepachangelog.com/pt-BR/1.1.0/);
|
||||
|
||||
- O tráfego próprio e confiável é registrado em vez de descartado. As requisições web de `URUTAU_TRUSTED` (classe `trusted`) e das faixas de `URUTAU_IGNORE`, redes privadas por padrão (classe `internal`), sumiam na ingestão, o que escondia cerca de metade das requisições reais de um host movimentado (o outro servidor, um runner de CI, o gateway do Docker). Agora são contadas só em agregados (sem registro de evento cada, mantidas no snapshot) e nunca pontuam um IP nem entram em ameaças, campanhas, sessões, mapas, lista de bloqueio, evidência de banimento, lógica de egress ou análise de visitantes. API: `totals.trusted`, `totals.internal`, `totals.requests_all` (`requests` mais as duas classes), `totals.counts.trusted` e `.internal`, e `own` em `/api/v1/summary` (classes de status, `series` da linha do tempo, `origins`, `domains`, `paths`). A página Tráfego ganhou a seção "Infraestrutura própria e origens confiáveis". As sondas não precisam mudar: o hub classifica. Testes `TestOwnTrafficIsCountedNeverAnalysed` e `TestOwnTrafficThroughFeed`.
|
||||
|
||||
### Corrigido
|
||||
|
||||
- Estudos de longo prazo (15 e 30 dias) não estouram mais o tempo: com cerca de 25.000 eventos por dia em 30 dias, período, relatório, campanhas, funil e métricas levavam de 6 a 19 s e voltavam `truncated` com famílias, técnicas e campanhas parciais. Os dias fechados do registro de eventos agora são decodificados uma vez e mantidos na memória (teto de 96 MB, invalidados pelo tamanho e data de modificação do arquivo), o dia atual é lido do arquivo, as sessões são montadas em paralelo e compartilhadas por período, funil e métricas, e a normalização de caminhos é memorizada. No conjunto sintético de 30 dias (750.000 eventos, 2 hosts), as três visões juntas foram de 7,5 s a frio e 5,1 s a quente (cerca de 16 s com limite de memória de 256 MiB, truncado) para 3,7 s a frio e 1,5 s a quente sob GOMEMLIMIT 256MiB, sem truncar, cerca de 200 MB de heap. O painel mostra um aviso quando um estudo realmente atinge um limite. Os alvos mais atacados com contagem igual agora também são ordenados por host, então o resultado é determinístico. Testes `TestDayCacheEqualsFullScan`, `TestDayCacheInvalidatesOnChange` e `BenchmarkStudy30d`.
|
||||
|
||||
## [2.2.2] - 2026-11-19
|
||||
|
||||
### Corrigido
|
||||
|
||||
@@ -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.2.2"
|
||||
var Version = "2.3.0"
|
||||
Reference in new issue
Block a user