Control mapping for MailAgent hosted SaaS. Not a certification — engineering checklist for enterprise sales.
Public summary: security.html · enterprise.html
| Control | MailAgent |
|---|
| API authentication | Bearer API keys, scoped keys (labelPrefix, readOnly) |
| MCP OAuth | client_credentials JWT (mat_) + optional Auth0 OIDC |
| Team isolation | Team-scoped keys, domains, audit, inboxes |
| Secrets | Cloudflare Worker secrets, no keys in client bundles |
| Tenant Resend keys | AES-256-GCM at rest (team-secrets.ts); per-team webhooks |
| Control | MailAgent |
|---|
| Deploy gate | test:prod:gate on push; full test:prod on tag v* |
| Audit log | GET /v1/audit, retention cron (AUDIT_RETENTION_DAYS) |
| Rate limits | Per-key KV-sampled limits; plan tiers in GET /v1/me |
| Control | MailAgent |
|---|
| Source | MIT repo, PR + CI |
| Migrations | migrations/*.sql, optional db:migrate on deploy |
| Versioning | npm @mailagent/*, API hub version |
| Control | MailAgent |
|---|
| Infra | Cloudflare Workers (multi-region edge) |
| Queue DLQ | mailagent-email-dlq |
| Self-host | Documented in INTEGRATE.md |