Sanitize Helpdesk mail settings for all projects

This commit is contained in:
Jason Thistlethwaite
2026-04-25 01:26:24 +00:00
parent f109fdcb91
commit 3c1d03bd7a
5 changed files with 36 additions and 15 deletions
+21
View File
@@ -32,6 +32,27 @@ environment. Before risky edits, archive the current plugin directories in
- Run `validate_helpdesk_outbox_worker.py` after outbox or worker changes,
then choose the external index target.
## 2026-04-25 - Test Helpdesk Credential Sanitization
- Touched areas:
- Test instance post-import tooling
- Post-import validation
- Purpose:
- Ensure production database imports cannot leave real Helpdesk POP3/SMTP
credentials on projects where Helpdesk is disabled but settings rows still
exist.
- Behavior changed:
- `reset_helpdesk_mail_settings.py` now rewrites Helpdesk mail settings for
every active project, not only projects with `contacts_helpdesk` enabled.
- `validate_test_instance.py` checks every active project for Mailpit
Helpdesk settings.
- LAN test result:
- `./reset_helpdesk_mail_settings.py --dry-run` matched 52 active projects.
- `./reset_helpdesk_mail_settings.py` updated 1,092 setting rows across 52
active projects.
- `./validate_test_instance.py` passed and reported 52 active projects with
matching Mailpit Helpdesk settings.
## 2026-04-25 - Outbox Worker Processing Policy
- Touched areas:
+4 -2
View File
@@ -69,8 +69,10 @@ Apply:
./reset_helpdesk_mail_settings.py
```
This rewrites all active `contacts_helpdesk` projects to use Mailpit for POP3
and SMTP. Passwords are written but not printed.
This rewrites all active projects to use Mailpit for Helpdesk POP3 and SMTP,
even if the Helpdesk module is currently disabled for a project. That prevents
imported real mail credentials from being used accidentally in the test
instance. Passwords are written but not printed.
## 4. Restart Passenger