Files
acaua/docs/interface.md
T
Lucas RayanandClaude Opus 5.5 a218111996
Release / Plan (reuse the published image?) (push) Successful in 4s
CI / Docker image (build and smoke test) (push) Skipped
CI / Format and clippy (push) Successful in 13s
CI / Tests (Linux) (push) Successful in 34s
CI / Dependency audit (push) Successful in 10s
Release / ci (push) Successful in 57s
Release / Build image (arm64) (push) Failing after 28s
Release / Build image (amd64) (push) Successful in 7m14s
Release / Publish tags (push) Skipped
Release / Gitea release (push) Skipped
feat(report): executive report at /relatorio with a Relatório button
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 21:23:57 -03:00

56 lines
2.5 KiB
Markdown

# Interface
**English** · [Português](pt-BR/interface.md)
The interface is a vanilla HTML/CSS/JS dashboard embedded directly into the
`acaua` binary via `rust-embed` and served by `acaua serve`. There is no
frontend build step and no heavy framework runtime.
## Layout
- **Sidebar:** brand logo, navigation, daemon connection indicator, version and update check.
- **Overview:** monitoring scope notice, authorized-use warning and four detection pillar cards.
- **Analysis:** dataset path entry, analyze button, refresh and raw JSON output inspection.
- **Alerts:** list of alerts with deterministic evidence metadata.
- **Settings:** language and theme preferences, stored in browser local storage.
## Language
The source text is Portuguese. `i18n.js` applies English translations from
`i18n-en.js` at runtime and persists the selection in `localStorage`. `Auto`
detects the browser language. The automated test `node scripts/check-ui-i18n.mjs`
guarantees that every visible Portuguese string has an exact English pair.
## Theme
Light, dark and `Auto` modes are supported. `Auto` reacts to system
`prefers-color-scheme`. Preferences stay local; no telemetry is sent.
## Connection state
The interface communicates with `/api/health` and displays:
- **Connecting:** initial connection in progress.
- **Local service online:** daemon is responding.
- **Service unavailable:** connection to daemon failed; interface remains accessible for offline settings.
## Analysis view
Posting a directory path to `/api/analyze` triggers the Zeek ingestion and
analytical detection pipeline.
## Executive report
After an analysis, the **Relatório** button (Report, in English) opens
`GET /relatorio` in a new tab: an A4 executive report of the latest analysis,
paginated in the browser by the vendored Paged.js (`apps/gui/ui/vendor/`), so it
works offline and prints to PDF with the browser's print dialog. It has a cover
with the embedded logo and a motif drawn from the top hosts, a table of
contents, executive summary with KPIs, the host ranking, one section per pillar
(beaconing, persistent sessions, DNS tunnels, evidence fusion), every alert with
its JSON evidence flattened, methodology and glossary, and the analysis scope.
The report is classified `TLP:AMBER` by default; `/relatorio?tlp=GREEN` (or
`CLEAR`, `AMBER+STRICT`, `RED`) changes the label, and unknown values fall back
to AMBER. Every string read from the logs (hosts, domains, summaries) is
HTML-escaped. Without a previous analysis the route answers 404.