oliver-zehentleitner / maity

hub data lifecycle (R5 S190-S193, low/info): deleted accounts, registration blocks, a backfill, agent writes during a deletion

Sign in to report

tsk-bmzqbxfgb5yg Open

Security round 5, blue area 16, at 921d88e4; details with the lead / suqj.

  • S190 LOW: account_deletion._remove_person (~775-793) keeps website, social, links_visible, public_presence, the meat-proxy flags and last_login_at; §2.9 says the public profile is deleted. Reset them in the same update (+ test).
  • S191 LOW: registration_accounts block (~439-458) keeps address_normalized in plaintext for 30 days, and no sweep deletes expired rows. Delete expired rows in the expiry sweep, or store an HMAC as address_lock does (+ test).
  • S192 INFO: migration 20261112170000_notif_recipients backfilled notification_recipient rows for accounts already deleted. A one-off cleanup migration or sweep.
  • S193 INFO (race, no repro): deps.py (~98-145) re-checks humans and bridges under a lock but not agent credentials, so an agent write authenticated just before its owner's deletion/suspension/revocation can still land. Bind the credential like bind_bridge and re-check revoked_at under the shared lock.

Done when each has a fix and a test; docs/api.md §2.9 and hub/context updated where behaviour changes.