Repository navigation
feat(rules): supabase-rls probes tables in a fixed name order, raises its caps to 30/40 and counts unchecked tables #2104 - #2191
Merged
Conversation
nc9
marked this pull request as ready for review
November 20, 2026 23:39
… its caps to 30/40 and counts unchecked tables #2104 Signed-off-by: Nik Cubrilovic <[email protected]>
nc9
force-pushed
the
boat/supabase-rls-cap-2104
branch
from
November 21, 2026 01:10
cb21fc8 to
85ae893
Compare
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.
Closes #2104
Summary
security/supabase-rlscould find an open table but could never report a real app clean: it probed at most 8 tables per project and 10 per audit, and the tables it picked depended on the order scripts were fetched in.compareNames, notlocaleCompare, so the order is the same on every machine). Past the cap, the first tables by name are probed. This is documented on the rule page.HEADwith no body read, the run already stops at the first 429 or challenge (isThrottledOrChallenged), and the shared probe time budget still bounds the run. At 8/10 a typical app naming 20 to 40 tables could never pass. The new numbers are on the rule page and in the probe table indocs/configuration/security.mdx. (The AC asks for the reason in the issue before closing; I cannot comment, so it is recorded here for the conductor to post.)X of N table probe(s) got a definite answer and Y were left unchecked, and every result's details carrytablesPlanned,tablesCheckedandtablesUnchecked.The list may be incomplete: X of N table probe(s) got a definite answer and Y were left unchecked (<reasons>). A complete fail is unchanged.Acceptance criteria
past the cap, the first tables in code-unit name order are kept...,discovery is the same whatever order the scripts were fetched in,the same site audited twice, its scripts fetched in another order, probes the same tables; rule page "Which tables are probed".security.mdxprobe table; reason above.table probes are capped across the run...,tables past the per-project cap count as unanswered....the caps are 2 projects, 30 tables per project and 40 probes per audit (#2104)uses literals) and the counts.a fail cut short by a 429 says how many tables went unchecked,a fail past the per-project cap says how many tables went unchecked; a complete fail does not.Mutation check: removing the sorts fails 7 tests; removing the fail suffix fails both new fail tests.
Gates
bun test ./packages/rules/tests/supabase-rls.test.ts: 38 pass, 0 failbun run scripts/test-suites.ts --run rules(CI step): 12554 pass, 24 todo, 0 fail, 408 filescd packages/rules && bun run typecheck: cleancd docs && make validate: passbun scripts/changelog.ts check: OKSkill
The squirrelscan agent skill does not need a change: the rule id, skip reasons and check names are unchanged; only counts in messages and details are added.
Hold-list (security probe): draft for Opus review.