Skip to content
Product Building

What UK and AU Privacy Laws Mean for Your Vibe-Coded B2B App

AI tools prioritise making your prototype work, not protecting your clients’ data.

A modern office desk with two monitors displaying application code alongside printed data compliance documents.
Shreyansh Doshi Founder, Samvara Published Reviewed Read 7 min

What You Need to Know

AI coding tools prioritise getting your app to work, often by disabling database security and defaulting to US servers. To comply with UK GDPR and the Australian Privacy Act, you must manually enforce Row Level Security (RLS), set local data residency, and secure your API keys before processing real B2B data.

At a Glance

Primary Risk
Disabled database security and data leaks
Compliance Laws
UK GDPR & Australian Privacy Act 1988
Common AI Default
US-based servers, wide-open RLS
Required Fix
Manual backend architecture audit
Starting Cost
£199 for review and hardening

Best For

  • UK and AU founders building B2B software with AI tools like Lovable, Bolt, or Cursor.
  • Operations managers moving internal spreadsheets into AI-generated web applications.
  • Business owners preparing to test an AI prototype with live client data.

Not For

  • ×Founders building consumer apps without sensitive data.
  • ×Developers looking for deep backend coding tutorials.
  • ×Businesses buying off-the-shelf SaaS products.

Key Takeaways

  • AI coding tools frequently turn off database security rules to ensure prototypes compile quickly.
  • Default AI database deployments are usually US-based, violating UK and AU data residency requirements.
  • Row Level Security (RLS) must be manually enforced so users cannot access each other's private data.
  • A manual security review and database hardening starts at £199 and is required before any B2B go-live.
  • You must build a manual data deletion flow; AI tools almost never include one by default.

B2B operators are currently standing up internal tools and client portals in days using AI generation tools like Lovable, Cursor, and Bolt. It feels like magic. You describe a supplier portal or a shift-booking tool, and a working application appears on your screen.

But that magic relies on a dangerous shortcut. AI coding tools do not understand data sovereignty, the UK GDPR, or the Australian Privacy Act. To ensure the prototype compiles and runs without throwing errors on your screen, the AI routinely turns off database security rules, hardcodes sensitive keys, and defaults to US-based server infrastructure.

It does not matter if you are processing a 200-person exhibitor list, uploading cargo manifests, or managing external contractors. The moment you move from dummy data to real personally identifiable information (PII) or commercial records, you become a data controller.

If you deploy an AI-generated MVP on its default settings, you are almost certainly in breach of local privacy laws. Here is exactly what breaks, why the AI builds it that way, and the practical checks you must clear before you put a single live client record into the system.

The Fundamental Flaw in AI-Generated Architecture

When you prompt an AI to "build a portal where clients can view their own invoices," the AI focuses entirely on the user interface and the basic data retrieval.

To make this happen quickly, tools like Bolt or Lovable will often spin up a backend—typically Supabase or Firebase—and leave the database tables completely open. If the AI applied strict, production-ready security rules, the prototype would likely break during your initial testing because the AI would also have to build a complex authentication and token-passing system perfectly on the first try.

So, it cheats. It makes everything public.

In a local testing environment with fake names, this is harmless. In a live B2B environment, it is a catastrophic liability. Under both the UK GDPR and the Australian Privacy Act (1988), you have a legal obligation to take "reasonable steps" or implement "appropriate technical and organisational measures" to secure personal data against unauthorised access.

A database that allows any user to query any other user's data is an immediate violation.

Check 1: Enforce Row Level Security (RLS)

This is the single most common failure point in B2B apps built with AI.

If your app uses Supabase as a backend, it relies on Row Level Security (RLS) to ensure that User A can only see User A's data. AI tools are notoriously bad at writing RLS policies. They will either leave RLS disabled entirely or write a policy that essentially says "if the user is logged in, they can see everything."

If you are building a B2B app—say, a portal for external contractors to submit timesheets—a disabled RLS means Contractor A can open their browser's developer tools, change a user ID in the network request, and download Contractor B's timesheets, pay rates, and home address.

Before you go live, you must manually inspect the database policies. You need strict rules dictating that a read, write, or update action can only occur if the authenticated user's ID matches the owner ID on that specific database row. For more detail on how this specifically fails in popular tools, read our breakdown of the Supabase security flaw leaving Lovable apps open.

Check 2: Verify Data Residency and Sovereignty

When an AI tool automatically provisions a backend database for you, it usually defaults to a server location in the United States—specifically US East (Northern Virginia) or US West (California).

If your business operates in the UK or Australia, and you are processing personal data, storing it in the US introduces cross-border data transfer compliance issues. Under the UK GDPR, you can only transfer data outside the UK if the destination country has an adequacy decision or if you have specific safeguards (like Standard Contractual Clauses) in place. The Australian Privacy Act imposes similar restrictions under Australian Privacy Principle (APP) 8.

You cannot just cross your fingers and hope nobody asks where the data lives.

The fix: When you set up your production database environment, manually select a region that matches your operating base—such as eu-west-2 (London) or ap-southeast-2 (Sydney). Never let the AI choose your deployment region automatically.

Check 3: Stop the LLM Data Leakage

Many B2B operators use vibe coding to build AI-assisted tools—for example, a system that reads incoming supplier PDFs and categorises them, or a tool that drafts emails to exhibition attendees.

To do this, the application has to send data to an LLM provider like OpenAI or Anthropic. If you are using standard API calls out of the box, you might be sending sensitive UK or AU personal data directly into a system that uses it for model training.

Sending a client's unmasked financial data or contact list into a third-party LLM without an explicit data processing agreement (DPA) and enterprise-level privacy controls breaches your obligations as a data controller.

The fix:

  1. Ensure you are using the API endpoints (not the consumer ChatGPT interface), as most major providers now exclude API data from training by default—but verify this in their current terms.
  2. Never expose your live API keys in the client-side code. AI tools frequently hardcode keys directly into the frontend, meaning anyone inspecting your app's code can steal your key and rack up massive bills on your account. We have documented exactly how this happens in our guide on how Bolt prototypes leak API keys.
  3. Implement a backend proxy. Your app should send the data to your secure backend, which then securely communicates with the LLM.

Check 4: The 'Right to be Deleted'

Under UK GDPR (the right to erasure) and the Australian Privacy Act (destroying or de-identifying personal information), individuals have the right to ask you to delete their data when it is no longer necessary.

AI-generated applications almost never include a functional "delete" flow. They optimise for creating data and viewing data. If a client asks to be removed from your newly built CRM or booking portal, you will quickly find that deleting their user profile breaks the app, leaves orphaned records in five different database tables, or is simply impossible without writing raw SQL queries.

Before you load real users into the system, you must design a data retention and deletion strategy. If a user deletes their account, the database must cascade that deletion to all associated records—their invoices, their bookings, and their logged actions—or properly anonymise them if you need to retain the core transaction records for tax compliance.

Check 5: Securing Webhooks and Third-Party Integrations

If your B2B app takes payments, syncs with Xero, or triggers emails via SendGrid, it uses webhooks.

When AI builds these integrations, it often creates unprotected endpoints. This means your app has a URL waiting to receive a message from Stripe saying "Invoice Paid." Because the AI skipped the boring security steps, it rarely implements webhook signature verification.

As a result, a malicious actor (or just a stray automated scan) can send a fake payload to your webhook URL, and your app will blindly mark an invoice as paid or trigger an action. When real business operations and financial data are involved, you cannot rely on security through obscurity.

Every external endpoint must verify the cryptographic signature of the incoming request. If you are approaching launch and want to know exactly what to review, our seven security checks for Lovable apps outlines the technical requirements for securing these endpoints.

The Next Step: Hardening the MVP

You do not need to spend £20,000 on an enterprise SOC2 compliance audit just to test a B2B prototype with ten friendly clients. But you also cannot deploy an AI-generated app straight to the web on its default settings.

The gap between "it works on my screen" and "it is legally compliant to hold real B2B data" is entirely manageable, provided you treat it as a distinct engineering step.

Do not ask the AI to mark its own homework. Commission an experienced developer or a product studio to conduct a manual architecture audit. They will check the database rules, verify data residency, remove exposed keys, and secure the webhooks. A professional review and hardening process typically starts at £199.

When a single UK GDPR fine or an Australian Information Commissioner investigation can cripple a growing business, locking down your app's foundation is the cheapest insurance policy you will ever buy. Treat the AI as the builder of the house, but hire a professional to check the locks before you invite your clients inside.

Quick Comparison

Requirement AI-Generated Default Compliant Architecture
Database Access RLS disabled or fully public Strict RLS tied to authenticated user ID
Data Residency US East / US West London (UK) or Sydney (AU) region
API Keys Hardcoded in the frontend Hidden behind a secure backend proxy
Data Deletion No delete functionality Cascading deletes or anonymisation routines

Frequently Asked Questions

Does using an AI coding tool breach GDPR?
The tools themselves do not breach GDPR, but the applications they generate usually do. AI prioritises making the app function over securing the data, often leaving database rules public and defaulting to US servers, which violates UK and AU data protection laws if uncorrected.
Where does Lovable or Bolt store my app data?
By default, these tools often connect to a backend like Supabase and provision a database in the United States. You must manually select a UK (London) or AU (Sydney) server region to comply with local data residency requirements.
What is Row Level Security (RLS) in an AI app?
Row Level Security is a database feature that ensures a user can only read or edit their own data. AI coding tools frequently disable RLS or configure it poorly, meaning any logged-in user could potentially view the private data of other clients.
Can I launch a B2B AI app without a security review?
You can, but you are carrying immense legal and commercial risk. Launching without reviewing exposed API keys, RLS policies, and webhook security is highly likely to result in data leaks and regulatory breaches. A hardening review is essential.

Bottom line

Never deploy a vibe-coded application to real B2B users without a manual architecture audit. Lock down your database rules, verify your data residency, and commission a basic security hardening review—typically starting at £199—before a single live customer record enters the system.

How Samvara researches this guide

We write for exhibition organisers and import/export operators in Australia, the UK, Europe, the US and India. Guides favour specific, verifiable operational advice over generic tips — grounded in systems we have shipped, client workflows, and current industry practice. We revisit articles as tooling and regulations change.

Written by

Shreyansh Doshi, Founder of Samvara

Shreyansh Doshi is the founder of Samvara Technologies, a product studio building operator software and SaaS products for exhibition, import/export, travel and fitness businesses in the UK and Australia. He writes about product delivery, operations systems, and where AI does and does not belong in a real workflow.

Keep Reading

Popular in Product Building

Guides readers open next