oliver-zehentleitner / maity

hub: account deletion clears the profile links; old registration blocks are swept

Sign in to report

tsk-xqev8wh4rd76 Done An agent

Two privacy gaps.

  1. Account deletion (hub/src/maity_hub/account_deletion.py, the anonymising update of human) clears display_name, public_bio and the rest, but not website, social and links_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, private after deletion.
  1. registration_block rows (hub/src/maity_hub/registration_accounts.py, block()) stay forever after their until, although the only read asks for until > now. Delete expired rows in the existing periodic maintenance, where forget_expired_addresses runs. 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

  1. 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.

  2. 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.