SegmentStream

Why vibe-coded apps leak, and what to check before yours does

The public incidents of the last two years follow the same four patterns. What each looks like, what to check this week, and what a platform should take off your hands.

Ideas · Constantine Yurevich · 29 November 2026 · 4 min read

On this page

AI coding agents made it possible to ship an app in an afternoon, and the apps work. What breaks is everything a demo never tests: who can read which records, where the keys live, and what the agent is allowed to touch.

The public record of the last two years is unusually consistent. Four patterns account for nearly every incident.

1. Tables anyone can read

Most AI-built apps keep their data in a hosted database that the browser queries directly with a public key. That design is safe only when every table has rules saying who may read and change which rows. The rules are opt-in, the app works without them, and nothing tells you they are missing.

None of these needed an exploit. The data was one request away.

2. Keys that end up where anyone can find them

An agent puts a key wherever the code that needs it runs. If that code runs in the browser, or the key lands in a commit, it is public, and a usage-based API bills whoever holds it.

A leaked key is a security problem and a billing problem at once. With no spending limit, the bill is the first alert.

3. Agents holding the keys to production

A coding agent can run any command you can. When development and production share credentials, "clean up the old resources" can mean the database your customers use.

The lesson from both: an agent should never hold credentials that can destroy production, and backups should live where those credentials can't reach.

4. Nobody owns what happens next

The fourth pattern doesn't make headlines. The first version works, the person who prompted it moves on, and nobody can say who may see which records, what changed last week, or who answers when it breaks at 11pm. It is the most common objection to building your own software instead of renting it, and a fair one.

What to check this week

If you run an app an agent built, an afternoon covers the worst of it:

  1. Read your own data while signed out. Open the app in a private window, watch its network requests, and try the same requests against each table. Anything you can read that isn't meant to be public already is. On Supabase, check that row-level security is on for every table and that each policy limits rows to the people who should see them.
  2. Search for keys. Look through the built JavaScript and the git history for API keys and service credentials. Rotate anything you find, then set a spending limit with every provider that offers one.
  3. Take production away from the agent. Give it development credentials only. Turn on deletion protection, and keep backups somewhere its credentials can't reach.
  4. Write down who owns it. Who may change it, how you'll know it broke, and where the history of changes is kept.

Our production checklist for AI-built apps walks through the rest.

The fix belongs in the platform, not the prompt

Every incident above is a default left to the builder: access rules that are opt-in, keys that live in the code, an agent holding production credentials. Prompts and checklists help, but they depend on someone remembering every time. The durable fix is a platform where the safe path is the only one.

Assembled by hand

A database the browser queries with a public key
Access rules you remember to write
API keys in the code and its history
One set of credentials for development, production and the agent

On SegmentStream

Apps reach records only through the platform's permission check
Roles down to the row, for people, apps, agents and API keys
Connections and AI models with no key in the code
Deploys change code, never the infrastructure under it
The same app, two places for the parts that leak.

On SegmentStream:

  • One permission check on every read and write, for people, apps, agents and API keys alike, with roles down to the row: finance sees invoices, and a client's customers see only their own records. Apps never receive a database key.
  • No keys in the code. Connections to a CRM, an ad platform or a bank authorize through the platform, so the credential never reaches the code, its logs or the agent. AI models are called through AI Gateway, with no key to leak, and model spend stops when prepaid AI credit runs out.
  • Deploys can't take production down. A deploy changes code, never the infrastructure under it. A migration that would drop data is refused, the app's database role can't change the schema, and the main branch can't be force-pushed or deleted.
  • A history of every change, with the action, who made it, when, and each field before and after.

The agent still writes the code. The parts that leak are the platform's job.

If you build software for other companies, this is the part you shouldn't have to get right again for every client. Builder Partners build on SegmentStream, and their clients own the result.

Enterprise pilot

Start a pilot.

Our forward-deployed engineers build one solution on your data, in your own workspace, as code you own. Tell us what you run today and what you want; your note goes straight to our founder.

  • One solution, on your data, in your own workspace
  • First version live in two weeks
  • Parity proven before anything is switched off
  • Fixed scope and price, credited to your contract if you continue

Not ready for a pilot? Send the form anyway with your question. An engineer will reply, not a sales rep.

How the pilot works

Goes to our founder’s inbox. No sales queue, no newsletter.

Build your company’s own software. Let agents run it.

Start a pilot

Our engineers build the first version on your data in two weeks, at a fixed price.

Or build it yourself with your coding agent:

curl -fsSL https://segmentstream.com/install.sh | sh

We’ll email you product updates, tips and onboarding help. Unsubscribe anytime.