White-Labeling & Security for Client Data

Why White-Label Matters

When selling agent systems to clients, you want:

  • Your branding — Not Supabase’s
  • Data isolation — Each client’s data separate
  • Security — Client can’t access other clients
  • Control — You own the infrastructure

Supabase White-Labeling Options

Option 1: Supabase for Platforms (Managed)

FeatureDetails
Custom domainsUse your own domain for APIs
Custom UIWhite-label Auth and dashboard
Multi-tenantPer-client projects with isolation
StatusPrivate alpha — check availability

Pros:

  • No infrastructure management
  • Automatic updates
  • Built-in security

Cons:

  • Still Supabase infrastructure
  • May have Supabase references
  • Limited control

Cost: Enterprise pricing


Option 2: Self-Hosted Supabase (Full Control)

FeatureDetails
Full controlHost on your servers
Complete white-labelNo Supabase branding
Your domainapi.yourcompany.com
Custom UIBuild your own dashboard

Pros:

  • Complete white-label
  • Full data ownership
  • No vendor lock-in
  • No usage limits

Cons:

  • You manage infrastructure
  • You handle updates
  • You handle security

Cost: Server costs ($45-100/mo) + your time


Option 3: API-Only Mode (Hybrid)

FeatureDetails
Use Supabase backendDatabase, auth, realtime
Your frontendNo Supabase UI visible to clients
Proxy through your domainapi.yourcompany.com → Supabase

Pros:

  • Less management
  • Your branding on frontend
  • Supabase reliability

Cons:

  • Still dependent on Supabase
  • Data on their servers

Cost: Supabase pricing + your frontend


Alternative: Appwrite (Better White-Label)

FeatureAppwriteSupabase
Self-hosted✅ Easy✅ Docker
White-label✅ Built-in⚠️ Requires work
Multi-tenant✅ Yes✅ Yes
Dashboard✅ Your branding⚠️ Supabase branding
Learning curveMediumLow

Recommendation: If white-labeling is critical, consider Appwrite.


Security Best Practices for Client Data

1. Row Level Security (RLS)

-- Enable RLS on all tables
ALTER TABLE businesses ENABLE ROW LEVEL SECURITY;

-- Create policy for client isolation
CREATE POLICY "client_isolation" ON businesses
  USING (client_id = current_client_id());

2. Separate Projects per Client

ClientProjectDatabase
Client Aproj-client-adb-client-a
Client Bproj-client-bdb-client-b
Client Cproj-client-cdb-client-c

Why: Complete isolation, no cross-client access

3. IP Restrictions

# Only allow connections from your servers
supabase projects api set --ip-whitelist "1.2.3.4,5.6.7.8"

4. SSL Enforcement

  • Force HTTPS on all connections
  • Use SSL certificates for API calls
  • Never transmit data over HTTP

5. API Key Management

Key TypeScopeStorage
anon keyPublicSafe to expose
service_roleAdminServer-side only
client keysPer-clientStore securely

Client App
    ↓
Your API Gateway (api.yourcompany.com)
    ↓
Your Backend
    ↓
Supabase/Appwrite

Why:

  • Client never sees Supabase
  • You control all access
  • Add your branding
  • Add your security layer

Cost Comparison

OptionMonthly CostWhite-LabelEffort
Supabase Cloud$0-25❌ NoLow
Supabase Self-Hosted$45-100✅ YesMedium
Appwrite Self-Hosted$45-100✅ YesMedium
Your API + Supabase$25-50✅ YesMedium
Your API + Appwrite$45-100✅ YesMedium

Recommendation

For Client Work:

  1. Start with Supabase Cloud — Get it working
  2. Add your API layer — White-label the frontend
  3. Migrate to self-hosted — When you need full control

For White-Label Clients:

  1. Use Appwrite — Better white-label support
  2. Or self-host Supabase — Complete control
  3. Always add your API gateway — Extra security layer

Implementation Steps

Step 1: Create Client Database

-- Create separate schema per client
CREATE SCHEMA client_a;
CREATE SCHEMA client_b;

-- Or separate project per client
-- Project: client-a-prod
-- Project: client-b-prod

Step 2: Add Your API Layer

// Your API gateway
app.get('/api/businesses', async (req, res) => {
  const client_id = req.headers['x-client-id'];
  
  // Forward to Supabase with client isolation
  const { data } = await supabase
    .from('businesses')
    .select('*')
    .eq('client_id', client_id);
    
  res.json(data);
});

Step 3: Add Your Branding

  • Custom domain (api.yourcompany.com)
  • Custom dashboard (yourcompany.com/dashboard)
  • Your logo and colors
  • Your terms of service

← Back to Agent System | GitHub Integration →

Was this helpful?

Still stuck?

Send this and we will carry this guide and your last search with it. No starting from zero.

Guide
White-Labeling & Security for Client Data
Last search
No recent search