----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/68332/ -----------------------------------------------------------
Review request for sentry, Arjun Mishra, kalyan kumar kalvagadda, and Na Li. Bugs: sentry-2352 https://issues.apache.org/jira/browse/sentry-2352 Repository: sentry Description ------- Added the following matrix of privileges on the DESCRIBE TABLE and SHOW TABLES: DESCRIBE table allowed and not allowed privileges: { null, NOT_ALLOWED }, // Means no privileges { DBModelAction.ALL, ALLOWED }, { DBModelAction.CREATE, NOT_ALLOWED }, { DBModelAction.SELECT, ALLOWED }, { DBModelAction.INSERT, ALLOWED }, { DBModelAction.ALTER, ALLOWED }, { DBModelAction.DROP, NOT_ALLOWED }, { DBModelAction.INDEX, NOT_ALLOWED }, { DBModelAction.LOCK, NOT_ALLOWED }, SHOW TABLES allowed and not allowed privileges: { null, NOT_ALLOWED }, // Means no privileges { DBModelAction.ALL, ALLOWED }, { DBModelAction.CREATE, NOT_ALLOWED }, { DBModelAction.SELECT, ALLOWED }, { DBModelAction.INSERT, ALLOWED }, { DBModelAction.ALTER, ALLOWED }, { DBModelAction.DROP, ALLOWED }, { DBModelAction.INDEX, ALLOWED }, { DBModelAction.LOCK, ALLOWED }, Diffs ----- sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/hive/authz/DefaultSentryValidator.java 1ab5be35dcb7991f723c0bb885ed2a15c6f5873a sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/hive/authz/HiveAuthzBindingHookBase.java 447deaf5831675257be1bbb05934a1ab4826fe9e sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/hive/authz/HiveAuthzPrivilegesMap.java 78742fdacd72531eed4a7dde86871a57cf54493b sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hive/TestDescribeMetadataPrivileges.java PRE-CREATION sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hive/TestShowMetadataPrivileges.java PRE-CREATION Diff: https://reviews.apache.org/r/68332/diff/1/ Testing ------- Thanks, Sergio Pena