Narrated video. A security audit for AI-built apps on Lovable or Supabase: we test who can reach what, on a copy, and you keep the findings, the table you signed off and the tests. An imagined example: user B opens user A's invoice. A public case from Wiz: a Supabase key with no access rules behind it. Then one finding from our own test app with made-up data: Teammate T could read User A's client list, two rows returned where the table says no access; our written request in Lovable's chat; with its database permission set to ask each time, Lovable showed its own SQL, approved; on a copy rebuilt from a fresh export, no rows, closed on a copy from your export.
How long
From access: audit 6 to 10 working days to the report. Optional fixes: 4 to 9 more.
How we test
Made-up users and data. We never ask for passwords, admin keys or customer records. Live: public pages.
What you keep
Ranked findings, the who-may-do-what table you signed off and the tests stay with you.
Fixed scope and fee agreed in writing before work starts.
What is a vibe-coded app security audit?
A vibe-coded app security audit checks an app built mostly through AI prompts for what an outsider or another user can reach: exposed keys, open database rules, weak login and payment checks. A wider code audit also covers architecture and maintainability.
Read more
This audit covers security only. Structure and maintainability go to AI Prototype to Production, for a team with an engineer or contractor who can merge.
What is a Lovable security audit?
A Lovable security audit is an outside review of an app built on Lovable: its code, database access rules, server functions and secrets. Lovable's docs say its scans and connectors do not replace a thorough security review.
Read more
In this audit, the rules are tried from test accounts.
On Lovable's built-in back end (Cloud), we read the code and the rules you export, and Lovable writes any rule change from your request in its chat.
How a fix goes live is under Read more in "What you can buy".
Lovable and Supabase are their makers' products; we are not affiliated with them.
What is a Supabase RLS audit?
A Supabase RLS audit checks what each role is granted on every exposed table, that Row Level Security is on, and that each policy allows only what the app intends. The browser holds a public key, so grants and policies decide who reads and writes.
Read more
A Supabase security audit goes wider than row level security: storage, auth settings, edge functions, secret-key use and the ways around a policy each have their own item under "What we test".
A public key with nothing behind it
A public key in browser code is normal; the rules behind it are what count.
Wiz found a Supabase key in Moltbook's client-side JavaScript reaching 1.5 million API tokens, 35,000 email addresses and private messages between agents, with no access rules (RLS policies) behind it. Wiz quotes a Moltbook founder who "didn't write a single line of code". From the report, four fixes took under three hours; write access was found open after the second.
Run your platform's checks first; they can flag a missing rule. Only you can say who should reach what. We try reads and writes, and try again after fixes.
Wiz's disclosure timeline as a line of eight times in UTC, from first contact at 21:48 to the final fix at 01:00, with write access found open at 00:31, after the second fix. 31 Jan 2026, 21:48: first contact with Moltbook's maintainer. 31 Jan 2026, 22:06: reported the misconfiguration. 31 Jan 2026, 23:29: first fix. 1 Feb 2026, 00:13: second fix. 1 Feb 2026, 00:31: Wiz found write access open. 1 Feb 2026, 00:44: third fix, write access blocked. 1 Feb 2026, 00:50: Wiz found more exposed tables. 1 Feb 2026, 01:00: final fix. Markers: contact or report, fix, found by Wiz.
What you get from this audit
You sign off who may do what. We try it on a copy, reads and writes, as each kind of user, so each try is a result, not a guess.
Ranked findings in plain words, what must change, what to fix first
Each finding says what is open, who could reach what and what has to change. "What must change" is written so you can hand it to your builder's chat or a contractor. Hardening adds the fix, its route and its way back.
The report is a document you can open without Git, with a short executive summary section. The decision to clear the app stays yours, and the summary says so. The tests you keep are what re-run each cell.
The access table you signed off, with each cell's result
The tests, as delivered, as files you keep
They stay with you when the work ends. The report records the test set as delivered.
Coverage list, including what was not tested
What the copy cannot reproduce is listed as not tested, with environments, host-level limits and live auth settings you did not show us.
Re-test results, so you can state accurately what was closed
With hardening: each fix, how it goes live on your stack, its way back
A database-rule fix applied as our tried SQL, in your Supabase project's SQL editor, is tried on a copy first. Where a builder's chat or a coding agent writes it, what it wrote is exported and run through the same tests. A code fix is a written change in a file you keep, for you or your builder to apply.
The steps for a database-rule fix on each stack are under Read more in "What you can buy".
You run one read-only query and send us your database rules; this is your export. Results are stated on a copy built from it, with the export's date.
Each closed finding says who saw what: seen by us, on a copy from your export, or confirmed by you.
On Lovable's built-in back end, a merged file does not change a database rule. You ask in the chat, which writes its own version, so we re-test what you export.
An audit report issued before any hardening work is independent test evidence, not a certification; whether a customer accepts it for access-control questions is their decision.
Access table, from our own test app
Source: One run of our own test app, made-up data, nothing planted.
Access table
Each cell: the expected value, then what came back on the copy
Data
Anonymous
User A
User B
Teammate T
Admin
InvoicesRead
No access0 rowsPass
Allowed2 rowsPass
No access0 rowsPass
Allowed2 of 2 rowsPass
Allowed2 rowsPass
ClientsRead
No access0 rowsPass
Allowed2 rowsPass
No access0 rowsPass
No access2 rows returnedFail
No access2 rows returnedNot decided
User
Invoices, read
Clients, read
Anonymous
No access0 rowsPass
No access0 rowsPass
User A
Allowed2 rowsPass
Allowed2 rowsPass
User B
No access0 rowsPass
No access0 rowsPass
Teammate T
Allowed2 of 2 rowsPass
No access2 rows returnedFail
Admin
Allowed2 rowsPass
No access2 rows returnedNot decided
No access expected
Pass
Fail
Not decided
Admin's deny cells are not decided, because an allow cell for admin failed for another reason.
Two rows of the access table from one run of our own test app, each cell holding the expected value and what came back on the copy. Invoices, read: anonymous, no access, 0 rows, pass; user A, allowed, 2 rows, pass; user B, no access, 0 rows, pass; teammate T, allowed, 2 of 2 rows, pass; admin, allowed, 2 rows, pass. Clients, read: anonymous, no access, 0 rows, pass; user A, allowed, 2 rows, pass; user B, no access, 0 rows, pass; teammate T, no access, 2 rows returned, fail; admin, no access, 2 rows returned, not decided. Admin's deny cells are not decided, because an allow cell for admin failed for another reason.
Behind the finding. The request, on the copy, with Teammate T's sign-in: GET <copy>/clients?select=*&id=in.(A's two clients). The cause in the exported rules: the read rule on clients allowed the owner, or a teammate the owner shared invoices with, or an admin.
After the fix. The whole table was run again: 2 of 77 cells changed, this cell and Admin's read of the same list, and every allow cell was unchanged. A copy built from our tried rule and a copy built from the export after Lovable's change gave the same results, cell for cell.
From a second run, on a Supabase project of ours. Our own test app again, built by an AI coding assistant from the same written request. Allow: Teammate T asks for User A's two invoices, which A shared. Expected: allowed. HTTP 200, rows returned 2 of 2, rows changed 0. Pass.
Deny: T tries to change the amount on those two invoices. Expected: no access. HTTP 204, a success code, rows returned 0, rows changed 0. Pass. The database answered with success and changed nothing, so the cell is judged on rows changed, not on the status.
The blank format. Before any try, each cell holds only its expected value: one kind of data and one action per row, one kind of user per column.
Closure marks, in plain words. A two-part finding may carry a second mark.
-Seen by us: we saw it ourselves, on a public page.
-On a copy from your export: you exported the rules on the stated date, and we ran the tests on a copy rebuilt from that export; we did not watch the export being run.
-Confirmed by you: you showed or told us the state on the stated date, and we did not observe it.
Differences from your migrations. A difference is reported, and it is a finding only if it changes who can reach what.
Labels. A finding we could not reproduce is labelled as read from code. Any containment step we wrote is labelled as ours. An audit report is not rewritten after issue; later results are added as re-test results.
One finding, from fail to closed
Teammate T could read User A's client list. Rank 1 of 6, from one run of our own test app on Lovable's built-in back end, made-up data, nothing planted.
Pass
Fail
Fix
Closed, on a copy from your export
Allow cellDeny cell
Allow cellDeny cell12345
The allow cell and the deny cell at each step, as marks. Step 1: allow cell, pass. Step 2: deny cell, fail. Step 3: fix. Step 4: allow cell and deny cell, pass. Step 5: deny cell, closed, on a copy from your export.
Invoices, read, Teammate T. Expected: allowed. Rows returned: 2 of 2. Pass.
More
User A shared invoices with T, so the table the owner signed lets T read them.
Teammate T, signed in, asks for User A's two clients. Expected: no access. Rows returned: 2. Rows changed: 0. Fail.
More
The app also let T see A's whole client list, client names and email addresses, which the table the owner signed says T may not see. The database answered with the rows (HTTP 200).
Our written request, in Lovable's project chat. With "Modify database" set to "Ask each time", Lovable showed its own SQL before running anything.
More
The approval card, "Apply database migration?", showed DROP POLICY "clients read" ON public.clients; then CREATE POLICY "clients read" ON public.clients FOR SELECT TO authenticated USING (auth.uid() = user_id); and the owner chose "Allow migration". Our tried fix wrote the same rule as one ALTER POLICY; Lovable wrote drop and re-create. The resulting rule is the same, and so are the test results, cell for cell. Lovable recorded the change as a migration file, 0001_restrict_clients_read_to_owner.sql.
Same cell, on a copy rebuilt from a fresh export. Expected: no access. Rows returned: 0. Rows changed: 0. Pass. The allow cell still passes.
The report line: Closed. Rows returned: 2 before, 0 after. On a copy rebuilt from the rules you exported.
Unless you already hold a report, the audit comes first. Fixes are scoped within 2 business days of the report, because nobody can scope a fix before it is found.
Working days051015
Security auditDefaultOne app and its back end, through to the ranked report, with one re-test of your own fixes.6 to 10 working daysDetails
Public checks first. Public code and key inspection runs first.
Read access. A copy of your code you send us, at the start and again at the re-test.
Your files. Our work arrives as files you keep: the findings, the table, the tests and any patches and written requests. Findings stay out of the app's repository, because an open hole and how to reach it should not sit where contractors can read it and where your builder syncs.
The rules query. We send the query with the written scope, before the setup call. It returns schema, grants, policies, function definitions and named settings such as whether a storage bucket is public, and no rows from application tables. It runs in a read-only transaction, so the database refuses changes to your tables, rules and functions. To check it yourself, ask any tool whether this query can change anything.
The re-test. It runs within 30 days of the report and covers your own fixes.
Calls and sessions. With the audit alone, the calls are setup, one 30-minute report walkthrough and a short re-test call; more are quoted. Nothing is recorded, and table contents and key values stay off screen.
What moves the fee. Roles, exposed tables, server functions, and whether the stack is Lovable or your own Supabase project.
Hardening (optional, after the report)Fixes for what the audit showed, then the re-test.4 to 9 working daysDetails
You pay for a fix written for your stack, its way back and a re-test; where a builder's chat or a coding agent writes the change, its version may differ, so we re-test what you export.
If you take hardening, this is your one re-test. It runs within 30 days of our fixes; if they are not applied by then, a later re-run is quoted.
Limits. Fixes cover findings the audit showed, at the severities agreed, that fit the app's existing design. A finding that means rebuilding a part is quoted separately, or, for a team with an engineer or contractor who can merge, routed to AI Prototype to Production.
Defects. The re-test includes fixing defects in what we delivered, such as a rule or test that does not behave as the report says, within the fixed fee. New rules or scope changes are quoted in writing.
Two fixes work differently. Rotating a key is a forward step with no way back to the old key. A fix that changes rows is its own step, uses your own data backup and says what cannot be undone before you apply it.
Hardening from an existing reportA scan or audit you already hold: we reproduce its findings on a copy, fix what holds, then re-test.6 to 12 working daysDetails
It reviews another party's findings, so there is no audit report of ours to share, only re-test results and the table, which is drafted for those findings. No new audit runs here, so the written scope comes within 2 business days of the call. The calls are setup, apply and the re-test.
We need a copy of your code you send us; one read-only rules query you run; and who may do what.
Not an engineer? On Lovable, calls cover setup, the report, applying fixes and the re-test. You apply each fix; we never ask for production keys.
Days run from access to result, pausing while we wait for you. Expect about 2 to 4 hours of yours for the audit.
Read more
Lovable, built-in back end.
-Database rule: a merge does nothing to the database. You give our written request in the project chat, and Lovable writes its own SQL for it. "Modify database" defaults to "Always allow", so a change can land at once; the apply call first sets it to "Ask each time" (Account settings, Preferences, Agent permissions), so Lovable shows its SQL and asks before running anything. You, with us on the apply call, compare that SQL with our tried rule before approving, then restore the setting if you choose. You run the rules query again straight after, so an unrequested change shows at once. Lovable records the change as a migration file.
-Rules record: before you apply, run the rules query and keep the output. It holds no rows, so it protects no data.
-Way back: our written reverse request in the chat, by the same route, and the rules query runs again to confirm. A way back that drops a column or table falls under Lovable's "Execute backward incompatible database migrations" permission, which defaults to "Never allow". Reversing a rule does not undo rows changed meanwhile. Restoring a backup is the last resort: "Restoring cannot be undone." and "Any data created or changed after the chosen backup is lost."
Supabase, your own project.
-Database rule: you paste our tried SQL into the SQL editor on the apply call, so the text we tried is the text applied. You run the rules query again straight after.
-Rules record: as on the built-in back end.
-Way back: our reverse SQL by the same route, and the rules query runs again to confirm. Restoring a backup is the last resort. Automatic daily backups are for "Pro, Team, and Enterprise" plans; a Free project exports for itself, and that export stays with you.
Is this audit right for your app?
A fit
A live app with users, payments or personal data.
A customer's security questions you need evidence for.
A scan report you cannot act on.
A business team's AI-built app that your security team must clear.
Not a fit
No real users yet: run your platform's checks and try the two-account check in our deep dive.
Refactoring, finishing or new features, with an engineer or contractor who can merge: AI Prototype to Production.
Checking a target in a deal: AI Technical Due Diligence.
A chatbot or agent inside the app: AI Red Teaming, or AI Agent & MCP Security Assessment.
How we work with your app and your data
You stay in control: we change nothing on your live app, and each closed finding is marked by who saw it.
You revoke our access whenever you choose. Your code, rules output and our working files are deleted from our systems 30 days after the re-test, or after the 30-day window if none runs.
No test content is written to production.
A secret key we find is reported the same day and never used; you rotate it.
Personal data we come across is reported and not used, and we pause on that file until it is removed.
We never name you, reference the engagement or publish findings without your written consent.
We issue no attestation, certification or summary letters. An audit of a system Veriprajna designed, built or operates is labelled an internal review, and if Veriprajna authored any remediation, the report says so.
Who reaches what, in three labels. Your code: you send it to us. Live: no test writes; public pages for us; the query and fixes are yours. Your export goes to the copy. Copy: all our tests, with made-up users and data.
You get
Audit report within 3 working days of testing ending. Critical findings the same day confirmed, with a containment step.
One re-test within 30 days of the report or our fixes, included in the fee.
Work products arrive as files you keep, as they are produced.
Your contract is with Veriprajna LLP, India.
What this adds to your platform's checks
This audit adds a table you sign off, and needs no staging of yours, because we build the copy; the first column is what your platform's checks leave to you.
Question
Left to you after your platform's checks
This audit
Deciding whether a clean result is enough. Lovable on its scans and connectors: "they do not replace a thorough security review" (Lovable docs). Supabase on its Security Advisor: "No findings does not prove the project is secure." (Supabase docs).
A review of who can reach what, within the stated coverage list.
Writing down who may do what, and reading each finding against it.
A table you sign off, kept with each cell's result.
Explaining to a customer what was tested, how, and what was not.
The report, the re-test results and the table you signed off. We issue no certificate.
Checking that each fix is live, then running your checks again.
The same tests, on a copy rebuilt from what you export from live, where you run the query.
Choosing where any active test runs. The maker of Lovable's pentest add-on says "Most proofs are harmless, but some bugs can only be confirmed by changing data." and advises staging, not production (Aikido help).
Test writes stay on a copy; on live, public pages.
What we test in an AI-built app
Three layers, each tried on the copy or read from code and public pages; anything we cannot check goes on the coverage list.
The browser holds a public key and talks to the database, directly where your app does, or through a server route.
Tap an item below to mark its place on the map.
Data
1Lovable's built-in back endWhether Lovable's own database rules let each kind of user reach only their own records.
Route: the rules query you run in Lovable's SQL editor, then the copy.
This item applies if your project uses Lovable's built-in back end (Cloud), which Lovable describes as built on Supabase's open-source foundation. Its access rules are row level security policies, which you can list under More, Database, Manage, Policies. We try each cell of your table from test accounts on the copy.
2Supabase grants and row level securityWhat each role is granted on every exposed table, and whether each policy allows only what you intend.
Route: the rules query you run in the Supabase SQL editor, then the copy.
Each cell of your access table is one try: one kind of user, one kind of data, one action. An allow cell runs first and must pass, so a missing grant cannot read as a closed door.
A deny cell then checks rows returned and rows changed, not just the absence of an error, because a policy that filters a row out raises nothing, and a write can succeed while matching no rows. So a denied write is paired with a read showing the target record is intact.
We try reads on every table your app uses, and the writes your access table names. We try them with no sign-in, as a signed-in user, and as one customer against another customer's records.
3Supabase storage policies and public bucketsWhich files each user can read or replace, and which buckets anyone can open.
Route: the rules query, which includes each bucket's public flag, then the copy.
Supabase says that anyone holding the URL of a file in a public bucket can read it, so each public flag is checked against what the bucket holds. File policies are tried from the same test accounts.
Standards: OWASP A01:2025.
4Views and privileged functionsViews and functions that can step around the policies on the tables beneath them.
Route: the rules query lists them, and the copy runs those that reach rows in your access table.
Supabase says views bypass row level security by default, and that a security definer function runs as the role that created it. So those your API exposes that reach rows in your access table are tried from test accounts, each under the cell it serves.
Standards: OWASP A01:2025, ASVS 5.0.0 V8.
5Supabase and Lovable edge functionsWhether each server function checks who is calling before it reads or writes.
Route: we read how each function identifies its caller.
Standards: OWASP A01:2025, API5:2023.
Login and money
1Roles and admin pages enforced on the serverWhether a role is checked on the server, and whether an ordinary user can open admin pages or what sits behind them.
Route: the server code.
A hidden button is not a check, so the data behind admin pages is tried from an ordinary test account.
2Sessions and sign-in flowsHow sessions are issued, ended and checked; provider settings only where you show them.
Route: the sign-in code. Provider settings are shown by you, or listed as not tested.
Standards: OWASP A07:2025, API2:2023, ASVS 5.0.0 V6 and V7.
3Anonymous sign-insWhether an anonymous session is treated as a real user by your rules and code.
Route: the policies and the code. The setting itself is shown by you, or listed as not tested.
On Supabase, anonymous users take the authenticated role, so a policy written for signed-in users admits them too unless it checks the is_anonymous claim.
Standards: OWASP A07:2025, A01:2025.
4Payment webhook checksWhether your code checks the payment provider's signature before it trusts a webhook.
Route: the code. Provider-side settings are shown by you, or listed as not tested.
An unsigned or wrongly signed event should change nothing.
Standards: OWASP A08:2025 (CWE-345).
5Prices and plans a user can editWhether a user can change a price or plan from the browser.
Route: the code that sets a price or plan, then the copy, where a test account edits the request and the record is read back.
Standards: OWASP API3:2023, ASVS 5.0.0 V2.
Keys and code
1Secrets in the browser bundle or repositorySecret keys visible to any visitor or sitting in your code; reported, never tried.
Route: public inspection of the published code, and a read of your code.
Supabase describes its publishable key as "Safe to expose online", so we look for the keys that are not: a secret key should never reach a browser or source control.
2Secret-key use in server codeWhere server code uses a key that can bypass row level security, and whether it should.
Route: the code.
Supabase says a secret key bypasses row level security when the request carries no user access token, so server code holding one must make its own access check. We look for that check.
Standards: OWASP A01:2025.
3Input handling and injection in server codeWhether user input reaches a query or command in server code unchecked.
5Limits on costly endpoints, in your codeWhether your code limits requests to endpoints that cost money; host limits go on the coverage list.
Route: the code only.
Standards: OWASP API4:2023.
6DependenciesKnown vulnerable packages in the lockfile, in the copy of your code you send us.
Route: the lockfile.
Standards: OWASP A03:2025 (CWE-1395).
Standards: OWASP Top 10:2025, OWASP API Security Top 10 2023, OWASP ASVS 5.0.0. Each item's IDs are in its detail, and each security finding names its CWE.
Related services
AI-Written Code AssuranceFor engineering teams whose engineers review what coding agents write.
Governed AI EngineeringFor coding-agent rollouts across an engineering team.
Security & Compliance ReadinessFor SOC 2 and ISO 27001 readiness of your product.
AI Inventory & Shadow-AI DiscoveryFor finding which AI-built apps exist across a company.
Questions before you ask for a quote
7 questions
Do I still need an audit if my platform has a security scan or pentest?
Yes, if the app holds sensitive data or critical functionality: Lovable's docs say to consider an additional professional review. This audit adds an access table you sign off and re-test results marked by who saw what. With no real users yet, your platform's checks may be enough. If a customer asks for a pentest or certificate, ask whether this report answers them. If not, ask the provider what it may change on live: one maker advises staging, not production.
Is this a penetration test?
Not of your live system. It is an authorisation test on a running copy built from your rules. The report says exactly that, so you can describe it accurately. It lets you answer who can reach whose data and how that was tested, with a date and a coverage list. Hosting, network and the platform's own systems are out of scope.
What do you need from us, and what if we have no staging?
A copy of your code you send us, one read-only rules query you run, and your sign-off on who may do what. No staging is needed: we build a copy with made-up data. We do not want passwords, admin keys or the platform's full data export. You see the query first and can decline it; the gaps are then listed as not tested.
Who applies the fixes, and will the next prompt undo them?
You do, with us on a call; we never ask for production keys. On some platforms merging a file is not applying it, so each fix says how it goes live on your stack. A later prompt can change a rule. The tests stay with you, a later re-run is quoted, and after a change that touches access you can repeat the two-account check in our deep dive.
How is a quote scoped, and when can you start?
Through a free 30-minute call about the app, what it holds and its back end. You get a written scope and a fixed fee within 2 business days of the call, agreed in writing before any work. The earliest start date is in the scope.
What if testing causes damage, or a fix breaks the app?
Test writes stay on the copy. Each database-rule fix states how our version behaved there, the rules record to save first (no data) and a way back. A row-changing fix says what cannot be undone. Where a tool writes its own version, we re-test your export. Reversing a rule does not undo changed rows; restoring a backup loses later data.
What if you find nothing serious?
The report still states the coverage: what was tested, how, and what was out of scope, so a clean result shows what was covered.
Checking an AI-built app yourself, and how our test works
Is your app safe to launch? How to check it yourself
The two-account check, with two test accounts you created yourself. Step 3: as test account B, reach own record, B's record. Step 4: as test account B, read, change, delete A's record. Then, as test account A, look at the record itself.
It depends on what the app holds and whether each user can reach only their own data. Run your platform's checks, then sign in as a second test account and try to reach the first account's records.
Use accounts you created yourself and change only test records, because a builder may use one database for building and for your published app.
1.Run your platform's checks.
-How: run its scans and read each finding against who should reach what.
-Bad result: a finding on a table or function that holds private data.
-Usual fix: ask your builder to fix that finding, then scan again. A clean scan still does not settle it: see what the makers say.
2.Write down who may do what.
-How: one row per kind of data, one column per kind of user: a visitor, a signed-in user, a different signed-in user, an admin.
-Bad result: a cell you cannot fill in. Your rules are then answering that question by accident.
-Usual fix: decide the cell, then ask your builder to make the rule match it.
3.Create two test accounts, and confirm the second can reach its own record.
-How: sign up as A and as B, and give each a record of its own. As B, open and change B's record.
-Bad result: B cannot reach its own record. A later refusal would then mean nothing, because everything is refused.
-Usual fix: the rule or the grant for signed-in users is missing. Fix it before you go on.
4.As the second account, try to read, change and delete the first account's record.
-How: change the link or the request so that it names A's record. Then sign in as A and look at the record itself.
-Bad result: B sees A's record, or A's record has changed. A refusal can be an empty result as well as an error, so an empty screen alone shows nothing either way.
-Usual fix: a rule that ties the record to the signed-in user, for reads and for writes. Then repeat this check.
Supabase's RLS Tester, a dashboard feature preview, is one way to run the read check. Its 24 Apr 2026 changelog entry supports SELECT queries only, so the write checks remain yours to try.
5.Save the requests and the refusals.
-How: keep each request and its result, with the date.
-Bad result: you fixed something and cannot show what changed.
-Usual fix: repeat the check and save it this time.
6.Look for secret keys in the browser.
-How: open your published page, view its loaded scripts and search them for sb_secret_ or anything labelled as a service key.
-Bad result: a secret key appears. A Supabase publishable key is meant to be public; a secret key is not.
-Usual fix: rotate the key, then move the call that needs it into server code.
What this cannot tell you. These checks try one kind of record through one path. A view or a privileged function can step around the rule you tried, and a later prompt can change that rule afterwards. One pass says little about login flows, payment webhooks or storage.
When an outside test earns its fee. When the app holds real users, payments or personal data, the cost of a wrong answer outgrows what two test accounts can show.
Supabase's two layers: grants, then row level security
Supabase runs two checks before a client touches a table. A grant decides whether a role can run an operation on the table at all. A row level security policy decides which rows that operation applies to.
The browser holds a publishable key, which Supabase describes as "Safe to expose online". So the key is not the leak; these two layers are the lock. A table in an exposed schema with row level security off is, in Supabase's words, "readable and writable by any role with a grant". Adding policies does not take a grant back.
The two layers fail differently, which is why a test has to tell them apart. If a grant is missing, Postgres rejects the query "before RLS comes into play". If a policy filters a row out, nothing is raised and the request matches no rows. A filtered row does not look like a refusal.
Supabase has also changed how grants start. On new projects, new tables in the public schema need an explicit grant before the Data API can see them. Supabase scheduled this for existing projects from 30 Oct 2026; existing tables keep their current grants. Check your own project. "RLS behavior remains unchanged", as Supabase puts it, so neither layer replaces the other.
How a copy stands in for production, and where it does not
The copy is a running version of your app's back end, with made-up users and data. None of your rows go into it. Before any test runs, the live project URL and every key are replaced, and outbound access to your live hosts is blocked for the run.
How it is built depends on what you send:
-You run the rules query. The copy is built from that output and your code, and carries the export's date.
-No usable migrations. The rules output alone is the base, and what cannot be rebuilt goes on the not-tested list.
Where it falls short: third-party services are replaced by test accounts or stubs, so their own settings are not tried. Sign-in provider settings and host-level limits are seen only if you show them. Made-up data cannot reproduce what is odd about your real records.
A copy also ages. Live can move on after the export: a later prompt can change a rule. That is why the re-test starts from a fresh export.
Get your vibe-coded app tested, and fix what we find with us
Whether you built the app yourself or a team in your company did, start with a short conversation about what it holds and who uses it.