Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created on 10-17-2016 10:29 PM - edited 08-19-2019 01:54 AM
Hi,
I have read the manual but I don't understand the behaviour of 2 policies I have regarding the same Hive table.
Policy 15 is a global allow policy on all Hive tables, all columns:
then I have policy 31 like this:
But whatever I try, user raj_ops still can run 'select * from employee' and get results.
Policy 31 is not evaluated as a 'deny' on the resource. I know you can add explicit Deny Conditons to the hive service, and I will try that. But the question is what the EXCLUDE switch (after the Hive column* box ) is good for when it is not picked up.
Created 10-18-2016 10:37 AM
For the moment I will not use this exclude switch because it behaves not as I (and my client) would expect. I will go for the Deny Conditions extension for the Hive service.
The exclude switch is confusing in that it seems to swap an allow into a deny, but it doesn't. It only excludes the resources from the policy
Created 10-18-2016 05:56 AM
you mentioned there is a global allow policy , can you please attach screenshot of that too
Created 10-18-2016 06:28 AM
@Deepak Sharma added in main question
Created 10-18-2016 06:48 AM
@Jasper in policy 15 i can see you have added * resources for all and raj_ops is part of the user , so he is able to access all
Created 10-18-2016 06:57 AM
@Deepak Sharma Yes, but I would expect that if 1 policy (15) says 'yes' and the other (31) says 'no', then it should be 'no' . As is stated in the schema in the manual
Created 10-18-2016 08:11 AM
No @Jasper this will be the case when there is deny condition for raj_ops , then raj_ops will be denied from performing operation, but in current scenario you can see both are allow condition , in such case if any of the condtion match then it will be allowed , and even manual also says same !
Created 10-18-2016 10:37 AM
For the moment I will not use this exclude switch because it behaves not as I (and my client) would expect. I will go for the Deny Conditions extension for the Hive service.
The exclude switch is confusing in that it seems to swap an allow into a deny, but it doesn't. It only excludes the resources from the policy
Created 10-18-2016 10:37 AM
For the moment I will not use this exclude switch because it behaves not as I (and my client) would expect. I will go for the Deny Conditions extension for the Hive service.
The exclude switch is confusing in that it seems to swap an allow into a deny, but it doesn't. It only excludes the resources from the policy