You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sql: honour RLS policies during query-based backfill
Previously, schema changes that performed backfill operations from a query—such
as those for materialized views (MQTs) or CREATE TABLE ... AS (CTAS)—executed
the query as the node user. This user has administrative privileges and
bypasses all Row-Level Security (RLS) policies, unintentionally exposing rows
the originator of the change should not have been able to access.
This change ensures that such query-based backfills run under the privileges of
the user who initiated the schema change. As a result, RLS policies are
correctly enforced, and only the rows visible to the initiating user are
included in the result.
Fixes#144816Fixes#144776
Epic: CRDB-11724
Release note: none
0 commit comments