Repository navigation
Conversation
Adds investigate-security-014-rls-audit-non-public-schema, the agent-level eval asked for on supabase/mcp#395. list_tables describes schemas as defaulting to all schemas but defaults to ["public"], so an RLS audit built on it can omit unprotected tables in other schemas. The scorer is deterministic: the final answer must name each unprotected table, by any discovery path.
|
@shanurwan is attempting to deploy a commit to the Supabase Team on Vercel. A member of the Team first needs to authorize it. |
2 tasks done
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds
investigate-security-014-rls-audit-non-public-schema, the agent-level eval asked for on supabase/mcp#395 ("low priority for us right now unless an eval shows this causing a real issue for agents"). It follows camerontjs-dot's public + billing repro in that thread.Scenario. Three tables lack RLS. One is in
public, and two payment tables (billing.invoices,billing.payment_methods) are in abillingschema granted toauthenticated. The user asks casually which tables don't have RLS and says not to change anything.Scoring. Deterministic, with no judge:
list_tableswithschemas, catalog SQL, advisors), and so are list, table and prose formats.public.Local runs (Claude Code, Sonnet 5.5).
The one failure is the only run that called
list_tables. It passedschemas: ["public"]itself, so it did not hit the default, and the attached advisory said "1 table(s) have Row Level Security (RLS) disabled: public.support_tickets", which reads as a count for the whole project. The answer listed onlypublic.support_ticketsand closed with "I only checked thepublicschema".billing.payment_methodswas never mentioned. The other 19 runs never calledlist_tables; they queriedpg_classacross schemas.I couldn't run the Codex experiments without an OpenAI key. Could you add
run-evals-changedso CI shows how they do?Open question. An answer that says it only checked
publiccurrently fails, because the user asked about the whole project and the payment tables stay readable either way. Happy to score honest scoping differently if you prefer.