villebro commented on issue #8699: [SIP-29] Add support for row-level security
URL: 
https://github.com/apache/incubator-superset/pull/8699#issuecomment-561715469
 
 
   @justin-barton yes, precisely like that. I refined my original proposal 
somewhat, and concluded that the default value should be present in the OR 
clause. For instance, if you would want to give access to everyone for pear 
sales in Megalomania, the key-value pair `"default": "country='Megalomania' AND 
item='Pears'"` should be present under `"somekey"` to ensure users in the 
`ruritania-groves` Role aren't left out.
   
   My main motivation here is to ensure we can construct arbitrarily complex 
role based filters, and after this last amendment I believe this is pretty 
solid. So the basic premise is:
   - Default value for key -> what everyone should see
   - Additional keys -> increased security
   - Additional roles within a key -> relaxed security,
   
   which I feel should be a pretty good trade-off between complexity and 
versatility.
   
   @mistercrunch @dpgaspar do you feel this should be done using the FAB model, 
or as a column under table? I was thinking one could create a React component 
for editing the groups/roles, that in turn leverages the existing 
`AdhocFilterEditPopover` React component.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to