feat: GDPR-compliant PII export and deletion workflow#696
Open
shaidshark wants to merge 1 commit intorohitdash08:mainfrom
Open
feat: GDPR-compliant PII export and deletion workflow#696shaidshark wants to merge 1 commit intorohitdash08:mainfrom
shaidshark wants to merge 1 commit intorohitdash08:mainfrom
Conversation
- Add GDPR endpoints for data export and deletion - Export endpoint (GET /gdpr/export) returns ZIP with complete user data - Delete request endpoint (POST /gdpr/delete-request) starts 30-day grace period - Cancel deletion endpoint (DELETE /gdpr/delete-request) cancels pending requests - Immediate deletion endpoint (DELETE /gdpr/delete) with confirmation requirement - Status endpoint (GET /gdpr/status) shows pending deletion status - Add DeletionRequest model for grace period tracking - Add audit logging for all GDPR actions - Update schema.sql with deletion_requests and audit_logs tables - Make Redis initialization lazy for test compatibility - Add comprehensive test suite with fakeredis Fixes rohitdash08#76
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
This PR implements a complete GDPR-compliant PII export and deletion workflow for FinMind, addressing issue #76.
Features Implemented
Export Endpoint (GET /gdpr/export)
Deletion Request Workflow
Immediate Deletion (DELETE /gdpr/delete)
Database Changes
Technical Improvements
Acceptance Criteria
Fixes #76