● Security & privacy
Built to pass a security review.
Riti runs on SOC 2 compliant infrastructure. Every tenant gets its own keys, data, quotas and webhooks, and the database enforces the boundaries. This page lists what ships today and, separately, what is next.
Infrastructure
SOC 2 compliant infrastructure.
The API, database and object storage run on Railway, which holds a SOC 2 Type II report. Rendering runs through Google Cloud. Secrets are injected at start from a managed secrets store and never live in the code repository.
| Layer | Runs on | Notes |
|---|---|---|
| API and webhook workers | Railway | Deployed from source with health checks. Every instance enforces the same quotas. |
| Postgres | Railway | Private network only, with no public endpoint. Row-level security on every tenant table. |
| Object storage | Railway | Rendered looks, under a per-tenant, per-mode prefix. |
| Rendering | Google Cloud | Model calls go through Google Cloud, with a second provider behind a circuit breaker. |
| Secrets | Managed secrets store | Injected at process start. Error logs redact keys and tokens. |
Keys and auth
The browser never holds a secret.
Three credentials, each with one job. The browser holds a publishable key or a short-lived session token. Secret keys stay on your servers.
Locked to your origins
- Accepted only from an origin on your allowlist
- A request with no Origin or Referer is refused with
origin_required - A tenant with no origins fails closed
Minted per visitor
- Signed by your backend’s secret key, valid 1 to 60 minutes
- Optionally pinned to one origin
- Carries your opaque shopper reference
- Can be required for every caller
Server to server
- Stored as SHA-256 hashes and shown once
- Rolling a key keeps the old one valid for a 24-hour grace period
- Revoke at once from the console
Isolation
The database refuses rows that are not yours.
Tenant requests run every query as a non-owner database role with the tenant and mode set on the connection. Postgres row-level security then refuses other tenants’ rows, and the other mode’s rows, even if a filter is missing in the code.
- A test fails the build if any tenant table lacks a policy.
- Integration tests prove the policies against a real Postgres.
- Rendered looks are stored under
t/<tenant>/<live|test>/looks/. - Every shopper and usage row carries
livemode. Test data never reaches live reports or bills.
- probeanother tenant’s pk_ on this origin403
- probepk_ with no Origin header403
- probepk_test_ reading a live event404
- proberst_ token from allowed origin200
Abuse and cost
Your bill cannot run away.
Quotas are reserved before any provider is called, so caps hold across any number of API instances.
Atomic caps
Daily and period units are reserved with a conditional increment, and handed back only if the provider never ran.
Per tenant, per IP
Request limits are set per tenant. IP addresses are stored only as salted hashes.
Optional Turnstile
Turn on a bot check before renders for public pages that attract scripted traffic.
Automatic pause
A circuit breaker pauses a failing provider. Riti can also pause rendering platform-wide in one step.
Webhooks
Signed going out, careful where they go.
- Each request is signed with HMAC-SHA256 over a timestamp and the raw body.
- Endpoint signing secrets are encrypted at rest with AES-256-GCM.
- Endpoints must be public https URLs. Private, loopback, link-local, internal and IPv6 transition addresses are refused.
- The check runs on the resolved address, so DNS rebinding cannot slip past it.
- Every delivery has a hard deadline. Failures retry with backoff and can be redelivered from the console.
POST /hooks/riti HTTP/1.1
Host: shop.example.com
Content-Type: application/json
Riti-Signature: t=1792248000,v1=9b1f0c7e2a…
{ "id": "evt_…", "type": "conversion.attributed",
"created": 1792248000, "livemode": true, "data": { … } }
Console and SDK
Locked down at both ends.
The tenant console and the browser SDK are the two things your team and your shoppers touch. Both are hardened by default.
Invite-only accounts
- Passwords hashed with scrypt
- Session cookies stored as hashes
- CSRF and origin checks on every change
- Owner, developer and viewer roles
Integrity-checked builds
- Exact SDK versions never change once published
- Each build ships a manifest of SHA-384 integrity hashes
- Optional modules load with a hash fixed in the core build
Privacy
Careful with a shopper’s photo.
Shoppers never create an account with Riti. Your store stays the relationship owner, and Riti sends no email of its own.
| Data | How Riti handles it |
|---|---|
| Shopper photo | Sent with the render request and used for that render. A copy stays in the shopper’s browser for the session, so trying a second product costs a tap. A “forget my photos” control is always in reach. |
| Rendered looks | Stored under your tenant’s prefix and shown through an unguessable look-page link. |
| Email address | Collected only when the shopper saves a look, with an explicit consent box. It is passed to you in the look.saved webhook, and you send the email. |
| Shopper reference | Your own opaque id, if you choose to pass one in a session token. |
| IP address | Stored only as a salted hash, for rate limits and abuse checks. |
| Data-subject requests | Handled on request today. A self-serve export and delete API is on the roadmap. |
Roadmap
What is next.
None of these ship today. Ask us for timelines in a security review.
- SSO for the console (SAML and OIDC)roadmap
- Audit log of console and API changesroadmap
- Data-subject request API and per-tenant retentionroadmap
- Standard DPA templateroadmap
- Regional data residencyroadmap
Get test keys and a working demo in one call.
We set up a test tenant, wire it to one of your product pages, and walk your team through the console.