Skip to main content

What it flags

An executed Kysely select on a configured table needs an equality predicate using the scalar returned by the trusted helper. Dynamic table names, composed builders and predicates whose structure is unavailable produce contextual findings. Subqueries in predicates or projections that may read a configured table require review of their own row scope. Contextual findings are excluded from the default security exit status. Use --include-contextual to include them in the report and apply the configured failure threshold.

Configuration

With this policy, db.selectFrom('invoice').selectAll().where('organizationId', '=', requireOrg()).execute() verifies the row scope when types are available and strict null checks are enabled.