refactor!: rename project from Xexéu to Harpia
Release / Build image (amd64) (push) Successful in 10m49s
Release / Plan (reuse the published image?) (push) Successful in 5s
Release / ci (push) Successful in 20m40s
CI / Format and clippy (push) Successful in 5m43s
CI / Tests (Linux) (push) Successful in 16m5s
CI / Dependency audit (push) Successful in 11s
CI / Docker image (build and smoke test) (push) Skipped
Release / Build image (arm64) (push) Successful in 7m34s
Release / Publish tags (push) Successful in 15s
Release / Gitea release (push) Skipped
Release / CLI (linux-aarch64) (push) Skipped
Release / CLI (linux-x86_64) (push) Skipped
Release / Build image (amd64) (push) Successful in 10m49s
Release / Plan (reuse the published image?) (push) Successful in 5s
Release / ci (push) Successful in 20m40s
CI / Format and clippy (push) Successful in 5m43s
CI / Tests (Linux) (push) Successful in 16m5s
CI / Dependency audit (push) Successful in 11s
CI / Docker image (build and smoke test) (push) Skipped
Release / Build image (arm64) (push) Successful in 7m34s
Release / Publish tags (push) Successful in 15s
Release / Gitea release (push) Skipped
Release / CLI (linux-aarch64) (push) Skipped
Release / CLI (linux-x86_64) (push) Skipped
Renames the whole project, after the harpy eagle: crates (xexeu-core/xexeu-cli -> harpia-core/harpia-cli), binary (xexeu -> harpia), admin token env var (XEXEU_ADMIN_TOKEN -> HARPIA_ADMIN_TOKEN), compose env vars (XEXEU_* -> HARPIA_*), container image (ciberfauna/xexeu -> ciberfauna/harpia) and the Gitea repository (ciberfauna/xexeu -> ciberfauna/harpia). Logo updated to the new brand artwork. All docs (EN/PT-BR), CI workflows, scripts, GUI strings and the openspec change history updated to match. BREAKING CHANGE: binary, crate, env var and image names all changed; existing .env files, scripts and deployments referencing the old xexeu/XEXEU names must be updated. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VAyr8cd6jzwpJM9cS1oGjy
This commit is contained in:
1 parent
1dc754a561
commit
5ed6cb2c95
93 files changed
+849
-826
No files matched your search
+48
-48
@@ -2,58 +2,58 @@
|
||||
|
||||
# Terminal (CLI)
|
||||
|
||||
O `xexeu` é um único binário cobrindo os dois papéis do Docker Compose
|
||||
O `harpia` é um único binário cobrindo os dois papéis do Docker Compose
|
||||
(`serve` e `scanner`) mais todo comando de operador. Todo subcomando aceita
|
||||
`-h`/`--help`.
|
||||
|
||||
## `xexeu serve`
|
||||
## `harpia serve`
|
||||
|
||||
Roda o servidor de API, a ingestão de lotes, o motor de diff e o
|
||||
dashboard/relatório executivo embutidos.
|
||||
|
||||
```
|
||||
Usage: xexeu serve [OPTIONS]
|
||||
Usage: harpia serve [OPTIONS]
|
||||
|
||||
Options:
|
||||
--bind <BIND> [default: 0.0.0.0:8788]
|
||||
--config <CONFIG> [default: config/xexeu.toml]
|
||||
--config <CONFIG> [default: config/harpia.toml]
|
||||
--sweeps <SWEEPS> [default: data/sweeps]
|
||||
--data-dir <DATA_DIR> [default: data/xexeu]
|
||||
--data-dir <DATA_DIR> [default: data/harpia]
|
||||
--admin-token <ADMIN_TOKEN> Token required by the API routes that change state.
|
||||
Without it, a random token is generated at startup
|
||||
and printed once [env: XEXEU_ADMIN_TOKEN]
|
||||
and printed once [env: HARPIA_ADMIN_TOKEN]
|
||||
```
|
||||
|
||||
Esse é o entrypoint do serviço `xexeu` do Compose.
|
||||
Esse é o entrypoint do serviço `harpia` do Compose.
|
||||
|
||||
Leituras (`GET`) são abertas; as rotas que mudam a configuração
|
||||
(`POST`/`PUT`/`DELETE /api/config/groups…`) exigem o token de administração em
|
||||
`Authorization: Bearer <token>` ou `X-Xexeu-Token`, e um `Origin` de navegador,
|
||||
quando presente, precisa bater com o `Host`. Sem `XEXEU_ADMIN_TOKEN`, o `serve`
|
||||
`Authorization: Bearer <token>` ou `X-Harpia-Token`, e um `Origin` de navegador,
|
||||
quando presente, precisa bater com o `Host`. Sem `HARPIA_ADMIN_TOKEN`, o `serve`
|
||||
imprime um link `http://…/?token=…` novo a cada partida; abri-lo autentica o
|
||||
dashboard naquela aba.
|
||||
|
||||
`GET /metrics` serve texto Prometheus: `xexeu_build_info`,
|
||||
`xexeu_sweeps_ingested_total`, `xexeu_assets{status}`, `xexeu_open_ports`,
|
||||
`xexeu_findings{severidade}`, `xexeu_kev_findings`, `xexeu_vuln_db_cves`,
|
||||
`xexeu_feeds_last_sync_timestamp_seconds`, por grupo
|
||||
`xexeu_last_sweep_{timestamp_seconds,duration_seconds,complete,events}` e
|
||||
`xexeu_webhook_deliveries_total{resultado}`. Como as outras leituras, não exige
|
||||
token; um alerta em `time() - xexeu_last_sweep_timestamp_seconds` pega um
|
||||
`GET /metrics` serve texto Prometheus: `harpia_build_info`,
|
||||
`harpia_sweeps_ingested_total`, `harpia_assets{status}`, `harpia_open_ports`,
|
||||
`harpia_findings{severidade}`, `harpia_kev_findings`, `harpia_vuln_db_cves`,
|
||||
`harpia_feeds_last_sync_timestamp_seconds`, por grupo
|
||||
`harpia_last_sweep_{timestamp_seconds,duration_seconds,complete,events}` e
|
||||
`harpia_webhook_deliveries_total{resultado}`. Como as outras leituras, não exige
|
||||
token; um alerta em `time() - harpia_last_sweep_timestamp_seconds` pega um
|
||||
scanner que parou.
|
||||
|
||||
## `xexeu scanner`
|
||||
## `harpia scanner`
|
||||
|
||||
Roda o agendador e o motor de varredura contínuos, gravando lotes — nunca
|
||||
sai sozinho, mesmo ciclo de vida de um daemon.
|
||||
|
||||
```
|
||||
Usage: xexeu scanner [OPTIONS]
|
||||
Usage: harpia scanner [OPTIONS]
|
||||
|
||||
Options:
|
||||
--config <CONFIG> [default: config/xexeu.toml]
|
||||
--config <CONFIG> [default: config/harpia.toml]
|
||||
--out <OUT> [default: data/sweeps]
|
||||
--data-dir <DATA_DIR> [default: data/xexeu]
|
||||
--data-dir <DATA_DIR> [default: data/harpia]
|
||||
```
|
||||
|
||||
Escolhe o motor `nativo` (SYN cru) sempre que um perfil pede e o
|
||||
@@ -62,47 +62,47 @@ Escolhe o motor `nativo` (SYN cru) sempre que um perfil pede e o
|
||||
[`arquitetura.md`](arquitetura.md#2-motor-de-varredura). Esse é o
|
||||
entrypoint do serviço `scanner` do Compose.
|
||||
|
||||
## `xexeu scan --group <nome> --once`
|
||||
## `harpia scan --group <nome> --once`
|
||||
|
||||
Roda uma única varredura de um grupo, pra diagnóstico — grava um lote
|
||||
exatamente como o `scanner` faria, e sai.
|
||||
|
||||
```
|
||||
Usage: xexeu scan [OPTIONS]
|
||||
Usage: harpia scan [OPTIONS]
|
||||
|
||||
Options:
|
||||
--group <GROUP>
|
||||
--once
|
||||
--config <CONFIG> [default: config/xexeu.toml]
|
||||
--config <CONFIG> [default: config/harpia.toml]
|
||||
--out <OUT> [default: data/sweeps]
|
||||
--data-dir <DATA_DIR> [default: data/xexeu]
|
||||
--data-dir <DATA_DIR> [default: data/harpia]
|
||||
```
|
||||
|
||||
```bash
|
||||
xexeu scan --group dmz --once --config config/xexeu.toml --out data/sweeps --data-dir data/xexeu
|
||||
harpia scan --group dmz --once --config config/harpia.toml --out data/sweeps --data-dir data/harpia
|
||||
```
|
||||
|
||||
## `xexeu config check`
|
||||
## `harpia config check`
|
||||
|
||||
Valida o `xexeu.toml` e imprime, por grupo, a contagem de endereços, o
|
||||
Valida o `harpia.toml` e imprime, por grupo, a contagem de endereços, o
|
||||
cron efetivo e qualquer sobreposição de cadência. Rode isso depois de toda
|
||||
edição manual.
|
||||
|
||||
```
|
||||
Usage: xexeu config check [OPTIONS]
|
||||
Usage: harpia config check [OPTIONS]
|
||||
|
||||
Options:
|
||||
--config <CONFIG> [default: config/xexeu.toml]
|
||||
--config <CONFIG> [default: config/harpia.toml]
|
||||
```
|
||||
|
||||
Sai com código não-zero numa configuração inválida — seguro de usar num
|
||||
hook de pre-push ou passo de CI, que é exatamente o que
|
||||
`scripts/check.sh` faz.
|
||||
|
||||
## `xexeu feeds sync` / `xexeu feeds import`
|
||||
## `harpia feeds sync` / `harpia feeds import`
|
||||
|
||||
```
|
||||
Usage: xexeu feeds <COMMAND>
|
||||
Usage: harpia feeds <COMMAND>
|
||||
|
||||
Commands:
|
||||
sync Download NVD and CISA KEV feeds incrementally
|
||||
@@ -112,23 +112,23 @@ Commands:
|
||||
```bash
|
||||
# Sync ao vivo, único (também acontece automaticamente dentro do `serve`
|
||||
# se padrao.feeds.sincronizar_automaticamente = true — veja configuracao.md)
|
||||
xexeu feeds sync --config config/xexeu.toml --data-dir data/xexeu
|
||||
harpia feeds sync --config config/harpia.toml --data-dir data/harpia
|
||||
|
||||
# Offline, pra redes isoladas
|
||||
xexeu feeds import ./dump-nvd --data-dir data/xexeu
|
||||
harpia feeds import ./dump-nvd --data-dir data/harpia
|
||||
```
|
||||
|
||||
## `xexeu changes --since <duração>`
|
||||
## `harpia changes --since <duração>`
|
||||
|
||||
Imprime eventos de diff (host novo/sumido, porta nova/fechada,
|
||||
vulnerabilidade nova/corrigida) do estado local — os mesmos dados que
|
||||
`/api/changes` serve.
|
||||
|
||||
```bash
|
||||
xexeu changes --since 24h --data-dir data/xexeu
|
||||
harpia changes --since 24h --data-dir data/harpia
|
||||
```
|
||||
|
||||
## `xexeu export --format json|csv`
|
||||
## `harpia export --format json|csv`
|
||||
|
||||
Exporta o estado atual deduplicado (hosts, portas, achados) —
|
||||
compartilha a lógica de formatação com os endpoints `/api/export/*.csv` e
|
||||
@@ -136,44 +136,44 @@ compartilha a lógica de formatação com os endpoints `/api/export/*.csv` e
|
||||
dashboard nunca desalinham.
|
||||
|
||||
```
|
||||
Usage: xexeu export [OPTIONS]
|
||||
Usage: harpia export [OPTIONS]
|
||||
|
||||
Options:
|
||||
--format <FORMAT> [default: json]
|
||||
--data-dir <DATA_DIR> [default: data/xexeu]
|
||||
--data-dir <DATA_DIR> [default: data/harpia]
|
||||
--out <OUT>
|
||||
```
|
||||
|
||||
```bash
|
||||
xexeu export --format csv --data-dir data/xexeu --out hosts.csv
|
||||
xexeu export --format json --data-dir data/xexeu # imprime no stdout
|
||||
harpia export --format csv --data-dir data/harpia --out hosts.csv
|
||||
harpia export --format json --data-dir data/harpia # imprime no stdout
|
||||
```
|
||||
|
||||
## `xexeu doctor [--json]`
|
||||
## `harpia doctor [--json]`
|
||||
|
||||
Diagnostica o ambiente de execução — rode isso primeiro quando algo
|
||||
parecer errado, e sempre antes de reportar uma issue (veja
|
||||
[`suporte.md`](suporte.md)).
|
||||
|
||||
```
|
||||
Usage: xexeu doctor [OPTIONS]
|
||||
Usage: harpia doctor [OPTIONS]
|
||||
|
||||
Options:
|
||||
--json
|
||||
--config <CONFIG> [default: config/xexeu.toml]
|
||||
--data-dir <DATA_DIR> [default: data/xexeu]
|
||||
--config <CONFIG> [default: config/harpia.toml]
|
||||
--data-dir <DATA_DIR> [default: data/harpia]
|
||||
```
|
||||
|
||||
```
|
||||
$ xexeu doctor
|
||||
Xexéu v1.0.0 - Diagnóstico do Ambiente
|
||||
$ harpia doctor
|
||||
Harpia v1.0.0 - Diagnóstico do Ambiente
|
||||
================================================================================
|
||||
Item Status Detalhe
|
||||
--------------------------------------------------------------------------------
|
||||
versao ok xexeu v1.0.0
|
||||
versao ok harpia v1.0.0
|
||||
config ok configuração válida (4 grupo(s))
|
||||
net_raw ok CAP_NET_RAW disponível (motor nativo ativo)
|
||||
sqlite ok banco SQLite acessível em data/xexeu/xexeu.db
|
||||
sqlite ok banco SQLite acessível em data/harpia/harpia.db
|
||||
vuln_db ok 135 CVE(s) carregados (12h atrás)
|
||||
feeds_sync ok sincronizado há 12h (dentro do intervalo configurado)
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user