row-level-security

SQL Server 2016 with Row Level Security - Addressing the Bottleneck

我的梦境 提交于 2021-02-19 07:59:08
问题 I'm developing with Microsoft SQL Server 2016, and are currently facing a major performance drop when adding Row Level Security (RLS) to my database. I already think I've found the issue, which is Mr Query Optimizer who doesn't like my non deterministic filtering function very much. My question is if anyone had any experience with RLS, filtering functions, and optimizing a case like this. - Can indexing, a more clever RLS filtering function, etc improve the performance? I use RLS to filter

Row Level Security delete block predicate and cascade delete constraint issue

我的梦境 提交于 2021-01-07 06:31:16
问题 Consider having the following tables: Client table with columns: client_guid(uniqueidentifier - primary key) client_description Ticket table with columns: ticket_guid(uniqueidentifier - primary key) ticket_client_guid(uniqueidentifier - foreign key to client table) ticket_description. Attachment table with columns: attachment_guid(uniqueidentifier - primary key) attachment_ticket_guid(uniqueidentifier - foreign key to ticket table with ON DELETE CASCADE constraint ) attachment description

Database independent row level security solution

三世轮回 提交于 2020-01-13 14:55:13
问题 does anybody knows about Java/C# database independent authorization library. This library should support read, write, delete, insert actions across company organizational structure. Something like this: - user can see all documents - user can enter new document assigned to his unit - user can change all documents assigned to his unit and all subordinate units. - user can delete documents that are assigned to him I should also be able to create custom actions (besides read, write,...) connect

Database independent row level security solution

不问归期 提交于 2020-01-13 14:55:08
问题 does anybody knows about Java/C# database independent authorization library. This library should support read, write, delete, insert actions across company organizational structure. Something like this: - user can see all documents - user can enter new document assigned to his unit - user can change all documents assigned to his unit and all subordinate units. - user can delete documents that are assigned to him I should also be able to create custom actions (besides read, write,...) connect

SQL Server row level security - many to many

二次信任 提交于 2020-01-04 14:33:37
问题 We are using SQL Server 2008 and have our permissions setup in Active Directory (AD). Each row in a core table needs to be only viewable by those that have permission to view each row. I can setup row level security on each row (each row contains a single role that lines up with an AD group), however I have the following problem :- because the roles represent countries I have several 100 roles. Further I have some users who have access to several roles...and the several roles given users have

Entity Framework - Setting session_context using IDbConnectionInterceptor

余生长醉 提交于 2020-01-01 12:16:11
问题 I'm following this tutorial in order to use Row Level security in SQL Server via Entity Framework 6 CodeFirst. The tutorial code sample shows how to use IDbConnectionInterceptor and set the current user id in session_context . To retrieve the user id, it uses static accessor method HttpContext.Current.User.Identity.GetUserId() which is coupled with Asp.Net identity and System.Web namespace. In my multi-tenant web app, I wanted to have the tenantId injected into the DbConnectionInterceptor

Row Level Security Enabled update is not working while standard update does using the same logic

大憨熊 提交于 2019-12-24 19:34:14
问题 Working on postgres 10.4 (on RDS if it makes a difference) I am trying to enforce application user permissions using Row Level Security. I have a permissions table which looks something like user_group_id | entity1 | entity2 | entity3 | permission ==============|=========|=========|=========|============ 1 |1 |null |null | write 1 |1 |1 |null | read entity1(root)-entity2-entity3(leaf) is a hierarchy of items stored in different tables. entity1 contains entity2 items, entity2 items contains

Performance implications of using (DBMS_RLS) Oracle Row Level Security(RLS)? [closed]

帅比萌擦擦* 提交于 2019-12-23 04:32:14
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago . If we use Oracle Row Level Security(RLS) to hide some records - Are there any Performance Implications - will it slow down my SQL Queries? The Oracle Package for this is: DBMS_RLS. I plan to add: IS_HISTORICAL=T/F to some tables. And then using RLS, hide the records which have