feat(auth): add GDPR-ready PII export and account deletion workflows#347
Open
yuliuyi717-ux wants to merge 1 commit intorohitdash08:mainfrom
Open
feat(auth): add GDPR-ready PII export and account deletion workflows#347yuliuyi717-ux wants to merge 1 commit intorohitdash08:mainfrom
yuliuyi717-ux wants to merge 1 commit intorohitdash08:mainfrom
Conversation
Author
|
Hi maintainers, just a friendly follow-up on this PR for GDPR-ready PII export and account deletion. When you have time, could you please take a look and share any feedback? Happy to make changes quickly. |
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 Issue #76 by adding authenticated self-service data export and irreversible account deletion flows, with audit logging and backend test coverage.
What changed
GET /auth/export-dataandGET /auth/exportfor authenticated PII export.DELETE /auth/delete-accountandDELETE /auth/deletefor irreversible account deletion.confirm=true,confirmed=true,confirmation="DELETE", or queryconfirm.USER_DATA_EXPORTEDandUSER_ACCOUNT_DELETED.user_id -> NULL), and deletes the user account.packages/backend/tests/test_auth.pyand added implementation report inAUTODEV_REPORT.md.Validation done
cd packages/backend && REDIS_URL=redis://localhost:6379/15 PYTHONPATH=. ../../.venv/bin/pytest tests/test_auth.py -q(5 passed)cd packages/backend && REDIS_URL=redis://localhost:6379/15 PYTHONPATH=. ../../.venv/bin/pytest tests -q(24 passed)./.venv/bin/flake8 packages/backend/app/routes/auth.py packages/backend/tests/test_auth.py(passed)Risks/notes