mirror of
https://github.com/warmbly/warmbly.git
synced 2026-08-19 00:01:14 +00:00
ac3c11bf9a
The send pipeline (publisher subject/body encryption, the S3 emsg blob, and the worker-side decrypt) now keys off models.SendEmail.OrgID instead of UserID. EmailMessage loses its UserID field entirely: emailSender.Send derives the cipher identity from the email account's OrganizationID and refuses to send for an account without one. This also fixes two latent bugs. Emails sent through user_email_task never set UserID, so they were silently encrypted under the zero-UUID platform key. campaign_task's discarded Encrypt() pair is replaced with an explicit DEK warm that fails fast when KMS is unavailable.