feat: account deletion and data anonymisation - #637
Merged
Conversation
Implement GDPR/CCPA-compliant account deletion with 30-day grace period, PII anonymisation across auth and backend services, admin visibility, and audit logging. - User can request deletion from profile, cancel via global banner - 30-day grace period before automated anonymisation - Backend worker job processes due requests: soft-deletes ownership, expires credits/intents, anonymises username/avatar, removes org memberships, revokes API keys - Admin panel for viewing requests, filtering by status, adding notes - Audit log tracks all anonymisation actions for compliance - All timestamp columns use timestamptz for correct timezone handling Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
✅ Deploy Preview for auto-drive-storage ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
- markDeletionAsProcessing returns null on 404/409 instead of throwing, so the race-safety skip branch is reachable and competing workers don't incorrectly mark requests as failed - getUserFromPublicId failure now propagates instead of being silently swallowed, preventing incomplete anonymisation from being marked as completed Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Member
Author
|
bugbot run |
- markAsCompleted requires fromStatus=Processing, preventing cancelled or failed requests from being erroneously marked completed - markAsFailed requires fromStatus=Processing for same reason - Move deletion job start after the somethingActive guard so the "no services active" exit path remains reachable Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Member
Author
|
bugbot run |
Describes the deletion lifecycle, grace period, anonymisation steps, DSN data persistence, and audit logging for admin context. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements #626 — GDPR/CCPA-compliant account deletion with a 30-day grace period.
deletion_audit_logfor compliancetimestamptzto avoid UTC offset driftTest plan
yarn auth test— 27 passedyarn backend test— 351 passed (1 pre-existing S3 integration failure)yarn lint— clean across all services🤖 Generated with Claude Code