Comment

Comment by drspacemonkey

The more difficult part is deletion from backups, which is also a requirement.

IMO, the best solution is per-row encryption with the keys stored in a second database. This second database can still be backed up, with backups that have a maximum lifespan, eg: 30 days. When a user deletes their account, their decryption key is deleted, and is unrecoverable after the backup max life.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton