Client SaaS
TypeScript
Issue Resolved
Issue #38 closed: GDPR: Add server-side cookie consent storage for audit trail
Background
From PR #37 review - the cookie consent implementation currently stores preferences in localStorage and a browser cookie, but there's no server-side persistence.
Problem
GDPR guidelines typically require server-side storage for audit purposes. If we need to prove consent was given at a specific time, we currently have no server-side record.
Suggested Implementation
- Create a
cookie_consentsmigration and model - When user gives/updates consent, POST to server to store:
user_id(nullable for guests)session_idorip_hashfor anonymous userspreferences(JSON of what was consented to)consented_attimestampuser_agentfor context
- Keep the client-side storage for UX (immediate banner hiding)
- Server storage provides the audit trail
Priority
Medium - Current implementation works functionally but may not meet strict GDPR audit requirements.
Labels
enhancement, gdpr