Files
harpia/docs/support.md
T

48 lines
2.6 KiB
Markdown

# Support
**English** · [Português](pt-BR/suporte.md)
Harpia is distributed as a two-container Docker Compose stack. The fastest
way to get help is opening an issue in the Gitea repository.
## Before opening an issue
1. Run `docker exec harpia harpia doctor --json` (or `harpia doctor --json` on
the host binary) and attach the output.
2. Confirm the version with `harpia --version`.
3. Run `harpia config check --config <path>` to rule out a configuration
problem before reporting a scanning one.
4. Review [`configuration.md`](configuration.md), [`architecture.md`](architecture.md)
and [`docker.md`](docker.md), especially the `CAP_NET_RAW` section if the
issue looks scan-engine related.
## What to include
- Host OS, architecture (`uname -m`) and Harpia version/tag.
- The exact `docker-compose.yml` (or CLI invocation) used.
- Full container logs: `docker compose logs scanner harpia`.
- The `motor` actually used for the affected sweep, check the batch
manifest or `/api/status`, since `nativo` silently falls back to
`nativo-sem-raw` without `CAP_NET_RAW`, which changes what's expected.
- A redacted `harpia.toml` (never share real authorized-scope ranges or
`responsavel` contact details if they're sensitive).
Only ever audit networks you own or are explicitly authorized to test. Do
not attach captures or findings from systems outside that scope.
## Security issues
Do not include exploit details in a public issue. Follow
[SECURITY.md](../SECURITY.md) and request a private communication channel.
## Common situations
| Symptom | What to check |
|---|---|
| `scanner` container exits immediately | Confirm `cap_add: [NET_RAW]` and `user: "0:0"` are both set; `nativo` without the capability should fall back, not crash; a crash means a different problem |
| Every sweep uses `nativo-sem-raw` even with `NET_RAW` granted | Check `harpia doctor`'s capability report; on a `--userns-remap` host, verify the remap maps the container's `uid 0` correctly |
| `serve` is unreachable from another host | Binds to `127.0.0.1:8788` by default (`HARPIA_PUBLISH` in `.env`); verify reverse proxy configuration |
| `feeds sync` fails | Check network connectivity to the NVD and CISA KEV APIs; fall back to `feeds import` with a manually downloaded dump for isolated networks |
| Dashboard shows Portuguese | `Auto` follows the browser language; select English in Settings |
| A group added from the dashboard isn't scanned yet | `scanner` reloads the config on its next tick by file `mtime`, not instantly; wait one tick, or check its logs for a reload warning if the config was invalid |