Back to blog
DevOps Deployment Security PostgreSQL Vercel SaaS

DevOps for a Small Team: Real Test Data, Locked-Down Production

By Ken B Portfolio · Published on November 3, 2026
Illustration of a developer working at a laptop

Testing with real data catches bugs fake data never shows: the odd record, the broken character, the search that returns thousands of results.

But real data on a developer’s machine brings two risks:

  1. Other people’s data leaks. A copy on a laptop is a copy you no longer control.
  2. A laptop breaks production. One wrong command, one wrong password in the wrong file.

This is the setup I built so a small team can test with real data and neither of those can happen. It runs today with one person. It is built for the first developers who join.

You don’t need to know how any of it works. I set up the copy, the deploy steps and the backups, and hand you one page that says who can touch production and how.

Rule 1: real data lives in production only

Dev and every laptop get a copy of one account: mine. Never anyone else’s. One command refreshes it:

  • It reads my account from production.
  • It replaces the old copy on dev or the laptop.
  • It never writes to production.

What makes it safe is the database, not the script. The copy uses a read-only login that the database itself limits to my account. Even a bug in the copy tool cannot see another customer. If that login leaks, the worst case is someone reading my own data.

More on protecting customer data: Understanding security in your SaaS.

Rule 2: no laptop changes production

Database changes (a new table, a new column) used to run from a laptop. That meant the production password lived on a laptop.

Now the deploy platform runs them during its build:

  • A snapshot comes first. The step is built. It becomes required before the first users arrive: then no snapshot means no change, and the live site stays as it was. Taking the production password off the laptop is on the same launch list.
  • Anything that deletes data stops the deploy. To allow one, I name that exact file in the platform’s settings, redeploy, then remove the setting. A setting left behind cannot wave through the next one.
  • Changes only add. The old code keeps working, so the database can change before the new code goes live.

Dev works the same way, so the process gets tested before production sees it. It follows the Twelve-Factor App rules: one-off jobs like database changes run as part of the release, and every site runs the same steps.

Rule 3: going live is a click

A push builds the new version, and the dev site gets it first. Once other people’s data is on production, the new version waits until I press Promote.

Until then, with only my own account on production, fixes go live at once. The switch is one setting, flipped right before the first users arrive.

Rule 4: test code cannot reach production

The app has a browser extension. There are now two builds from the same code:

  • Production build: can only talk to the live site.
  • Test build: can only talk to dev and local machines, and only checks when I press a button.

The browser enforces it. The test build is not told to stay away from production. It is not allowed to reach it.

Rule 5: a copy every night, locked once users arrive

Every night, a copy of production is made and kept for 30 days.

When I checked the rollback plan before launch, that nightly copy had failed three nights in a row, and nobody had noticed. A backup only counts once you have checked it ran.

Today production holds only my account, so the copy is plain. Right before the first users arrive, it gets locked: the service that stores the copies can lock them but never open them, and the key that opens them stays with me.

What waits until the team grows

These cost money, so they wait for real users or a second developer:

  • Enforced code review: nothing reaches the main branch without approval. How I review AI-written code explains the checks each change already gets.
  • Split database logins: the app’s login cannot delete tables.
  • Backups nobody can delete: storage that accepts new files but refuses deletes.
  • Paid database backups: 7 days of undo instead of 6 hours.

Each one is written down with the trigger that turns it on.

What it costs

Almost nothing today. The database, hosting and backups run on free plans. The first paid step is the database plan, at beta.

The short version

Real data stays in production. Developers get a copy of one test account, limited by the database itself. Only the deploy platform changes production, with a snapshot first and deletes refused. Going live is a click.

Tell me how your app ships today and I’ll show you where real data could leak or a laptop could break production.

Could a developer on your team break production from their laptop today?

SAFETOSHIP,SAFETOTEST

Tell me how your app ships today and I'll show you where real data could leak or a laptop could break production.

More Posts

All posts