TRUST · DATA HANDLING
How CleanChange protects the record
Last updated August 30, 2026
CleanChange is designed around a simple boundary: a cleaning company’s commercial records should be visible only to its authorized workspace, while a client approval page should expose only the specific change it was created for.
Account and database controls
- Supabase Auth provides passwordless sign-in using short-lived, cookie-based sessions.
- Every business record carries an organization ID. PostgreSQL row-level security checks organization membership on reads and writes.
- Server-only Supabase secret credentials are reserved for billing webhooks and public approval decisions that cannot carry a user session.
- Private evidence files are stored under organization-scoped paths in a non-public bucket.
Approval links
- Approval tokens contain 256 bits of random data.
- Only a SHA-256 hash is stored in the database, so a database reader cannot recover the link.
- Links expire after 14 days and are replaced when regenerated.
- A conditional database update prevents two conflicting decisions from being recorded.
Billing controls
- Dodo Payments checkout and customer portal are hosted by Dodo; card details do not pass through CleanChange.
- Product IDs and prices are resolved on the server, not accepted from the browser.
- Webhook signatures are verified against the exact raw request body.
- Webhook IDs are stored for idempotency, and older subscription events cannot overwrite newer billing state.
- Checkout return pages never grant access; verified webhook state is authoritative.
Operational boundaries
The demo deployment uses fictional representative records and clearly labels non-persistent actions. Production should fail closed when required secrets are absent. Secrets belong in deployment environment settings and must never be committed to source control.
Report a concern
Please send a clear description, affected URL, reproduction steps, and impact to hello@cleanchange.app. Do not access or modify data that is not yours while investigating.