Debezium Sql Server with Row Level Security

47 views
Skip to first unread message

Senthil Kumaran

unread,
Oct 31, 2023, 8:21:02 AM10/31/23
to debezium
Hello team,

We have a scenario where we want to do Debezium snapshots with the SQL Server Row level security(RLS) enabled. Currently, the snapshot queries are for all the rows in the table. Now we want to enable snapshot with RLS.


With RLS, we want to run a sql statement(RLS context query) before the snapshot query starts on that connection so that SQL server predicate function filters data based on it. I do not see an option in debezium configuration to fire queries(RLS context query) before each snapshot query(snapshot). 

Note: For CDC, it is not a concern though, it is only on snapshot.

Thanks,
Senthil   

jiri.p...@gmail.com

unread,
Nov 1, 2023, 1:35:56 AM11/1/23
to debezium

Senthil Kumaran

unread,
Nov 1, 2023, 8:32:11 PM11/1/23
to debezium
Hmmm. Interesting. Thanks for pointing to this documentation. Will try this out. 
Reply all
Reply to author
Forward
0 new messages