v.21.1Improvements

Initial User Roles Utilized for Row Policies

Initial user's roles are used now to find row policies, see #31080. #31262 (Vitaly Baranov).
Initial user's roles are now considered when finding row-level security policies in ClickHouse.

Why it matters

This feature ensures that row policies are correctly applied based on the initial roles assigned to the user. It improves security by accurately enforcing access controls tied to user roles, preventing unauthorized data access that could occur if roles were ignored.

How to use it

Users benefit from this feature automatically when using row-level security policies. To apply it, define row policies based on roles as usual; ClickHouse will now consider the initial roles of the user to determine the applicable policies.