Security audit of a feature
Targeted OWASP-style review of one feature.
Agent task · Cursor / coding agents, Claude Code, ChatGPT +1
Library / Coding & Technology / Database
Row Level Security that is actually tested.
Write Row Level Security for the [table] table. Access rules: [e.g. users read/write their own rows; anyone reads rows where visibility = 'public']. - Enable RLS and write one policy per operation (select/insert/update/delete) using auth.uid(). - Use column-level grants if some columns must not be user-editable. - Write SQL tests that switch role (anon / authenticated with different user ids) and prove each rule, including a negative case per rule. - Never use the service-role key in client code.
Copies your prompt and opens the official site in a new tab. You may need to paste it yourself (Ctrl/⌘ + V). Nothing is sent to the AI by us.
Replace [bracketed] parts with your own details before sending. Want it tailored? Build a custom website & app development prompt.
A typical one-line request compared with this prompt. We only show sample responses where we've written an illustration.
Prompt
database
1 words · no role, context, format or constraints
Prompt
Write Row Level Security for the [table] table. Access rules: [e.g. users read/write their own rows; anyone reads rows where visibility = 'public']. - Enable RLS and write one policy per operation (select/insert/update/delete) using auth.uid(). - Use column-level grants if some columns must not be user-editable. - Write SQL tests that switch role (anon / authenticated with different user ids) and prove each rule, including a negative case per rule. - Never use the service-role key in client code.
79 words · generated instantly from templates, no AI called
What we added
Targeted OWASP-style review of one feature.
Agent task · Cursor / coding agents, Claude Code, ChatGPT +1
New column/table with indexes, rollback and model updates.
Agent task · Cursor / coding agents, Claude Code, ChatGPT +1
Eager loading fixes with proof.
Agent task · Cursor / coding agents, Claude Code, ChatGPT +1