Repository navigation
v0.22.2
Patch Changes
-
#237
93a78deThanks @Mandrak147! - fix(no-set-search-path): do not flag thesearch_pathpin on function definitionsA
SET search_path = ...clause attached to aCREATE FUNCTION/CREATE PROCEDURE/ALTER FUNCTIONis the documented mitigation forsearch_pathinjection and is required byno-security-definer-without-search-path. Flagging it made the tworecommendedrules mutually unsatisfiable forSECURITY DEFINERfunctions (no value ofsearch_path, not even'', could satisfy both). The rule now reports only standaloneSET search_pathstatements.