AES-256-GCM Secret Encryption
Stored Resend keys, SMTP/IMAP passwords, and AI provider API keys are encrypted server-side using AES-256-GCM with per-record random IVs and authentication tags.
Strict Auth & Row-Level Security
Every workspace route and private API validates the authenticated Supabase session server-side and isolates mailboxes, folders, drafts, and templates via RLS policies.
HTML Sanitization & Tracker Blocking
Inbound and template HTML are sanitized with a strict allowlist—stripping <script>, event handlers, and unsafe URI schemes while blocking 1x1 pixels and remote images by default.
Verified Webhooks & Security Headers
Resend inbound webhooks require cryptographic Svix HMAC signatures. All HTTP responses enforce X-Frame-Options: DENY, X-Content-Type-Options: nosniff, and strict referrer policies.