"RLS is enabled" is the most reassuring sentence in an AI-built app, and it answers the wrong question. It says a lock is fitted. It does not say who has been given a key.
Handover is the day responsibility for the app moves from you to the client, or stays with you under a maintenance plan. Either way, it is the last convenient moment to find out what the app exposes. The eight checks below are written for apps built with AI app builders such as Lovable or Bolt on a Supabase backend, where the browser talks to the database directly and the access rules in the database decide what a visitor can reach.
1. Keys in the shipped code
Everything in the JavaScript that an app sends to the browser can be read by anyone who opens the developer tools. In a project built with Vite, every environment variable whose name starts with VITE_ is compiled into that bundle, whatever its value is.
One Supabase key is meant to be there. The publishable key, called the anon key in older projects, identifies the app and is designed to be public. The other kind is not. A secret key, or its older form the service role key, bypasses every Row Level Security policy in the project, and the Supabase documentation on API keys says never to put one in a browser, a shipped application or source control.
Open the live site and search the loaded JavaScript files for the text sb_secret_ and for secret keys from payment, email and AI providers. Older Supabase keys are long strings that start with eyJ, and the public and the secret one look alike, so compare each one you find with the keys listed in the Supabase dashboard. If a secret key has shipped, removing it from the code is not enough. Rotate it, because the old bundle may already have been copied. Which keys can be in browser code lists the formats to search for and where each call belongs instead.
2. Row Level Security, tested with two users
Row Level Security has two parts. Switching it on for a table blocks all access to that table through the API with the public key. Policies then open access again, one rule at a time. An app cannot work without policies, so every working app has them, and the table counts as "RLS enabled" no matter what those policies allow.
Compare two policies on a table of orders, written in the style of the Supabase guide to Row Level Security:
create policy "Signed-in users can read orders"
on orders for select
to authenticated
using ( true );
create policy "Users can read their own orders"
on orders for select
to authenticated
using ( (select auth.uid()) = user_id );
With the first policy, every signed-in user can read every order in the table. With the second, each user reads only the rows that carry their own user ID. In both cases RLS is enabled. The first kind is easy to end up with, because it makes an error disappear and the app looks correct: the screen shows a user only their own orders, since the interface filters the list. The database would hand over the rest to anyone who asks it directly.
The only way to know is to test as a user. Create two test accounts. Sign in as the first and create a record. Sign in as the second and request that record straight from the API, not through the interface. Then repeat the request without signing in at all. If either request returns the row, the policy lets in the wrong people. Keep the two accounts after handover, so the same test can run again after every change. This is the test that the two-user access test in Sealgap automates, read-only. How to test whether one user can read another user's data has the exact requests.
3. Storage buckets
Supabase Storage has public and private buckets. In a public bucket, anyone who has the address of a file can fetch it, which is right for logos and wrong for invoices. Listing is a separate matter: whether a visitor can see the names of all files in a bucket depends on the read policies for stored objects, and a broad policy exposes the whole list.
For each bucket, write down whether it is public and whether it should be, then try to list its files without logging in. Files that belong to one user should sit in a private bucket and be served through signed URLs, which stop working after a set time.
4. Security headers
Security headers are instructions the server sends with each page to switch on protections in the browser. Check for six: Strict-Transport-Security, Content-Security-Policy, X-Content-Type-Options, X-Frame-Options or a frame-ancestors rule, Referrer-Policy and Permissions-Policy. The OWASP HTTP Headers Cheat Sheet gives a recommended value for each.
Headers are set in the hosting configuration, not in the code of the app, so they are easy to miss when the app is generated. A missing header is not a leak in itself. It is a layer of protection that is not there.
5. Certificate and domain
Check who owns the domain. It should be registered in the client's own account, with automatic renewal on and a payment card that will still be valid next year. Then check the certificate: when it expires, whether renewal is automatic, and who hears about it if renewal fails.
The certificate matters more once the site sends the Strict-Transport-Security header. From then on, browsers no longer let visitors click past a certificate error, so an expired certificate takes the app offline for everyone who has visited before.
6. Backups and who owns them
Find out which Supabase plan the project is on. According to the Supabase documentation on backups, projects on the paid plans are backed up automatically every day, and projects on the free plan are advised to export their data regularly. The same page notes that database backups do not include the files stored through the Storage API.
So ask three questions: is there a backup, does it cover the files, and has anyone tried to restore from it? Record who is responsible for each answer, and make sure the Supabase project sits in an organization the client owns.
7. Accounts and access
List every account the app depends on: the app builder workspace, Supabase, hosting, the domain registrar, the code repository, and the email and payment services. For each one, the client should be the owner, and you should be an invited member who can be removed.
Turn on two-factor authentication where it is offered, and remove people who worked on the build and no longer need access. Delete leftover test users from the live app, except the two accounts kept for the access test.
8. Who is on call
The last item is a name. When the app goes down on a Saturday, or a check that passed yesterday fails today, who is told, and how fast do they act? There are three honest answers: nobody, the client, or you under a maintenance plan. Any of them can be right. What does not work is leaving it unsaid, because then the client assumes it is you and you assume it is not.
Hand over the results, not only the app
Give the client a one-page record with the date, each check and its result. It doubles as the baseline for every later check.
| Check | What to record |
|---|---|
| Keys in shipped code | Which keys are in the bundle, and that none of them is a secret key |
| Row Level Security | The result of the two-user test and of the test without login, for each table |
| Storage buckets | Each bucket, public or private, and whether its files can be listed without login |
| Security headers | Which of the six are present |
| Certificate and domain | Expiry dates, renewal method and registered owner |
| Backups | The plan, what is covered and the date of the last restore test |
| Accounts and access | The owner and the members of each service |
| On call | Name, contact channel and response time |
Word the record with care. A check that passed is a fact about that day. It does not prove the app is secure, and it stops being current the next time someone changes the app with a prompt. A new table can arrive without the policies the old ones have, and a new environment variable can put a key in the bundle.
That is the case for repeating the checks instead of doing them once. You can run them by hand before each release, or start with a free check in Sealgap and let them run every night. Either way, the client receives an app together with a dated account of what was checked and what passed, and both of you know who is watching from the next day on.