# Security summary

- Provider and signing secrets stay server-side in hosting configuration.
- D1 prepared statements, foreign keys, indexes and generated migrations.
- Admin sign-in uses platform-owned ChatGPT authentication plus a server-side email allowlist. Hosting dispatch is the trusted identity-header boundary. Direct Worker tests simulate dispatch with test-only headers.
- Accountless catalog, optional partner Bearer key, durable rate limiting and short-lived salted IP hashes. No consumer passwords or OAuth tokens.
- Same-origin checks for browser writes and incoming MCP Origin headers. Admin writes reject absent/foreign origins. JSON-only requests.
- HMAC-SHA256 purchase tokens expire after five minutes and reference stored offers. Redirect destinations cannot be supplied by callers. Merchant domains require review. No arbitrary retailer URL is fetched server-side. Only fixed provider hosts are contacted, with redirects rejected and seven-second timeouts.
- MIME, referrer, permissions, HSTS and CSP headers. CSP permits inline scripts/styles for framework hydration but no unsafe-eval, objects or cross-origin data connections. React escapes dynamic content; no raw HTML rendering.
- Consumer money uses integer cents. Network subcent commissions use integer millionths of USD, avoiding per-event rounding loss.
- Idempotent reconciliation key: provider + commissionId + revenueId + mode. Negative adjustments and older reports are handled. Reported commission is not treated as paid cash. Recorded payment receipts determine revenue.
- Live failures never silently become fictional data. Demo and live tables are distinguished by mode.
- Logs omit credentials. Obvious email and long number sequences are redacted from product queries, but this is not a general sensitive-data classifier.

## Remaining validation

This is not an independent penetration test. Credentialed Sovrn contracts, production dispatch authorization, marketplace compatibility, mobile visual QA and operational review remain launch gates. No OAuth compatibility claim is made. Live schema changes fail closed. Merchant programs and permitted affiliate use require operator review.
