oliver-zehentleitner / maity

hub: notification subjects defanged; invitations don't delay security mail

Sign in to report

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:

  1. Notification mail subjects (notifications/mailer.py) defang the parts taken from user text, as invitation_mail.py already does (§18.5).
  2. Invitations get a mail budget of their own, separate from the security budget, or genuine security alerts get priority in the outbox. Either way, invitations can't delay sign-in and second-factor mail.
  3. Tests, docs (admin settings if a budget is added), and a changelog entry under Security.

Notes

  1. 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.

  2. 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.