Gmail OAuth refresh tokens and SMTP passwords are encrypted at rest with AES-256-GCM using a server-only encryption key. Client queries never select those columns, and SMTP passwords are not returned after they are saved.
Application access is limited to one administrator identified by ALLOWED_USER_ID. Other Supabase users are signed out and denied.
Row-level security in Supabase isolates workspaces to their owners. Cron endpoints require a shared secret header.
Unsubscribe links use hashed tokens; plaintext tokens are only included in outbound email content, not stored in the database.