vh audit
Reference for vh audit - list, verify and export the tamper-evident audit trail.
vh audit reads the tamper-evident audit trail: who did what, hash-chained and signed. All three commands need the
view audits admin permission and are themselves recorded. Dates are YYYY-MM-DD (UTC) or Unix seconds. See
Audit Trail.
1vh audit list [--action <prefix>] [--since <date>] [--until <date>] [--limit <n>] [--json]2vh audit verify [--json]3vh audit export [--since <date>] [--until <date>] > audit.ndjson
Commands
| Command | Arguments | Aliases | Effect | Summary |
|---|---|---|---|---|
ls, show | read | Recent audit events, newest first. | ||
check | read | Recompute the audit hash chain and check every signed head. | ||
| read | Write events as NDJSON (vh-audit-export-v1) to stdout, with their hashes and the signed heads that cover them, so the file verifies offline (tools/audit/verify_export.py). |
vh audit list
vh audit list [options]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
prefix | Only actions starting with this ("auth.", "rbac."). | |||
n | 50 | How many events (1..1000). | ||
number | Only one paired device: what it did (under whatever scope) and what was done to it; its number from vh device list --all. | |||
id | Only one connector grant: its tool calls and its own events; its id. | |||
time | From this time: YYYY-MM-DD (UTC) or Unix seconds. | |||
time | Before this time: YYYY-MM-DD (UTC) or Unix seconds. | |||
flag | Print the result as JSON (the ws shapes). |
vh audit verify
vh audit verify [--json]verify exits with status 1 when the trail was altered; the output names the first bad event.
| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
flag | Print the result as JSON (the ws shapes). |
