Secure Export Workflow
This page describes the hardened GDPR/export flow implemented in Veilio.
Last updated
Was this helpful?
This page describes the hardened GDPR/export flow implemented in Veilio.
Export request requires authenticated session
2FA/TOTP code is required
Export payload is encrypted at rest
Download link/token is one-time use
Token expires automatically
Full export is quota-free (all tokens detokenized regardless of plan)
Client requests export with POST /api/compliance/export and body:
format: json or csv
code: TOTP code
Veilio validates session + 2FA + rate limit.
Export job is created and processed asynchronously.
User receives a download link/token (and email notification).
GET /api/compliance/export?code=... is disabled for security.
Export fileData is stored encrypted (enc_v1: prefix).
Download route rotates token on first successful download.
Reusing same download link returns 410 GONE.
Before deleting an account, users must download audit logs:
This step is mandatory in the guided offboarding flow (/dashboard/offboarding).
See Offboarding & Account Exit for the full 5-step departure checklist (understand → export data → export logs → confirm → delete).
Keep export token expiry short where possible.
Monitor repeated failed 2FA/export attempts.
Keep audit logs for export request + download events.
Export before shred/delete — crypto-shredded tokens cannot be recovered.
Last updated
Was this helpful?
Was this helpful?
GET /api/compliance/logs-export?startDate=YYYY-MM-DD&endDate=YYYY-MM-DD&format=json