Force search path
-
Introduce a new parameter called restrict_to_trusted_schemas
, a bool, default to false for backward compat'. -
Introduce a new parameter called trusted_schemas
, a array of of schema names. -
The default value is empty , maybe become { 'pg_catalog', 'anon' }
in forthcoming versions -
Add a column masking_function_schema
in thepg_masking_rules
tables view -
When a rule is declared : if restrict_to_trusted_schemas
is defined, check thattrusted_schemas
containsmasking_function_schema
-
During mask_update : ifrestrict_to_trusted_schemas
is defined andmasking_function_schema
is empty, use the 1rst item of trusted_schemas to qualify the masking function ( ? beware of backward compatibility ) -
add a function get_function_schema
: !203 (merged) -
Use explicit schema in all examples -
add documentation
Edited by damien clochard