v.22.3Improvement
Change Row Policies to Enhance Usability in ClickHouse
Change restrictive row policies a bit to make them an easier alternative to permissive policies in easy cases. If for a particular table only restrictive policies exist (without permissive policies) users will be able to see some rows. AlsoSHOW CREATE ROW POLICYwill always showAS permissiveorAS restrictivein row policy's definition. #34596 (Vitaly Baranov).
Why it matters
This feature addresses the complexity of managing row-level security by enabling restrictive policies to allow users to see some rows in scenarios where no permissive policies are defined. It simplifies access control management and makes policy behavior more transparent and consistent.How to use it
Define restrictive row policies as usual on tables without permissive policies. The system will automatically allow users to see rows according to restrictive policy logic. UseSHOW CREATE ROW POLICY to view the exact policy definition including whether it is restrictive or permissive.