Good fit
- Supabase projects that went from tutorial to production without a security review
- Teams that copied connection strings from the dashboard into client-side code
- Applications handling sensitive user data with default RLS policies
Your Supabase project went from development to production without a hardening review. Point-in-time recovery is disabled, so you can only restore to a daily backup.
For teams that shipped to production with development configuration and need to close the security, reliability, and recovery gaps. Each gap has a specific worst-case scenario. These are not theoretical.
The service_role key in your client-side code bypasses all RLS policies and carries the same privileges as the postgres superuser. Anyone who opens browser DevTools can extract it and read, write, or delete any row in any table. This is not a vulnerability. It is an unlocked door. Once leaked, the only fix is to rotate the key and audit every write made during the exposure window.
Without point-in-time recovery, a bad migration or accidental DELETE FROM users has no recovery path. Supabase runs daily backups on paid plans, but everything between the last backup and the incident is gone. That could be 23 hours of data. PITR restores to any second-level point in time, so the recovery window shrinks from a full day to moments before the mistake.
Your RLS policies use permissive defaults, meaning any authenticated user can read any row. The policy says 'authenticated users can SELECT' but does not filter by user ID with a clause like (select auth.uid()) = user_id. Every user can see every other user's data. One API call through the client SDK proves it. The SQL editor will not, because it runs as the postgres superuser and bypasses RLS entirely.
Best fit when your Supabase project has real users and you know the configuration was never reviewed for production readiness.
Supabase makes development easy.
We audit, fix, and monitor all 11 configuration gaps without downtime or data loss.
Check every configuration surface: auth, RLS, storage, edge functions, networking, backups, monitoring, and API keys. Document all 11 gaps with severity scores and test cases proving the vulnerability.
Remove the service_role key from client code and rotate it. Rewrite RLS policies with proper row-level filtering, wrapping auth.uid() in a select so the planner caches it per statement, and index every column the policies touch. Enable PITR. Configure Supavisor pooling. Add auth rate limiting. Proof release: security scan passes all checks.
Fix remaining gaps: storage bucket policies, SSL enforcement, network restrictions, email domain restrictions, custom JWT expiry, and security definer function hardening. Size the connection pool so PostgREST stays below 40% and never starves the Auth service. All changes tested in staging first.
Security monitoring baseline: auth failure alerts, RLS violation detection, connection pool usage tracking. Production operations guide with incident response procedures.
All 11 production gaps closed with monitoring to detect future configuration drift.
We know every production gotcha in Supabase because we have hit them in production ourselves.
We have hardened multiple Supabase projects for production. We know the 11 gaps because we have seen each one cause an incident. The audit is not a generic security checklist. It is Supabase-specific.
No. Every change is tested in staging first. RLS policy changes are deployed alongside code changes. We use a phased rollout with monitoring. If any metric degrades, we rollback. Your users never see an interruption.
If it is in your client-side JavaScript, anyone can extract it from browser DevTools in 10 seconds. The service_role key bypasses all RLS policies and carries postgres superuser privileges, so it has full read, write, and delete access to every table. This is the #1 Supabase security gap we find. The fix is to remove it from the client, rotate it in the dashboard, and audit writes from the exposure window.
Before. Hardening at 100 users is straightforward. Hardening at 10,000 users after a security incident is an emergency. The RLS rewrite is the same effort either way, but the risk exposure grows linearly with users.
Service key exposed in client-side code, RLS disabled or overly permissive on critical tables, no PITR enabled, storage buckets publicly accessible, and missing rate limiting on auth endpoints. Most projects have 8-12 of these gaps. We have a checklist of 40+ items we audit against.
We write the new RLS policies alongside the old ones and test every API endpoint through the client SDK with real user sessions, not the SQL editor, which bypasses RLS. We wrap auth.uid() in a select so it is cached per statement, add the TO authenticated clause, and index every column the policies reference, which can be a 100x speedup on large tables. Once verified, we swap in the new policies atomically. Your application behavior stays identical. The security surface shrinks without any user-facing change.
We configure alerts for connection pool exhaustion, slow queries above your latency threshold, RLS policy denials, auth failure spikes, and storage usage approaching limits. You get a dashboard showing system health at a glance and alerts that fire before users are affected.
11 Production configuration gaps
11 configuration gaps closed.
Fixed scope, fixed price.
ByKostadin StambolievFounder and Imaginator
Published Updated