Security and compliance · 25 August 2026 · 8 min read
Is your AI-built app safe to put in front of a client?
Yes, if it runs on invented data, holds no live keys, reaches no real system and goes to each person on a link you can switch off. Here are the checks to make before you send it, and what a regulated client will ask on top.
- Security and compliance
- Security
- Secrets
- Prototypes and MVPs
- For founders
- For CTOs and tech leads
In this article
Yes, if it runs on invented data, holds no live keys, reaches no real system, and each person gets a link you can switch off. An app built with Claude, Lovable, Bolt or a coding agent is code like any other: if a real key, a real customer record or a live database is within its reach, your client can reach it too. Take those out, check it works for someone who is not you, and tell the client what you record. Then it is safe to send.
The risk is rarely the client. It is the link travelling further than you meant, or the app carrying more than you knew. This article is the checklist I would use, in the order to work through it, then how AI-built apps usually leak, what a regulated client will ask on top, and what to tell the person you send it to.
The checklist
Thirteen checks. The first five are about what is inside the app, the next two about how it behaves, and the rest about who gets it and what they are told.
| # | Check | Why it matters | How to check |
|---|---|---|---|
| 1 | No real personal or customer data | Every viewer gets whatever is in it | Read the seed files, samples and any uploaded files |
| 2 | No live keys in the code, the build or the history | A key in a browser build, or an old commit, is a key published | Search for keys; read every .env; scan the repository’s history |
| 3 | No live backend | A copied app can still talk to its real database | List every outside address the app calls |
| 4 | Access rules on any database it must use | Without them, a table is open to anyone with the address | The database’s own security settings |
| 5 | No real data sent to an AI model | A live model call sends whatever it is given to a third party | Find every model call; replace it with sample answers |
| 6 | It works for someone who is not you | Your own sign-in hides gaps | A private window, signed out of everything |
| 7 | It works on a phone | Many people open a link on their phone first | Open it on yours |
| 8 | One link per person, which you can switch off | A public address travels | Count who it is for, and check you can revoke each link |
| 9 | Nothing in it you would mind being forwarded | A good demo gets passed on | Read it as a competitor would |
| 10 | No client names or logos without permission | It tells strangers who you are pitching | Read every screen and every sample record |
| 11 | They know what you record | If you track visits, that is personal data | Read the message you will send it with |
| 12 | Someone else ran the checks | The builder’s own review shares the builder’s blind spots | Hand this list to a colleague |
| 13 | You walked through it as they will | They will see it without you there | Click through from the first screen to the last |
What is inside it
No real personal or customer data. Every viewer gets a copy of what the demo holds, so one real name in it is a real name sent to every client. That includes the spreadsheet you uploaded to the builder while you were trying things. Use invented records shaped like the real ones; mock data when the real data is regulated shows how, and why a “scrubbed” copy of production is not the same thing.
No live keys. Search the project for anything that looks like a key, and read every
.envfile. Then check the history: a key committed once and deleted later is still in the repository. A key the demo seems to need is a sample the demo should have instead.No live backend. An app copied out of a builder can still be wired to the database it was built against. Ask the agent that built it to list every outside address the app calls, then check that list yourself by searching the code. The right answer for a demo is none.
Access rules on any database it must use. A demo should not touch one. If a public version of your app does, turn on its access rules first. Supabase’s documentation says a table in an exposed schema without row-level security is readable and writable by any role with a grant on it.
No real data sent to an AI model. If the app calls a model, everything in the prompt goes to the model’s provider. In a demo, play back recorded answers instead. Demoing an AI feature without live data or a live key covers how.
How it behaves
It works for someone who is not you. Open it in a private window, signed out of everything. Things that only worked because you were signed in to the builder will show up here.
It works on a phone. Open it on yours and fix what breaks. A broken layout is a poor first impression, wherever it is opened.
Who gets it, and what they are told
One link per person, which you can switch off. However you host it, give each person their own address, ideally one that expires, so you can turn one off without touching the others. A single public address is fine for a launch page and wrong for a client demo.
Nothing in it you would mind being forwarded. Assume it will be. Your pricing for another client, an internal note in a sample record, a screen you meant to hide: read it as someone you did not send it to.
No client names or logos without permission. In a demo sent privately to that client, their branding can help, with their agreement. Anywhere else, it tells strangers who you are working with.
They know what you record. If your hosting tracks who opened the link and what they did, that is personal data about them under UK GDPR. Tell them, in the message the link arrives in.
Someone else ran the checks. The person or agent that built the app is the worst placed to find what it missed. Edward’s rule from verifying code written by coding agents applies here: the reviewer is never the author.
You walked through it as they will. From the first screen to the last, in the order they will see it, without explaining it to yourself as you go.
How do AI-built apps usually leak?
Three ways, mostly. A key ends up in the code sent to the browser, where anyone can read it. A database is left without its access rules, so anyone with its address can read it. Or a copied app still talks to its live backend, so the demo reaches real records.
A key in the front end. Many AI builders produce Vite apps. Vite’s documentation says variables prefixed
VITE_are bundled into the code sent to the browser, and should not hold API keys. A key named that way is published with the app.A database without its rules. See check 4. Supabase also says never to use a secret key in the browser, and that its service role, which has full access, bypasses those rules.
A live backend still connected. The demo looks like a copy and behaves like the real thing, because it is still talking to the real thing.
None of this is a fault in the tools; each of them documents what to avoid. The checks are how you make sure you did. If you also use AI tools to write the code, Dylan’s piece on letting AI into your systems without leaking secrets covers the guardrails for the agent itself.
I sent a real key by mistake. What now?
Rotate it now, at the service that issued it, and treat the old one as published. Deleting the file or the commit does not undo it: anyone who opened the link, and any copy of the repository, may still have it. Then check the service’s logs for use you do not recognise, and work out how it got there so it cannot happen the same way twice.
What will a regulated client ask on top?
Where their data would go, if this ever became real. A bank, an insurer or a healthcare provider looks at a demo with the eventual product in mind, and their security or compliance team may well ask before the demo is over. Have short, written answers ready.
Is any of our data in this? The answer should be no, and you should be able to say how the sample data was made.
Which AI provider would see our data, and do they keep it? If you do not know yet, say so, and say how you will decide.
Where would the data live? Which provider and which country.
Who would be able to see it, and how is that enforced? Rules a system enforces, not rules people are asked to follow.
Would you do an impact assessment? For processing likely to result in a high risk to people, the ICO expects a data protection impact assessment before it starts. Saying you know that, early, tells them a lot.
If those questions would stall you, that is useful to know before the meeting rather than in it. A Diagnosis is one way to get the answers written down.
What should you tell the client?
Who you are, that the demo runs on invented data, what you record about their visit if anything, and how to reach you about it. Keep it short and put it in the message the link arrives in, not in a page they have to go and find.
A line you could adapt:
This link is just for you. It opens a demo of the product on invented data, so try anything; nothing you do reaches a real system. It records which screens you look at, which helps me follow up. To ask about that, reply to this email.
Leave out the third sentence if you record nothing. If you do record visits, your hosting provider’s privacy policy should say what it collects, and you should have read it.
What does a checklist not cover?
Whether the product is any good, and whether it is safe for real customers. These checks make a demo safe to send. A product with real users and real data needs real sign-in, backups, monitoring and the regulated work that goes with them. Making an AI-built prototype real covers that step.
Sources
Supabase, Row Level Security: tables in an exposed schema need row-level security; secret keys stay out of the browser, and the service role bypasses row-level security.
Vite, Env variables and modes:
VITE_-prefixed variables are bundled into client code and should not hold API keys.Information Commissioner’s Office, When do we need to do a DPIA?: an assessment is required, before processing, where processing is likely to result in a high risk.
Related articles
Mock data for a demo when the real data is regulated
Don’t copy production and scrub it. Invent records from the shape of the real data, make them convincing, and keep the demo unable to reach any real system. Pseudonymised data is still personal data, so a scrubbed copy is still regulated.
For CTOs and tech leads, Engineers
8 July 20268 min read
How do you demo an AI feature without live data or a live key?
Record good answers to the questions your demo will be asked, and have the app play them back instead of calling the model, on invented data. Keep the live model for a session you run yourself, and make demo mode something the real product refuses to start in.
For CTOs and tech leads, Product and innovation leads
9 November 20268 min read
How do you let AI into your systems without leaking secrets?
Assume the AI can see everything you give it, and give it nothing it doesn’t need. Then back that up with rules your tools enforce, so you aren’t relying on the AI, or a busy engineer, to behave.
For CTOs and tech leads, Founders
12 August 20263 min read
Read something that sounds like your problem?
A free 15-minute intro with our CEO. Bring the article, and he’ll tell you which service fits, if any. If a spreadsheet and two rules would do the job, we’ll say so.