feat: ddev anonymize-db removes personal data from production dumps
Runs automatically after every `ddev import-db`. Drops all zzz_deleted_ tables (renamed in production but still holding their data, e.g. the retired address check and form answers), replaces names and emails of backend and frontend users, sets every password to the local dev password "password" and clears reset tokens and MFA secrets. Sessions, record locks, CSP reports and logs are emptied (IP addresses, user agents). Usernames stay, so everybody logs in locally as their own user. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
9265e0d1c1
commit
b428ce9086
3 files changed
+67
No files matched your search
@@ -313,3 +313,7 @@ corepack_enable: false
|
||||
#hooks:
|
||||
# post-start:
|
||||
# - exec: composer install -d /var/www/html
|
||||
|
||||
hooks:
|
||||
post-import-db:
|
||||
- exec: .ddev/commands/web/anonymize-db
|
||||
Reference in new issue
Block a user