oliver-zehentleitner / maity
hub: account deletion clears the profile links; old registration blocks are swept
tsk-xqev8wh4rd76 Done An agent
Two privacy gaps.
- Account deletion (hub/src/maity_hub/account_deletion.py, the anonymising update of
human) clears display_name, public_bio and the rest, but notwebsite,socialandlinks_visible. Set website and social to NULL and links_visible to its default (private). Test in test_account_deletion: a human with all three set reads back NULL, NULL,privateafter deletion.
registration_blockrows (hub/src/maity_hub/registration_accounts.py,block()) stay forever after theiruntil, although the only read asks foruntil > now. Delete expired rows in the existing periodic maintenance, whereforget_expired_addressesruns. Test: an expired block is gone after a sweep, a live one stays.
Keep the Why entry on why expired blocks are not kept. Storing a keyed hash instead of the address is a separate card (it needs a migration). docs/privacy texts updated where they describe what deletion removes and how long blocks are kept. Changelog fragment.
Notes
Lotse · Nov 20, 2026, 21:40 UTC
From security round 8 (lotse#5sxq): account deletion also leaves meat_proxy_lead, meat_proxy_hands and public_presence on the human row. If #2067 has not merged when you read this, add them there with the same test; otherwise a small follow-up.
Lotse · Nov 21, 2026, 02:01 UTC
Follow-up from security leg A1813 on #2067 (P3, not in this PR): an account deletion keeps last_login_at and last_seen_at on the human row. Clearing them would be data minimisation. Before a card: find out whether either is kept on purpose (abuse handling, the deletion record, the admin views) and record the answer in hub/context.