| Identity and authentication | Email verification, optional TOTP MFA, org-level MFA enforcement, invite token validation | Credentials, verification state and MFA challenges are validated before sessions are issued. | Sign-up, sign-in and step-up flows. | Reduce takeover risk and unauthorized access. |
| Session and browser protection | Signed HttpOnly JWT cookie, SameSite controls, same-origin checks, CSRF double-submit token | Authenticated requests validate session state. Mutating requests require origin and CSRF checks. | Every authenticated and state-changing request. | Reduce token theft and cross-site request forgery. |
| API route protection | Central route guard, payload validation, rate limiting, workspace checks | Routes validate request structure and identity before business logic executes. | At API ingress. | Stop malformed or abusive traffic early. |
| Authorization | Workspace membership checks and RBAC permission controls | Roles and membership are resolved server-side before protected operations run. | Before reads and writes. | Ensure least-privilege access. |
| Database isolation | Workspace scoping, organization scoping, Supabase/Postgres RLS policies | Queries are tenant-scoped and reinforced at the database layer. | At query execution. | Protect cross-tenant boundaries. |
| Secrets and credentials | AES-256-GCM encryption, hashed tokens, controlled reveal flows | Secrets are encrypted at rest and only decrypted in trusted server paths. | Storage and retrieval events. | Protect sensitive integration material. |
| Webhook boundary | Provider signature checks, token gates, ingress rate limits, anti-replay nonce cache, optional IP allowlists, delivery persistence | Inbound callbacks validate signature or token before processing payloads. Request paths use dedicated rate limits, replay nonce checks on signed timestamped providers and optional source IP allowlists. | Immediately on webhook receipt and during delivery persistence. | Reject spoofed traffic and improve forensic traceability. |
| Observability | Audit records, delivery logs, alert pathways | Sensitive actions emit logs and operational signals. | During and after critical events. | Improve triage and recovery. |