Repository navigation
feat(rules): waive a public Supabase table by bare name in security/supabase-rls #2103 - #2177
Merged
Merged
Conversation
…upabase-rls #2103 Signed-off-by: Nik Cubrilovic <[email protected]>
nc9
marked this pull request as ready for review
November 20, 2026 22:03
nc9
added a commit
that referenced
this pull request
Nov 21, 2026
* origin/main: test(audit-engine): carriedCheckAsFailure keeps the continuation mark #2098 (#2166) fix(rules): correct zoom-disabled 1.4.4 wording, related criteria for wcagNone rules #2115 (#2174) refactor(cli): list bash completion flags one per line #2116 (#2175) feat(rules): waive a public Supabase table by bare name in security/supabase-rls #2103 (#2177) test(rules): every site rule emits a check on a clean site, with a shrinking baseline #1741 (#2179) feat(rules): report each 5xx page as its own crawl/server-errors finding #2130 (#2181) fix(rules): one finding per leaked field across json-sensitive-fields and auth-endpoint-disclosure, deduped by the runner #2083 (#2154) fix(cli): report --input keeps meta.partialAudit and publishes with it #2102 (#2153) fix(cli): local incremental re-audit counts carried findings in the full audit's check units (#2159) fix(crawler): cap stored entity refs and edges, skip corrupt refs rows #2135 (#2158) fix(crawler): a quick crawl fetches the start URL when a sitemap lists it past maxPages #2127 (#2157) fix(rules): security/exposed-actuator reads a 5xx through isUnverifiedReply, never part of a pass #2101 (#2151) fix(rules): hold large text to 3:1 in a11y/color-contrast #2105 (#2155) fix(cli): size the report list date column from rendered dates #2095 (#2152) Signed-off-by: Nik Cubrilovic <[email protected]>
nc9
added a commit
that referenced
this pull request
Nov 21, 2026
* origin/main: test(audit-engine): carriedCheckAsFailure keeps the continuation mark #2098 (#2166) fix(rules): correct zoom-disabled 1.4.4 wording, related criteria for wcagNone rules #2115 (#2174) refactor(cli): list bash completion flags one per line #2116 (#2175) feat(rules): waive a public Supabase table by bare name in security/supabase-rls #2103 (#2177) test(rules): every site rule emits a check on a clean site, with a shrinking baseline #1741 (#2179) feat(rules): report each 5xx page as its own crawl/server-errors finding #2130 (#2181) fix(rules): one finding per leaked field across json-sensitive-fields and auth-endpoint-disclosure, deduped by the runner #2083 (#2154) fix(cli): report --input keeps meta.partialAudit and publishes with it #2102 (#2153) fix(cli): local incremental re-audit counts carried findings in the full audit's check units (#2159) fix(crawler): cap stored entity refs and edges, skip corrupt refs rows #2135 (#2158) fix(crawler): a quick crawl fetches the start URL when a sitemap lists it past maxPages #2127 (#2157) fix(rules): security/exposed-actuator reads a 5xx through isUnverifiedReply, never part of a pass #2101 (#2151) fix(rules): hold large text to 3:1 in a11y/color-contrast #2105 (#2155) fix(cli): size the report list date column from rendered dates #2095 (#2152) Signed-off-by: Nik Cubrilovic <[email protected]>
nc9
added a commit
that referenced
this pull request
Nov 21, 2026
* origin/main: test(install,audit-engine): run install-hardening and attestation cases concurrently, copy the canonical crawl DB in javascript-shipped #1839 (#2186) build(packages): typecheck the tests of crawler, report, utils, tech-detect, core-contracts, config, waf-detect, threat-intel #1859 (#2190) fix(cli): refuse a run whose config rule selection plus WCAG level leaves zero rules #2110 (#2156) fix(rules): links/anchor-mismatch false positives on translated stores #2092 (#2162) fix(rules): coded gap skips for input not fully checked, batch 2 rules #2134 (#2163) test(audit-engine): carriedCheckAsFailure keeps the continuation mark #2098 (#2166) fix(rules): correct zoom-disabled 1.4.4 wording, related criteria for wcagNone rules #2115 (#2174) refactor(cli): list bash completion flags one per line #2116 (#2175) feat(rules): waive a public Supabase table by bare name in security/supabase-rls #2103 (#2177) test(rules): every site rule emits a check on a clean site, with a shrinking baseline #1741 (#2179) feat(rules): report each 5xx page as its own crawl/server-errors finding #2130 (#2181) Signed-off-by: Nik Cubrilovic <[email protected]>
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.
Summary
[[ignore]]withrule = "security/supabase-rls"anditems = ["posts"]now waives thepoststable in every project the site uses. Before this, a bare name matched nothing because the item label also carried the row count.labelis now the bare table name. The row count moves tosnippet(42 row(s) visible to the anon key), which the text and llm outputs print next to the label. The itemidis unchanged (<ref>.supabase.co/rest/v1/<table>), soglob:*/rest/v1/<table>and full-id entries still work.messageCountsItems. After a waiver the engine corrects the leading count, and the message never names a waived table.itemsagainst an item's id or label.Closes #2103
Acceptance criteria
items = ["posts"]waivespostsin every project and leaves other tables reported. Testpackages/rules/tests/supabase-rls.test.ts: "[[ignore]] items = ["posts"] waives the posts table in every project; glob:*/rest/v1/posts does too". It uses two projects: in project oneprofilesstays failing, and project two (onlyposts) becomes a waived pass. A barepostwaives nothing (exact match).first.messagestarts with1 Supabase table(s) in <host> report rowsand does not containposts.docs/rules/security/supabase-rls.mdx, "Tables that are meant to be public"), andsquirrel config validateaccepts it. Testapps/cli/tests/commands/config-validate.test.ts: "a security/supabase-rls entry that waives a table by its bare name is valid" (exit null, no stderr,Config valid).glob:*/rest/v1/<table>forms: the same test loops over["posts", "glob:*/rest/v1/posts"].Gates
bun run scripts/test-suites.ts --run rules: 12519 pass, 24 todo, 0 fail (407 files)bun run scripts/test-suites.ts --run cli: 4574 pass, 14 skip, 0 fail (394 files)bun test packages/rules/tests/supabase-rls.test.ts: 33 pass.apps/cli/tests/commands/config-validate.test.ts: 8 passformat:check,lint,typecheckclean. packages/rulestypecheckclean. Rootlintandformat:checkcleanmake validatein docs/: exit 0.bun scripts/changelog.ts check: OKNotes
snippet), and the fail message drops the table list. A changelog entry is inchangelog.d/2103-supabase-rls-bare-name.changed.md.details.exposedTableson a partly waived check still lists every exposed table, including the waived one. The engine's filter does not rewrite rule details, and the acceptance criteria cover the message only.