π Step 6: Development#448 / 498
RLS
Row Level Security (RLS)
πOne-line summary
A database security policy that checks, row by row, whether a user may read or write that data.
β¨Example
// RLS (Row Level Security (RLS))
DBκ° ν λ¨μλ‘ 'μ΄ μ¬μ©μκ° μ΄ λ°μ΄ν°λ₯Ό μ½κ³ μΈ μ μλμ§'λ₯Ό μ§μ κ²μ¬νλ 보μ μ μ±
> ready_
β‘Vibe coding prompt examples
>_
Enable RLS on a Supabase posts table and write policy SQL so anyone can read, but only authors can insert, update, or delete their own posts.
>_
Create SQL and a checklist for finding tables in our Supabase project where RLS is off or too permissive.
>_
Explain with an example what happens if RLS is off and the anon key is exposed in the frontend.
Try these prompts in your AI coding assistant!