πŸ“– 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!