privacy-forge
Self-hosted consent, DSAR and data-retention engine for small SaaS teams.
~/problem
Small teams need a defensible answer to proving they handle personal data lawfully, without an enterprise compliance platform.
A Laravel 12 and Inertia Vue application covering consent capture, the data-subject request lifecycle, retention policies, RoPA export and a tamper-evident audit log. Tagged v1.0.0 with later sessions closing remaining debt.
~/highlights
- DSAR lifecycle with staff identity verification and erasure approval by a second admin, enforced by ABAC separation of duties (ADR-0007).
- Retention dry-run structurally selects the same records as a real run (ADR-0002).
- Hash-chained audit log with periodic external anchoring, tested against a simulated full-chain rewrite (ADR-0003); DB-level grants revoked from the runtime role.
- Fail-closed ABAC policy evaluator tested against every role and action pair (ADR-0006).
- Embeddable consent widget proven on a third-party static HTML page; RoPA export as CSV and PDF.
- Regulatory traceability from GDPR article to requirement to test; a Laravel version governance incident is written up in the case study.
~/architecture
- Vue and Inertia UI → Laravel app
- Staff DSAR queue, retention, RoPA and audit log; public intake portal.
- Consent widget → Laravel app
- Embeddable script for third-party pages.
- Laravel app → PostgreSQL, Redis, Object storage, Connectors
- ABAC evaluator, DSAR workflow, retention runner, audit logger.
- PostgreSQL
- Application data and the hash-chained audit table, with role-level privileges.
- Object storage
- Export bundles delivered by short-lived signed URLs.
- Connectors → Laravel app
- Webhook contract for dispatching erasure and export to other systems (ADR-0004).
- Redis
- Queues and cache.
~/stack
- Laravel 12
- Vue 3
- Inertia
- PostgreSQL
- Redis
- S3-compatible storage
- Pest
- Docker
~/status
v1.0.0 tagged. Browser-driven end-to-end tests hang on Docker-launched Chromium on the authoring host (R-08, accepted); the UI was verified by an HTTP walkthrough and real screenshots.
~/related
- laravel-consent-guard Laravel package for consent tracking and a tamper-evident audit log.