Founder guide · Security

A Lovable security audit, in eight checks

A Lovable security audit checks who can read your database, where your secret keys are and what a stranger can do without signing in. Start with Row Level Security on every table, then test it with two accounts. Most serious problems in AI-built apps are found in that first hour.

What to look for

You can run these three tests yourself before paying anyone.

  1. One user can read another user’s data

    Sign in as two test users in two browsers. Copy the address of a private record from one and open it in the other.

  2. A secret key is visible in the browser

    Open the published site’s source in your browser’s developer tools and search for “secret”, “sk_” and “service_role”.

  3. Actions work without signing in

    Sign out and repeat a request that creates, changes or deletes something. It should be refused.

in the checklist, each with a check you can run
8 steps
for the audit, at a fixed fee agreed up front
10 days
for build and launch, in writing before work starts
Fixed quote

Why Lovable apps need a security check

A Lovable app talks to its database directly from the browser. That is a sound design only when the database itself decides who may see each row. If those rules are missing, anyone who can open your site can ask the database for everything.

The tool can write the rules, and it often does. It cannot know which of your tables hold private data, so the gaps appear exactly where a founder would least expect them: in the table added last week.

What the audit covers

A useful security review of a Lovable app looks at five areas.

  • Data accessRow Level Security and the policy on every table.
  • SecretsWhich keys are in the browser and which should not be.
  • Sign-inConfirmation, password reset, sessions and redirect addresses.
  • Server functionsWho may call them and what input they accept.
  • Files and paymentsStorage permissions and how a payment is confirmed.

The security checklist

Eight checks, in the order that finds the most serious problems first.

  1. Turn on Row Level Security everywhere

    In Supabase, every table should have Row Level Security enabled, including the ones that seem harmless. A table without it is open to anyone holding your public key.

    Check: the table list shows no table with security disabled.

  2. Read each policy as a sentence

    A policy should say who may do what to which rows, for example “a user may read rows where the owner is that user”. Policies that allow everyone, or that check nothing, are the same as no policy.

    Check: you can state each policy in plain words.

  3. Test with two accounts

    Rules that look right can still be wrong. Sign in as two test users and try to read, change and delete each other’s records, including by editing IDs in the address bar.

    Check: every attempt is refused.

  4. Find every key in the browser

    The public (anon) key is meant to be there. A service-role key, a Stripe secret key or an AI provider key is not. Move any call that needs one into a server function.

    Check: the published code contains no secret keys, and any key that was exposed has been replaced.

  5. Protect server functions

    Each function should confirm who is calling before it acts, and should reject input it does not expect. An open function that calls a paid AI service is also an open bill.

    Check: calling a function while signed out returns an error.

  6. Check file storage

    Uploaded files follow their own rules. Make private buckets private and limit who can upload, what type and how large.

    Check: a private file’s address does not open in a signed-out browser.

  7. Tighten sign-in

    Require email confirmation if accounts matter, set redirect addresses to your real domain only and test password reset from start to finish.

    Check: a reset link works once and then expires.

  8. Confirm payments on the server

    Paid access should be granted when the payment provider tells your server, through a signed webhook, that the payment succeeded.

    Check: changing a value in the browser cannot unlock a paid plan.

What you should receive

A security review is only useful if it ends in work you can assign. Ask for a written list of findings, each with how serious it is, how to reproduce it and what fixing it involves.

Then fix the serious ones before you invite more users, and run the two-account test again afterwards. A fix that was never retested is a hope, not a fix.

How Saaro can help

Saaro reviews the code, dependencies, tests and release risks of AI-built apps as a code audit, and scopes the follow-up fixes in writing after seeing the project.

If security is one worry among several, the 10-day product audit puts the whole list in order. Rebuilding the affected parts falls under Build and launch.

How Saaro can help

Start with the decision in front of you.

Send the project link and one test account. We review data access, secrets, sign-in and release risks, and return an ordered list of what to fix. The scope and fee of a code audit are agreed in writing before work starts.

Code audit for AI-built appsExplore the 10-day audit

Free

Request a free mini-audit

Send your email, a product link and the biggest problem you want us to look at. You will hear from us within 3 days.

Free mini-audit

Show us your product.

Tell us the biggest problem you want looked at. You will hear from us within 3 days.

  • Free, with no call required
  • A written reply about your own product
  • Sent to the email you give us

Send it the way you prefer

Your details arrive prefilled in the message. You press send.

Questions founders ask

Are Lovable apps secure?

They can be. Security depends on the access rules in your database and where your keys are kept, not on the tool. An app with Row Level Security on every table and no secret keys in the browser has closed the most common gaps.

Is the Supabase anon key a secret?

No. It is designed to be visible in the browser. It is safe only when Row Level Security is enabled and the policies are correct.

Can I run the audit myself?

You can run the first three tests on this page in under an hour. A full review also reads every policy, every server function and the payment flow.

What if a key was already exposed?

Replace it. Removing it from the code is not enough, because it may already have been copied.

How often should I repeat the check?

After every change that adds a table, a server function or a payment step, and before any launch or campaign that brings new users.

Next step

Want a second opinion on your product?

Free · 30 minutes

Book a call with Saaro.

Pick a time that suits you. Bring a link to your product or store and the one question you most need answered.

  • We look at your product together
  • An honest view of what to do next
  • A fixed written quote if it makes sense

Loading the calendar…