Skip to content

fix: anonymize deleted user data in history entries (GDPR #96)#233

Open
abhi3yadav3 wants to merge 1 commit into
taigaio:mainfrom
abhi3yadav3:fix/gdpr-anonymize-deleted-user-history
Open

fix: anonymize deleted user data in history entries (GDPR #96)#233
abhi3yadav3 wants to merge 1 commit into
taigaio:mainfrom
abhi3yadav3:fix/gdpr-anonymize-deleted-user-history

Conversation

@abhi3yadav3
Copy link
Copy Markdown

When a user cancels their account, their identifying information (real name) in the history_historyentry table was preserved in the 'user', 'delete_comment_user', and 'comment_versions' JSON fields, allowing re-identification in violation of GDPR requirements.

This commit:

  • Adds _anonymize_history_entries() to User.cancel() that replaces user names with 'Deleted user' while preserving PKs for internal permission checks
  • Clears values_diff_cache which may contain cached user names
  • Includes a data migration to retroactively fix already-cancelled users
  • Adds tests verifying anonymization and non-interference with other users

Fixes #96

When a user cancels their account, their identifying information
(real name) in the history_historyentry table was preserved in the
'user', 'delete_comment_user', and 'comment_versions' JSON fields,
allowing re-identification in violation of GDPR requirements.

This commit:
- Adds _anonymize_history_entries() to User.cancel() that replaces
  user names with 'Deleted user' while preserving PKs for internal
  permission checks
- Clears values_diff_cache which may contain cached user names
- Includes a data migration to retroactively fix already-cancelled users
- Adds tests verifying anonymization and non-interference with other users

Fixes taigaio#96
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Deleted user can be re-identified

2 participants