Thresh Lab · How we build

Secure: the keys your app carries

A secret is a password that your app uses to sign in to another service. Builders also call it a key, a token or a credential.

“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

Your app

Signs in to each service

Some keys are public by design. The secret ones are the danger, because a secret key works for anyone who holds it.

Select a service to see what its key opens, and what a stranger could do with it.

2 · Understand it: five rules

None of the problems in our records came from a clever attack. Each time, a key was in a place where the wrong person could see it, or in a place we forgot. Each rule removes one of those places.

If a key leaks

Make a new key. Update every copy. Check the app works on the new key. Cancel the old key last.

What we do not claim

No system is perfectly secure. We do not promise that a leak cannot happen. We record what we learn when something goes wrong, and we change these rules to match.