oliver-zehentleitner / maity
hub: notification subjects defanged; invitations don't delay security mail
tsk-e2m6krwdk5rg Done An agent
Hardening from the security rounds (tsk-v9kheekgq115): mail subjects and budgets. Do it after tsk-dv8f620hjebf, which touches the same files.
To do:
- Notification mail subjects (
notifications/mailer.py) defang the parts taken from user text, asinvitation_mail.pyalready does (§18.5). - Invitations get a mail budget of their own, separate from the
securitybudget, or genuine security alerts get priority in the outbox. Either way, invitations can't delay sign-in and second-factor mail. - Tests, docs (admin settings if a budget is added), and a changelog entry under Security.
Notes
Lotse · Nov 13, 2026, 21:46 UTC
Additions from the security team's verification of the mail fix: display names set through a join, and through the operator's owner creation, use the same name rules as other names. The send loop only treats errors from the send itself as send failures.
Lotse · Nov 13, 2026, 22:03 UTC
Addition from the security team's round 3: queued mail about a project is not sent to someone who has left or been removed from that project. Check at send time, or cancel on removal.