There Is No Frontend Security, Ever: Lovable, Supabase Keys and Where Security Actually Lives

There Is No Frontend Security, Ever: Lovable, Supabase Keys and Where Security Actually Lives
Get in touch or AI consulting Join the AI Community & Comprehensive Online Courses for All Levels

The question came up in a community session: “If I built my app with Lovable on the free plan, and never paid the 10, 20 or 30 dollars, do I have security?” Ariel’s answer is one word: no. The rest of the lesson explains why, proves it in the browser, and ends with a decision a lot of vibe coders are stuck on: Vercel or a server of your own.

The three zones of every app

Ariel starts with terminology, because everything else depends on it. The world of code is always split into three zones:

  • The client side (frontend). Everything you see. The code runs in your browser, on your machine.
  • The server side (backend). When you submit a form, the data goes to a computer somewhere in the cloud, which does its work out of the client’s reach.
  • The database (DB). Sitting behind the server, holding the actual data.

Proof: the browser is yours to edit

To show what “client side” really means, Ariel opens his own landing page. He edits the headline right there in the browser, changing “learn to work with AI” into “learn to play with AI.” Then he opens the console and runs a line of JavaScript that pops up a dialog asking “Are you happy?” Click OK and it returns true, click Cancel and it returns false.

The point isn’t the trick. The point is that the visitor can run any code they like on that page. So can security even exist on the client side? One participant guesses yes. Ariel’s answer: how can you secure something you just handed to the other person, who can manipulate it however they want? If your project is client-only, you have, with absolute certainty, zero security. You must have a server side.

Security lives in the backend

Security mostly lives on the server, because that’s where decisions get made: what goes where, and whether this user is allowed to do this action. The database itself only sees one application user, which can or can’t perform an action. The backend’s job is finer than that. Say there’s a phone-numbers table and the app is allowed to update it. The backend still has to make sure that when a specific person changes a phone number, they can only change their own record.

The classic mistake: the API key in the browser

Here’s where the community member’s app went wrong, and Ariel says many people make the same move. They want users and data, so they pick Supabase, which acts as both a backend and a database and exposes an API for everything: login, adding users, submitting forms.

An API is public by design. Everyone knows what it looks like. What ties a request to your account is the API key. And in a Lovable project like his, all the code that talks to that API, key included, lives in the client side. In other words, your browser calls Supabase directly. Give Ariel the link to your site, and he can open it, pull the key out, and do whatever he likes with your data.

The fix: get a real server side. Either pay for one from the platform, or tell Claude “I have a server, set it up” so the flow becomes client โ†’ server โ†’ Supabase. Or drop Supabase entirely and run the whole thing on your own VPS.

Vercel or your own server?

If you go the VPS route, Ariel has a “secure my Linux” guide: you buy a server, give Claude Code the guide plus SSH access, and it hardens the machine from start to finish (link in the video description, along with his Hostinger discount code). He’ll also do it for you in an hour of paid work, or for free if you let him record it for the channel.

Vercel, he says, is also a server side, just a different kind. With Hostinger you get a server and do whatever you want with it. With Vercel you don’t get a server of your own; you get a system that arranges the frontend, the backend and your secrets for you. Most people use it, it’s excellent, and he recommends it for standard apps. He personally prefers his own servers because he likes to do “weird things.”

That’s when a participant brings a real project: a friend runs a paper-printing plant, and orders arrive through Gmail (WhatsApp later). He wants one interface where every inquiry gets an order code and an approval, and the conversation with the customer continues from there. Is Vercel enough? Ariel says yes, Vercel done properly gets you 100% of the way. The trade-off: Vercel gives you everything arranged, but you live inside its boxes. Your own server is fully yours. Ariel bought his domain as a wildcard, so he can hang anything on a subdomain (the blog you’re reading included), and he can install Codex, Claude Code or even OpenClaw right on the server. His practical tip: the discount only applies to the first purchase, so take the KVM 2 plan for two or three years. It comes with 100 GB, which is usually enough.

Before you build: grill me

The lesson closes on Ariel’s favorite habit. Follow the course stages (idea, research, spec, build) and grill your agent before it writes anything. Literally write “grill me,” in English if you like, or “ask me 450 questions.” It starts questioning you one question after another, and over 100, 200, 300 questions it helps you pin down exactly what you need.

๐Ÿ”ฅ Roast Corner

Let’s appreciate the format first. A lesson about security, roughly fourteen minutes long, with two ad breaks. Ariel interrupted his own explanation of why you can’t trust the client to sell you the course that explains why you can’t trust the client. And his “live hacking demo” was breaking into his own landing page to change “work with AI” to “play with AI.” Mr. Robot is shaking.

But the real target today is the vibe-coding crowd that ships the database key to every visitor’s browser and calls it an MVP. This isn’t theoretical. In 2025, a researcher scanned 1,645 apps on Lovable’s own showcase and found 170 of them, about 10%, with data wide open because the row-level security wasn’t set up properly. Lovable’s first move, per the researcher, was to deny it, delete the tweets and take down the site. The site came back later with a $2 fee. Security by paywall: the most 2025 sentence ever written.

Putting your API key in the frontend is like hiding the house key under the doormat, then printing the doormat on your business card. And no, adding “please don’t steal this” in a code comment doesn’t count as a backend.

๐Ÿค– AI for Humans

GPS is great until you walk through the door. Inside a hospital, a mall or a social-services office, there’s no satellite to tell a blind visitor where the elevator is. MABLE Maps is an iPhone app built to solve exactly that. Developed at Lehigh University’s Center for Community-Driven Assistive Technologies, it combines AI with detailed building maps to give turn-by-turn directions indoors, plus an exploration mode that describes what’s around you, by voice or visually, depending on what each user needs.

The project is led by Dr. Vinod Namboodiri, who has retinitis pigmentosa, a condition that causes progressive vision loss, so he knows the problem from the inside. This month, Sights for Hope, a Pennsylvania nonprofit serving people who are blind or visually impaired, became the fifth host site for the app and the first social-service organization to do so. Its clients aren’t just using MABLE Maps; they’re testing it and giving feedback that shapes how it’s built.

That’s the “grill me” lesson in its purest form: the people the tool is for are the ones asking the hard questions before it ships.

Source: Sights for Hope, “Sights for Hope Becomes First Host Site of its Kind for MABLE Maps App”

Get in touch or AI consulting Join the AI Community & Comprehensive Online Courses for All Levels

๐Ÿ’ฌ Comments