Row Level Security (RLS)
Database rules that decide, row by row, which records each user may read or change. Missing RLS is a common leak in AI-built apps.
Platforms such as Supabase expose database tables to the browser through an automatic API, with a public key in the frontend code. Without RLS policies on each table, anyone who opens the browser tools can read or edit every row, including other customers’ data. With RLS, the database itself checks rules such as “a user sees only rows where owner equals their id”.
Related terms
- Vibe coding: Building by prompting and accepting the result without reading the code closely.
- Secrets management (leaked API keys): Keeping API keys, passwords and tokens out of code and chats, in a store with access control, rotation and audit.
- Multi-tenancy (multi-tenant SaaS): One application and one deploy serving many client companies, with each client’s data kept apart.
