Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
"ALTER DATABASE" command can get entities from WriteEntity, and get nothing from ReadEntity. So this command should check output privilege instead of input.
What's more, "ALTER TABLE" also check output privilege, likes below:
HiveAuthzPrivileges alterTablePrivilege = new HiveAuthzPrivileges.AuthzPrivilegeBuilder().
addOutputObjectPriviledge(AuthorizableType.Table, EnumSet.of(DBModelAction.ALTER)).
setOperationScope(HiveOperationScope.TABLE).
setOperationType(HiveOperationType.DDL).
build();
Attachments
Attachments
Issue Links
- blocks
-
SENTRY-498 Sentry integration with Hive authorization framework V2
- Resolved
- is depended upon by
-
SENTRY-514 Enable e2e tests for authorization V2
- Resolved