Repository navigation
Description
Summary
Admin-facing audit log dashboard for compliance review. v1 = minimal viewer over existing /api/audit-log endpoints — list, filter, detail panel. Lives in trinity-enterprise private submodule per #847 architecture (Phase 0 scaffolding shipped in #910).
Context
Audit log backend fully shipped (SEC-001 / #20): append-only audit_log table, hash-chain integrity, 365d retention, admin-gated REST surface. From architecture.md:
GET /api/audit-log— list with filters (event_type,actor_type,actor_id,target_type,target_id,source,start_time,end_time,limit,offset)GET /api/audit-log/stats— counts by event_type / actor_typeGET /api/audit-log/{event_id}— single entryGET /api/audit-log/export— CSV/JSON time-range exportPOST /api/audit-log/verify— hash chain verify
Missing: UI for compliance / SOC2 reviewers who can't curl | jq. This issue ships that UI in the private repo, gated via EntitlementService seam from #910.
v1 Scope
- List view: paginated table over
GET /api/audit-logwith filter controls forevent_type,actor_type,actor_id,target_type,start_time,end_time. - Detail panel: click row → expand
detailsJSON + showprevious_hash/entry_hash(read-only). - Entitlement-gated: route loads only when EntitlementService confirms the audit-log entitlement; no-op in OSS builds.
- Admin auth: same
adminrole gating as backend; non-admins get 404.
Out of scope v1 (separate issues): CSV/JSON export UI, hash-chain verify button, stats tiles, SIEM webhook push.
Backend work expected
Most filter params exist. Likely additions:
- Distinct-value endpoints for filter dropdowns (
GET /api/audit-log/distinct/event-types,…/actor-types) — cheap aggregate, avoids frontend hardcoding the enum. - Cursor pagination if offset is slow over 365d retention — defer, profile first.
Acceptance Criteria
- Dashboard route mounts under entitlement gate; route hidden absent it
- Paginated table (default 50/page, max 500)
- All 7 backend filter params surfaced as UI controls
- Time range picker, default last 24h
- Detail panel shows full event JSON + actor/target metadata
- Non-admin → clean 404 (no info leak)
- Vue view + Pinia store in trinity-enterprise per feat(enterprise): audit log dashboard + entitlement seam (#941, #847) #910 layout
- Unit test for store; integration test for entitlement gating
Related
- Parent architecture: Spike: enterprise edition architecture — private module strategy for compliance features (SSO, SCIM, SIEM) #847
- Phase 0 scaffolding: feat(enterprise): audit log dashboard + entitlement seam (#941, #847) #910
- Backend: SEC-001 / Audit Trail System (SEC-001) #20 (closed)
Notes
First concrete enterprise feature after #847. Treat as exemplar for future enterprise work — scaffold pattern, entitlement gating, CI w/ submodule.
Activity
dolho commentedon May 26, 2026
/claim
feat(audit): enterprise audit log dashboard (#941) + remove SSO PoC
docs(security): CSO --diff report for #941 audit dashboard
docs(audit): sync feature-flows index + add Phase 5 tests section (#941)
feat(audit-dashboard): stats tiles, time presets, drill-down, verify,…
feat(audit-dashboard): dow×hour + GitHub-style calendar heatmaps + fo…
fix(ci): sys-modules lint + OSS-only skip for audit dashboard e2e (#941)
feat(enterprise): audit log dashboard + entitlement seam (#941, #847) (…
docs(user-docs): sync to platform state since 2026-04-23
test: re-pin entitlement seam to audit+SSO now that SSO-OIDC landed (A…
feat(evaluations): the run's judge and hand-off on the execution page…
feat(evaluations): the run's judge and hand-off on the execution page…
feat(evaluations): the run's judge and hand-off on the execution page…
feat(evaluations): the run's judge and hand-off on the execution page…
feat(evaluations): the run's judge and hand-off on the execution page…
feat(evaluations): the run's judge and hand-off on the execution page…
feat(evaluations): the run's judge and hand-off on the execution page…
feat(evaluations): the run's judge and hand-off on the execution page…
feat(evaluations): the run's judge and hand-off on the execution page…