From 633faa293db415204b31c2d7af9bd1d8b835e60b Mon Sep 17 00:00:00 2001 From: bchanot Date: Wed, 21 Oct 2026 00:18:24 +0200 Subject: [PATCH] docs(guardrails): IN() placeholder list is flagged, not ignored --- skills/guardrails/references/checks.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/skills/guardrails/references/checks.md b/skills/guardrails/references/checks.md index 0d8c492..839f2a7 100644 --- a/skills/guardrails/references/checks.md +++ b/skills/guardrails/references/checks.md @@ -146,7 +146,9 @@ The scanner skips log files and cache directories, and never follows symlinks. By design the scanner ignores: policies granted only to `service_role`, UI route components, keys inside git-ignored env files, and password literals in test, fixture and -i18n files, tagged SQL templates, placeholders with a separate parameter list, an argv array handed to a DB tool, console calls in server code, logging calls that carry a stack, `sourcemap: 'hidden'`, a debug flag read from the environment, dev, local and test env files and settings modules, minified files and built directories, a hidden input or data attribute named csrf, xsrf, authenticity or nonce, a generated `?` list in `IN (…)`, webpack dev configs, data-* names ending in a UI suffix, a loader scoped to its export chunk, and metadata keys in the fields probe. +i18n files, tagged SQL templates, placeholders with a separate parameter list, an argv array handed to a DB tool, console calls in server code, logging calls that carry a stack, `sourcemap: 'hidden'`, a debug flag read from the environment, dev, local and test env files and settings modules, minified files and built directories, a hidden input or data attribute named csrf, xsrf, authenticity or nonce, webpack dev configs, data-* names ending in a UI suffix, a loader scoped to its export chunk, and metadata keys in the fields probe. + +Still flagged, judge by hand: INJ-SQL-CONCAT on a template literal that builds a generated `?` or `$n` list inside `IN (…)` while the values travel in a separate array; it is parameterised, drop it from the proposals. ## Live Supabase checks (the user runs them in the SQL editor)