PDF, CSV and JSON hold identical data for the chosen period and filters. Console: Reports.
Sections of the ready reports#
| Report | Sections |
|---|---|
Executive summary |
Findings, Summary, Targets, Refused, failed and sensitive actions |
Access review |
Findings, Summary, Targets, Who has access, Review sheets, Privileged access, Temporary access, Who went where |
Privileged access |
Findings, Summary, Privileged access, Temporary access, Access changes, Credentials, Refused, failed and sensitive actions |
Joiners and leavers |
Findings, Summary, Temporary access, People and groups changes, Access changes |
Change log |
Findings, Summary, Access changes, Drift, Full timeline |
Security events |
Findings, Summary, Sign-in and authentication, Who went where, Credentials, Refused, failed and sensitive actions, Most frequent events, Full timeline |
Drift |
Findings, Summary, Targets, Drift |
Who used access |
Findings, Summary, Sign-in and authentication, Who went where, Credentials |
ISO/IEC 27001, SOC 2 and PCI DSS include all sections except Activity by area, Most frequent events and Full timeline.
CSV#
ZIP with metadata plus one CSV per table or chart:
| File | Contents |
|---|---|
report.csv |
Title, org, period, timestamp, filters, highlights, risk levels, notices. |
contents.csv |
Manifest: section, basis (Current state / Activity in period), target/group, title, shown/total rows, chart share. |
notes.csv |
Section leads, notes, warnings with tone. |
04-access-matrix-01-01.csv |
<num>-<section-id>-<part>-<table>.csv (00 = section level, then per target/group). |
- Extra columns:
(detail)(second line),(list)(multi-line), Trend (space-separated daily values), Tone / Row tone, Partial. - Heatmaps emit one row per filled cell, timelines one row per span/event, both with Legend.
- UTF-8 CSV. Non-numeric values starting with
=,+,-,@get a leading'. Excel: Data → From Text/CSV.
JSON#
Schema principal.audit_report, schema_version: 2. Empty values are "", [] or null. Ignore unknown additions. Renames/removals bump schema_version.
{
"schema": "principal.audit_report",
"schema_version": 2,
"report": {
"id": "9f1c…", "title": "Access review", "subtitle": "…",
"organization": "Northwind Payments", "classification": "…",
"generated_at": "2026-11-05T09:30:00Z",
"period_from": "2026-08-07T09:30:00Z",
"period_to": "2026-11-05T09:30:00Z"
},
"facts": [{"key": "Targets", "value": "All targets"}],
"notices": [{"tone": "warning", "title": "…", "lines": ["…"]}],
"highlights": [{"label": "Targets", "value": "18", "note": "",
"tone": "neutral", "trend": [], "delta": ""}],
"risk_levels": {"type": "donut", "…": "…"},
"sections": [{
"id": "access_matrix", "title": "Who has access",
"lead": "…", "basis": "current_state",
"blocks": [{"type": "heatmap", "…": "…"}],
"subsections": [{
"id": "access-1", "title": "payments-primary",
"lead": "PostgreSQL, high risk. …",
"blocks": [{
"type": "table", "title": "", "empty": "", "truncated": null,
"columns": [
{"key": "subject", "header": "Subject", "kind": "text"},
{"key": "account", "header": "Account", "kind": "identifier"},
{"key": "access", "header": "Access", "kind": "list"},
{"key": "level", "header": "Level", "kind": "status"},
{"key": "expires_utc", "header": "Expires (UTC)", "kind": "time"}
],
"rows": [{"tone": "neutral", "cells": {
"subject": {
"text": "Boris Ng",
"note": "Person, via group engineering/backend-developers",
"items": [], "tone": "", "account": null, "grants": []
},
"account": {
"text": "boris_ng", "note": "", "items": [], "tone": "",
"account": {"name": "boris_ng", "host": ""}, "grants": []
},
"access": {
"text": "", "note": "", "tone": "", "account": null,
"items": [
"database payments, schema public, all tables: SELECT, INSERT"
],
"grants": [{"object": "table", "database": "payments",
"schema": "public", "table": "*",
"privileges": ["SELECT", "INSERT"], "via_role": ""}]
},
"level": {
"text": "Privileged", "note": "", "items": [],
"tone": "danger", "account": null, "grants": []
},
"expires_utc": {
"text": "", "note": "", "items": [],
"tone": "", "account": null, "grants": []
}
}}]
}]
}]
}]
}report: RFC 3339 UTC times.sections: ordered (idfrom GET/audit,/reports /presets basis:current_state/period/configuration/""),blocks,subsections.tone:neutral,info,success,warning,danger,critical,"".legend:label,tone,shape(circle,ring,square,triangle,diamond,hollow_diamond,"").
type |
Fields |
|---|---|
table |
title, columns (key, header, kind: text/identifier/number/time/status/list), rows (tone, cells: text/note/items/tone/account/grants, Accounts and grants), empty, truncated (shown/total/noun/hint). |
findings |
items (severity, title, why, action, evidence), empty. |
metrics |
items (label, value, note, tone, trend, delta). |
key_values |
items (key, value). |
paragraph |
text, tone. |
callout |
tone, title, lines. |
distribution, donut, segmented_bar |
title, items (label, value, tone), total, center_value/center_label (donut), empty. |
bar_chart |
title, series (label, tone), bars (label, values, partial), empty. |
heatmap |
title, scale, rows/columns (label, note), cells (value, label, tone), legend, empty, truncated. |
timeline |
title, from, to, now, lanes (label, note, spans: from/to/label/tone/legend, marks: at/label/tone/shape/legend), legend, empty, truncated. |
tiles |
title, items (title, subtitle, value, tone), legend, empty. |
Column key is lowercase _-joined PDF header (expires_utc). Access per target:
jq -r '.sections[] | select(.id == "access_matrix") | .subsections[]
| .title as $t | .blocks[]
| select(.type == "table" and .columns[0].key == "subject") | .rows[]
| [$t, .cells.subject.text, .cells.level.text,
(.cells.access.items | join("; "))] | @tsv' report.jsonAccounts and grants#
Who has access includes Account on MySQL/MariaDB, PostgreSQL and ClickHouse (One per member, Not created yet). Accounts not managed by Principal lists unowned accounts (MySQL/MariaDB/PostgreSQL, max 40/server, truncated): Part of it could not be read, No own privileges, Not read yet. PUBLIC, GRANT OPTION, ADMIN OPTION and column grants (SELECT (email)) are omitted.
account(Account cell, elsenull):name,host(%/10.0.%on MySQL/MariaDB, else"", unmasked).grants(Access cell, else[]):object(server/database/schema/table/sequence/function/type),database,schema(PostgreSQL),table,privileges,via_role.*= all. PostgreSQL splits masks by scope (SUPERUSER→server, memberships initems).
Accounts matching crm.customers:
jq -r '.sections[] | select(.id == "access_matrix") | .subsections[]
| .title as $t | .blocks[] | select(.type == "table") | .rows[]
| .cells as $c | select($c.account.account != null)
| $c.access.grants[]
| select((.database == "crm" or .database == "*")
and (.table == "customers" or .table == "*"))
| [($c.target.text // $t), $c.account.account.name,
$c.account.account.host, (.privileges | join(","))] | @tsv' report.jsonAPI options#
| Operation | Purpose |
|---|---|
Presets, sections ( requires beyond audit:read), target kinds. |
|
Start report ( job_id, async operations). |
|
Latest reports ( limit: 20 default, 50 max). |
|
Status, period_from/period_to, format, failure, summary, download_ready, file_name. |
|
Download ( application/pdf, application/zip, application/json). |
{
"options": {
"preset": "iso27001", "format": "json",
"sections": ["summary", "control_evidence", "access_matrix",
"privileged_access", "methodology"],
"title": "ISO 27001 evidence, Q3",
"show_internal_identifiers": false, "mask_sensitive": true
},
"filters": {
"from": "2026-07-01T00:00:00Z", "to": "2026-10-01T00:00:00Z",
"target_kind": ["postgres", "kubernetes"]
}
}| Field | Values |
|---|---|
options.preset |
executive (default), access_review, privileged_access, leavers, change_management, security_events, drift, access_activity, iso27001, soc2, pci_dss. |
options.format |
pdf (default), csv, json (summary.report_pages: 0 for CSV/JSON). |
options.sections |
Section IDs from GET /audit. |
options.show_internal_identifiers |
Inverse of Hide internal IDs. |
options.mask_sensitive |
Mask network addresses. |
filters.target_kind / target_id |
postgres, mysql, clickhouse, mongodb, kubernetes, ssh, application or IDs (default: all). |
filters.from / to |
Default: ends now, preset span. |
Event filters |
summary.not_countedlists uncomputed zero counters:managed_subjects/unmanaged_subjects/privileged_access/high_risk_targets(no current-state section),total_events/exceptions_count(only Control evidence, Targets, How this report was made),privileged_access(pre-7.2.0).summary.report_version:v3(7.2.0+) orv2.- Legacy flags (no
options.sections):include_full_timeline_appendix/appendix_timeline_limit/event_limit,include_top_events/top_events_limit,include_filters_appendix: false,include_targets: false,include_timeline: false. - Errors: bad input, empty sections or title > 120 chars →
400. Missing permission →403(details.sections,details.missing_permissions, nothing queued).