Velaris maintains an immutable, append-only audit trail of every significant event across the platform. No user — including admins — can modify or delete audit entries through the UI or API.
| Category | Events Logged |
|---|---|
| Authentication | Login (success/failure), logout, password change, SSO assertion, token refresh, account lockout |
| Case Lifecycle | Create, stage transition, step complete, close, cancel, reopen, SLA breach, SLA pause/resume |
| Data Changes | Field value updates (old value > new value captured), attachments added/removed |
| Assignment | Claim, reassign, escalate (with reason), group transfer |
| Administration | User create/modify/deactivate, role changes, access group changes, password resets by admin |
| Configuration | Case type publish/archive, connector save, SLA policy change, branding update, env var change (key only, not value) |
| API Access | All authenticated API calls: user, method, endpoint, response code, duration ms |
| Integration Events | Connector calls (outbound): target URL, status code, duration, retry attempts |
| Webhook Events | Inbound webhooks: source connector, payload hash, HMAC verification result, routing outcome |
| System | Service start/stop, migration runs (revision, status), graph sync, scheduled job executions, HxDeploy promotion events |
| Cross-Region Access | Cross-region read grants and reads (HxGlobal), with source region and requesting user |
| Fraud Review | HxShield flag, Clear, Confirm Fraud, Escalate actions with reviewer identity |
{
"id": "uuid",
"timestamp": "2026-05-17T10:23:45.123Z",
"category": "case_lifecycle",
"event_type": "stage_transition",
"user_id": "agent-uuid",
"user_email": "agent@company.com",
"case_id": "case-uuid",
"case_ref": "CASE-0042",
"from_value": "intake",
"to_value": "review",
"ip_address": "10.0.1.45",
"access_group_id": "group-finance",
"tenant_id": "default"
}
Navigate to Studio > Audit Logs. Requires Manager or Admin role.
Use the filter bar to narrow results: date range, user (email or ID), event category, event type, case ID or reference.
Click any entry to expand the full JSON payload including old/new values for data change events.
Click Export to download the filtered result set as CSV or JSON (NDJSON format for SIEM ingestion).
# Query audit log — filter by category and date range curl -s "http://localhost:8200/api/v1/audit?category=authentication&from=2026-05-01&to=2026-05-17" \ -H "Authorization: Bearer $TOKEN" # Get all audit events for a specific case curl -s "http://localhost:8200/api/v1/audit?case_id=CASE-0042" \ -H "Authorization: Bearer $TOKEN"
| Setting | Default | Configuration |
|---|---|---|
| Retention Period | 2 years (730 days) | AUDIT_RETENTION_DAYS env var |
| Archive Before Delete | Enabled | Entries moved to audit_log_archive table before deletion |
| Export Format | CSV, NDJSON | Available from UI and API |
| SIEM Integration | Push via HxSync or pull via API | Use NDJSON format for Splunk/Elastic |
audit_log table is blocked by a PostgreSQL trigger. The app role has INSERT-only permissions on audit tables — UPDATE and DELETE are denied at the database layer.Velaris implements a cryptographically chained audit model via AuditChainModel. Each record includes a prev_hash field linking it to the previous entry:
hash_n = SHA256(hash_{n-1} || record_n_canonical_json)
This means any edit, deletion, or insertion into the middle of the chain breaks the hash linkage — making tampering detectable by a verifier replaying the chain.
| Control | Mechanism |
|---|---|
| Hash-chain linkage | Each record stores hash_n = H(prev_hash || record_data). Any mutation breaks the chain detectably. |
| Append-only DB role | The application database role has INSERT but not UPDATE or DELETE on audit tables. A compromised application cannot rewrite history. |
| PostgreSQL trigger | A DB-level trigger rejects any UPDATE or DELETE on the audit log table, even from roles not caught by the role restriction. |
| External anchoring (roadmap) | Periodic publication of the chain's Merkle root to an external transparency log (RFC 3161 timestamp authority). Prevents even DB-admin-level backdating. Planned for a future release. |
GET /api/v1/audit/chain/verify (Admin only). Returns {"valid": true, "last_hash": "...", "entries_checked": N} or details of the first broken link if tampered.