Security

Built to protect business purchasing data.

ExpenseMargin uses layered application, database, storage, and operational controls.

Tenant isolation

Organization data is protected with Supabase Row Level Security so authenticated users only access authorized workspaces.

Private invoice storage

Uploaded invoices are stored in a private Supabase Storage bucket and are not published as public assets.

Server-side secrets

Service-role, OpenAI, Stripe, Resend, and cron credentials are used only in server-side runtime paths.

Auditable activity

Sensitive product, billing, settings, invoice, and data-export events are recorded in tenant-scoped audit history.

Secure transport

Production traffic is served over HTTPS with HSTS, frame protection, content-type protection, and a restrictive referrer policy.

Controlled AI processing

AI is used for invoice understanding; financial comparisons and margin-impact calculations remain deterministic application logic.

Security reporting: Report suspected vulnerabilities through the official ExpenseMargin contact channel published with the production domain. Do not include passwords, API keys, or sensitive invoice data in an initial report.