Skip to content
Planet KD

Before You Share Your AI-Built App's Link, Run These 15 Checks

27 Nov 20266 min read

Six checks before strangers see your app.

Researchers scanned 159,041 Lovable projects and found passport numbers anyone could read.

The moment you share a link, your app stops being a project and starts being a target. Bots scan new domains within hours. They don't care that it's a side project or that you built it in a weekend.

AI tools are very good at making things work. They're less careful about making things safe, because "safe" rarely shows up in a demo. So the app looks finished, and nobody checks who can read what until a stranger does.

By the end of this piece you'll have fifteen two-minute tests, the six to run first if you only have twenty minutes, and a prompt to paste into your AI tool for every check you can't do yourself.

I wrote separately about checking that an AI-built site is patched. This is the wider list: the fifteen things I'd check before sharing any AI-built app with people I don't know.

You don't need to read code for most of them. Each check has a test you can run in about two minutes. Where a check needs someone to look inside the code, there's a prompt you can paste into Claude Code, Cursor, Lovable or whatever built the app.

Start with these six

If you only have twenty minutes, do 1 to 3, 6, 7 and 9. Those are the ones that end with leaked keys or one user reading another's data, and they're the mistakes AI tools make most often. Do the other nine before you share the link more widely.

Keys and secrets

1. No secret keys sit in your code. API keys belong in environment variables, not in the files that get pushed to GitHub. Test: ask your AI tool: "Search the whole project for API keys, passwords or tokens written directly in code files, including anything starting with sk_, sk- or Bearer. List each one with its file."

2. Your .env files are never committed. Open .gitignore and look for .env and .env*.local. Then open your repository on GitHub and make sure no file starting with .env is there.

3. No secret is marked public. In Next.js, anything starting with NEXT_PUBLIC_ ends up in the browser, readable by every visitor. Vite does the same with VITE_. Payment publishable keys are fine there. Database passwords, secret keys and service-role keys are not. Test: open your .env file and read every line that starts with NEXT_PUBLIC_ or VITE_. Ask yourself: would I paste this on a billboard?

4. GitHub blocks secrets before they're pushed. Turn on secret scanning and push protection in your repository's security settings. It stops a commit that contains a known key format before it ever reaches GitHub. It's free on public repositories; private ones need GitHub's paid security add-on.

Sign-in

5. Sign-in works on the real domain. During building, the auth provider (Supabase, Clerk, Firebase) only knows localhost. Add your production URL to its list of allowed redirect URLs. I've lost hours to this one, more than once. Test: sign up and sign in on the live site, in a private window, with an email you haven't used before.

6. Private pages stay private when you're logged out. Copy the URL of a page that should need a login, open a private window and paste it in. You should land on the sign-in page, not the content. Ask your AI tool to confirm the check happens on the server, not just in the browser.

7. One user can't see another user's data. This is the most common serious bug in AI-built apps. Test: make two accounts. With account A, open something that belongs to A, like an order or a project, and note the ID in the URL. Sign in as B and paste that URL. If B sees A's data, stop and fix it before launch.

8. Sign-in can't be guessed at forever. Type a wrong password ten times in a row. Something should slow you down or lock you out. Hosted providers usually do this by default; custom login code usually doesn't.

Data

9. Your database rows are protected. If you use Supabase, every table with user data needs row-level security turned on. Without it, anyone holding your public key can read the table. Open the Security Advisor in your Supabase dashboard; it lists the tables that are exposed.

10. Testing and real data are separate. Your production app should use its own database and its own keys. If your laptop and the live site point at the same database, one bad test can wipe real users' data. Test: compare the database URL in your local .env with the one in your hosting dashboard. They should be different.

11. Every form is checked on the server. Rules in the browser ("email required", "max 200 characters") are for users. Attackers skip the browser. Prompt: "For every API route or server action that accepts data, show me where the input is validated on the server. List any that use the data without validating it."

The live site

12. The framework is patched. Find your framework version (in Next.js, the "next" line in package.json) and check it against the latest security release. My five-step patch check walks through it.

13. HTTPS is enforced. Type your address with http:// at the front. It should jump to https:// by itself. Vercel and Netlify do this for you; other hosts may not.

14. Errors don't show your insides. Break something on purpose on the live site: a wrong URL, an empty form. You should see a plain error page, never a wall of code, file paths or database messages.

15. You'll hear about problems before your users do. Connect an error-tracking tool such as Sentry, or at least turn on your host's error alerts. Without one, the first sign of a broken checkout is an angry email.

Checked, not perfect

None of this needs to be perfect on day one. It needs to be checked, by you, before a stranger finds out for you.

Web SecurityAI DevelopmentVibe CodingBuild It RightStartups

More notes

All writing →