Skip to content
mentoor

Topic 4 of 6 · 5 min read

Pre-launch safety checks for a built MVP

Goal: Run a pre-launch checklist on an AI-built app and name the gaps that would expose user data or money.

Before real people use an AI-built app, check six things yourself: who can log in, who can see whose data, whether any secret key is exposed, how payments are handled, whether there are backups, and what you promise about privacy. A demo that works is not a product that is safe.

Check yourself · 1 of 3

What is the clearest test that one user cannot read another user's data?

Choose one answer

Why it matters

AI builders optimise for something that runs. They do not reliably think about an attacker, a curious user or a deleted database. The usual failures are plain: one customer able to read another customer's records, a secret key sitting in the page code, or no way to recover after a mistake. The OWASP Top 10 lists broken access control and similar failures among the most common web security risks.

The checklist

  1. Logins. Does sign-up work? Is there password reset? Can you reach private pages while logged out? Paste a private page's address into a private window.
  2. Per-user data access. Create two test accounts. Log in as the first, add data, then log in as the second. Can the second see it? Can changing a number in the page address show someone else's record? If the app uses Supabase, check that Row Level Security is turned on and has rules; a table without them can be readable by anyone who has the public key.
  3. Exposed keys. Public keys that are meant to be public are fine. Secret keys (payment secret, AI provider key, database admin key) must never appear in front-end code or in the shared project. Ask the builder where each key lives.
  4. Payments. Use a hosted checkout from a provider such as Stripe. Never let the app handle card numbers itself. Test a failed payment, a refund and a cancelled subscription.
  5. Backups and recovery. Is the database backed up? Have you restored one? Can you undo a bad deletion?
  6. Privacy basics. Say what you collect and why. Have a privacy page, a way for people to ask for their data to be deleted, and do not collect what you do not need.

Use AI as a second pair of eyes

Ask a different assistant to review the app's security setup and list risks. Treat the answer as a list of things to check, not a certificate. It can miss problems and invent others.

Before and after

Before: "It works, share the link."

After: "Two-account test passed, secret keys moved out of the code, payments through hosted checkout, backup restore tried once, privacy page live. Then share the link with 10 people."

What goes wrong

  • Testing only as the owner account.
  • Believing the builder when it says the app is secure.
  • Launching to many users at once instead of a few.

Examples

The two-account test

Create user A and user B. As A, save a note. Log in as B and open the notes page, then try A's note address by hand. If B sees A's note, per-user access is broken. Fix this before any launch.

A key in the wrong place

You search the app's page code for the text "sk_live" and find a payment secret key. Anyone who opens the page can copy it. Replace the key, move the payment call to a server function, and ask the provider to revoke the exposed key.

Key points

  • The six checks are logins, per-user data access, exposed keys, payments, backups and privacy.
  • Test with two accounts: one user must never see another user's records.
  • Secret keys must not appear in front-end code or in a shared project.
  • Use a payment provider's hosted checkout, and test failure, refund and cancellation.
  • An AI review of your app is a list of things to check, not proof of safety.

Common mistakes

  • Testing only with the owner's own account.
  • Trusting "the app is secure" from the same AI that built it.
  • Putting a secret API key into the front end for convenience.
  • Having a database but never testing a restore.

Check yourself · 2 of 3

You find a secret payment key in the app's page code. What is the right response?

Choose one answer

Check yourself · 3 of 3

Which payment setup is safest for a first launch?

Choose one answer

Practice items, not counted towards your mastery.

Start here

More for this topic