Secure: your customers’ data
Your customers trust you with their information. This page shows how the app keeps each customer’s data apart from everyone else’s, and how a customer can ask you to delete it.
“The kit” on this page means The Thresh Lab System: the rules, written procedures and automatic checks your builder works from.
Start with the picture. Open a rule to see what taught us. Open the builder check only if you want proof.
Three levels: 1 · See it — 2 · Understand it — 3 · Prove it (inside each rule)
1 · See it: what happens when a customer opens the app
Select a step.
The kit requires two locks: the app asks only for this customer’s data, and the database has its own access rules. Your builder adds both. The kit’s rules say how, and its checks fail a new table without its lock. Until you move to a paid code-host plan, a failed check warns your builder; it does not stop the change on its own.
Customer signs in: The customer signs in. The sign-in service gives the app a session: proof of who signed in.
The server decides who: The kit’s rules require the app to work out which customer this is on its own server, from the session. It must never trust a customer number sent from the browser, which anyone could change.
Only their data: Every time the app reads or writes customer data, it asks only for this customer’s records. The kit requires a test for each part of the app proving one customer cannot reach another’s, and the optional automatic review flags a missing one.
The database locks too: The kit requires access rules on every customer table, added in the same change as the table, with a test that they work. Then someone holding only the publishable key (the key meant to be seen) cannot read customer data. Your builder writes the rules; the kit’s check fails any new table without its lock.
Listed and deletable: The kit tells you to keep a list of every piece of personal data you hold, and to set up a watched address where a customer can ask you to delete theirs. You set both up.
2 · Understand it: five rules
Each rule below closes a gap we hit in our own products, or is a precaution and says so.
The rule
Every request for customer data is limited to the customer’s own account, and the server decides who that is from the session, never from anything the browser sent. Every part of the app that handles customer data has a test proving one customer cannot reach another’s. Your builder writes these tests; the kit requires them.
What taught us
This one is a precaution. Trusting a customer number from the browser is a one-line way to let anyone read anyone’s data, and it is invisible until someone tries.
3 · Prove it — ask your builder
Does every part of the app that handles customer data have a test proving one customer cannot reach another’s?
Correct answer: Yes.
How to check: Ask your builder to show you that test for the most recent part of the app that handles customer data.
The rule
When the database gets a new table, its access rules are added in the same change, and a test proves they work: someone holding only the publishable key cannot read the customer table. The kit’s database-safety check fails any new table whose lock is not on and flags any change to an existing access rule. The kit’s setup steps also lock the table that records database changes.
What taught us
In August 2026, a rebuild plan for one of our products recorded that the tool that changes the database’s shape does not set its access rules, so between the two steps every table could be read with the publishable key. Its acceptance test became: the publishable key cannot read the user table.
3 · Prove it — ask your builder
Can someone holding only the publishable key read the customer table?
Correct answer: No.
How to check: Ask your builder for the result of the last access-rule test after a database change.
The rule
If the app has a shortcut way to sign in for testing, it works only on practice copies, never on the live site, and at least two separate signals decide which copy the app is running as.
What taught us
In April 2026, the check that decides which copy the app is running as relied on one signal, and it guessed wrong, blocking test sign-in where it was needed. The same mistake the other way would open a back door on the live site.
3 · Prove it — ask your builder
Does any test-only way to sign in work on the live site?
Correct answer: No.
How to check: If your app has a test-only sign-in, ask your builder to show the two signals it checks, and to try it on the live site. It must be refused.
The rule
Keep one list of every piece of personal data you hold and every promise your privacy page makes, each marked true or not yet true. Backups that hold customer data never go into the code repository.
What taught us
In August 2026, building this list for one of our products forced three corrections: the list of outside services on the privacy page left out the AI service that handles the most customer content, it named an email service the app did not use, and two data fields could not be saved at all.
3 · Prove it — ask your builder
Is every promise on your privacy page on the list, marked true or not yet true?
Correct answer: Yes.
How to check: Ask your builder to show you the list next to your privacy page.
The rule
Before you need it, set up a watched address, a named person who answers deletion requests, and a working way to do it by hand. Deletion is all-or-nothing: if any part fails, it says so loudly.
What taught us
In August 2026, one of our products sent mail from a no-reply address, so no customer could write in to ask for deletion. In April 2026, an account deletion removed the app’s data, but deleting the sign-in account failed and was only logged, so the person running it saw success.
3 · Prove it — ask your builder
Can a customer write to a watched address and have their data deleted?
Correct answer: Yes.
How to check: From a test account, send a deletion request to your support address. Confirm who answers it, and that the account and its data are gone.
What we do not claim
No system is perfectly secure, and we do not promise one. These rules are requirements your builder follows. The kit does not write the customer-separation tests, the database access rules, or the personal-data list for you. Its check proves that every new table made through a database-change file has its lock on, not that the rules inside it are right; that test is your builder’s. No required check enforces the separation tests; the optional automatic review only comments. It does not yet include two-step sign-in, a scheduled security review of the code, or scanning of outside code for known weaknesses. Data export and automatic deletion of old data are usually not built at first: decide early which you can honestly promise.