-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Support role management #7346
Commits on Mar 20, 2017
-
Add syntax support for SHOW GRANTS
Amruta Gokhale authored and Andrii Rosa committedMar 20, 2017 Configuration menu - View commit details
-
Copy full SHA for 1839203 - Browse repository at this point
Copy the full SHA 1839203View commit details -
Add PrivilegeInfo class to SPI
The grantOption flag in PrivilegeInfo represents the WITH GRANT OPTION clause in GRANT. Also add UPDATE privilege to the SPI Privilege enum.
Amruta Gokhale authored and Andrii Rosa committedMar 20, 2017 Configuration menu - View commit details
-
Copy full SHA for 90718e9 - Browse repository at this point
Copy the full SHA 90718e9View commit details -
Make metadata changes for SHOW GRANTS
Amruta Gokhale authored and Andrii Rosa committedMar 20, 2017 Configuration menu - View commit details
-
Copy full SHA for 0fcd676 - Browse repository at this point
Copy the full SHA 0fcd676View commit details -
Implement SHOW GRANTS for Hive connector
Amruta Gokhale authored and Andrii Rosa committedMar 20, 2017 Configuration menu - View commit details
-
Copy full SHA for 5b4a37e - Browse repository at this point
Copy the full SHA 5b4a37eView commit details -
Add table in INFORMATION_SCHEMA to store table privileges
Amruta Gokhale authored and Andrii Rosa committedMar 20, 2017 Configuration menu - View commit details
-
Copy full SHA for e89bdca - Browse repository at this point
Copy the full SHA e89bdcaView commit details -
Rewrite SHOW GRANTS as a SELECT query
Amruta Gokhale authored and Andrii Rosa committedMar 20, 2017 Configuration menu - View commit details
-
Copy full SHA for 249eba1 - Browse repository at this point
Copy the full SHA 249eba1View commit details -
Add product tests for SHOW GRANTS
Amruta Gokhale authored and Andrii Rosa committedMar 20, 2017 Configuration menu - View commit details
-
Copy full SHA for 8aa7d34 - Browse repository at this point
Copy the full SHA 8aa7d34View commit details -
Amruta Gokhale authored and Andrii Rosa committed
Mar 20, 2017 Configuration menu - View commit details
-
Copy full SHA for 73bc07e - Browse repository at this point
Copy the full SHA 73bc07eView commit details -
Add access control for SHOW GRANTS
Amruta Gokhale authored and Andrii Rosa committedMar 20, 2017 Configuration menu - View commit details
-
Copy full SHA for ed7fe4b - Browse repository at this point
Copy the full SHA ed7fe4bView commit details -
Introduce CREATE ROLE and DROP ROLE statements
Andrii Rosa authored and Andrii Rosa committedMar 20, 2017 Configuration menu - View commit details
-
Copy full SHA for 32bfd18 - Browse repository at this point
Copy the full SHA 32bfd18View commit details -
Move PrincipalType to presto-spi
Andrii Rosa authored and Andrii Rosa committedMar 20, 2017 Configuration menu - View commit details
-
Copy full SHA for ddc52cf - Browse repository at this point
Copy the full SHA ddc52cfView commit details -
Expose Create/Drop/List roles methods in SPI
Andrii Rosa authored and Andrii Rosa committedMar 20, 2017 Configuration menu - View commit details
-
Copy full SHA for 2508566 - Browse repository at this point
Copy the full SHA 2508566View commit details -
Introduce <catalog>.information_schema.roles table
Andrii Rosa authored and Andrii Rosa committedMar 20, 2017 Configuration menu - View commit details
-
Copy full SHA for 010ac43 - Browse repository at this point
Copy the full SHA 010ac43View commit details -
Remove unused InMemoryHiveMetastore
Andrii Rosa authored and Andrii Rosa committedMar 20, 2017 Configuration menu - View commit details
-
Copy full SHA for fdf530f - Browse repository at this point
Copy the full SHA fdf530fView commit details -
Assign admin role to subset of users in FileHiveMetastore
Andrii Rosa authored and Andrii Rosa committedMar 20, 2017 Configuration menu - View commit details
-
Copy full SHA for 7cdb994 - Browse repository at this point
Copy the full SHA 7cdb994View commit details -
Speedup TestHiveFileBasedSecurity
Instead of creating the entire TPCH table set it is enough to create one small table, such as nation. After closing a query executor reference must be nullified to prevent memory leaks.
Andrii Rosa authored and Andrii Rosa committedMar 20, 2017 Configuration menu - View commit details
-
Copy full SHA for b882f1b - Browse repository at this point
Copy the full SHA b882f1bView commit details -
Implement Create/Drop/List roles in Hive connector
Andrii Rosa authored and Andrii Rosa committedMar 20, 2017 Configuration menu - View commit details
-
Copy full SHA for 515cb79 - Browse repository at this point
Copy the full SHA 515cb79View commit details -
Introduce GRANT/REVOKE roles statements
Andrii Rosa authored and Andrii Rosa committedMar 20, 2017 Configuration menu - View commit details
-
Copy full SHA for 4b86875 - Browse repository at this point
Copy the full SHA 4b86875View commit details -
Add Grant/Revoke/List roles authorization to the SPI
Andrii Rosa authored and Andrii Rosa committedMar 20, 2017 Configuration menu - View commit details
-
Copy full SHA for c396608 - Browse repository at this point
Copy the full SHA c396608View commit details -
Introduce APPLICABLE_ROLES view
Andrii Rosa authored and Andrii Rosa committedMar 20, 2017 Configuration menu - View commit details
-
Copy full SHA for f1909cd - Browse repository at this point
Copy the full SHA f1909cdView commit details -
Implement Grant/Revoke/ListApplicableRoles in Hive
Andrii Rosa authored and Andrii Rosa committedMar 20, 2017 Configuration menu - View commit details
-
Copy full SHA for 682ba55 - Browse repository at this point
Copy the full SHA 682ba55View commit details -
Leverage newly introduced method for recursive role grants traversal
Andrii Rosa authored and Andrii Rosa committedMar 20, 2017 Configuration menu - View commit details
-
Copy full SHA for 73e563a - Browse repository at this point
Copy the full SHA 73e563aView commit details -
Introduce access control for GRANT/REVOKE ROLE
Andrii Rosa authored and Andrii Rosa committedMar 20, 2017 Configuration menu - View commit details
-
Copy full SHA for bcd2424 - Browse repository at this point
Copy the full SHA bcd2424View commit details -
Prepare metastore interface to accept ROLE for GRANT/REVOKE
Andrii Rosa authored and Andrii Rosa committedMar 20, 2017 Configuration menu - View commit details
-
Copy full SHA for be8565f - Browse repository at this point
Copy the full SHA be8565fView commit details -
Andrii Rosa authored and Andrii Rosa committed
Mar 20, 2017 Configuration menu - View commit details
-
Copy full SHA for 0c35d15 - Browse repository at this point
Copy the full SHA 0c35d15View commit details -
Identity must hold all the selected roles for all the catalogs. ConnectorIdentity holds only the role selected for some particular catalog.
Andrii Rosa authored and Andrii Rosa committedMar 20, 2017 Configuration menu - View commit details
-
Copy full SHA for 9e95e0f - Browse repository at this point
Copy the full SHA 9e95e0fView commit details -
Andrii Rosa authored and Andrii Rosa committed
Mar 20, 2017 Configuration menu - View commit details
-
Copy full SHA for 1611266 - Browse repository at this point
Copy the full SHA 1611266View commit details -
Store catalog selected roles in Identity
Andrii Rosa authored and Andrii Rosa committedMar 20, 2017 Configuration menu - View commit details
-
Copy full SHA for d18f22d - Browse repository at this point
Copy the full SHA d18f22dView commit details -
Andrii Rosa authored and Andrii Rosa committed
Mar 20, 2017 Configuration menu - View commit details
-
Copy full SHA for 411ebde - Browse repository at this point
Copy the full SHA 411ebdeView commit details -
Implement SET ROLE in Hive Connector
Andrii Rosa authored and Andrii Rosa committedMar 20, 2017 Configuration menu - View commit details
-
Copy full SHA for 4b88b58 - Browse repository at this point
Copy the full SHA 4b88b58View commit details -
Accept ROLE in GRANT/REVOKE Privileges statements
Andrii Rosa authored and Andrii Rosa committedMar 20, 2017 Configuration menu - View commit details
-
Copy full SHA for 6c490ba - Browse repository at this point
Copy the full SHA 6c490baView commit details -
Configuration menu - View commit details
-
Copy full SHA for ecfbb4c - Browse repository at this point
Copy the full SHA ecfbb4cView commit details -
Rewrite SHOW ROLES as a select query
For SHOW ROLES, issue the query: select role_name as "Role" from catalog.information_schema.roles;
Configuration menu - View commit details
-
Copy full SHA for d2fda35 - Browse repository at this point
Copy the full SHA d2fda35View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2acf38d - Browse repository at this point
Copy the full SHA 2acf38dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 323b57b - Browse repository at this point
Copy the full SHA 323b57bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 66ff09e - Browse repository at this point
Copy the full SHA 66ff09eView commit details -
Instead of select * from information_schema.roles, SHOW CURRENT ROLES rewrites to select * from information_schema.enabled_roles. All users can see what roles they're currently using, so no need for access control checks.
Configuration menu - View commit details
-
Copy full SHA for acabc65 - Browse repository at this point
Copy the full SHA acabc65View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6a246e9 - Browse repository at this point
Copy the full SHA 6a246e9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 06a9042 - Browse repository at this point
Copy the full SHA 06a9042View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6969228 - Browse repository at this point
Copy the full SHA 6969228View commit details -
Configuration menu - View commit details
-
Copy full SHA for 02d9fbd - Browse repository at this point
Copy the full SHA 02d9fbdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7668f79 - Browse repository at this point
Copy the full SHA 7668f79View commit details -
Configuration menu - View commit details
-
Copy full SHA for 852d7cd - Browse repository at this point
Copy the full SHA 852d7cdView commit details -
Remove redundant checkDatabasePermission methods
Currently the only database permission we support is OWNERSHIP. Instead of creating that permission, and checking if it is granted it is more readable to just call `isDatabaseOwner` directly.
Andrii Rosa authored and Andrii Rosa committedMar 20, 2017 Configuration menu - View commit details
-
Copy full SHA for c4afa44 - Browse repository at this point
Copy the full SHA c4afa44View commit details -
Reorder methods in SqlStandardAccessControl
Andrii Rosa authored and Andrii Rosa committedMar 20, 2017 Configuration menu - View commit details
-
Copy full SHA for 79946ef - Browse repository at this point
Copy the full SHA 79946efView commit details -
Rename getGrantOptionForPrivilege to hasGrantOptionForPrivilege
Andrii Rosa authored and Andrii Rosa committedMar 20, 2017 Configuration menu - View commit details
-
Copy full SHA for d3a9ae0 - Browse repository at this point
Copy the full SHA d3a9ae0View commit details -
Remove hive privilege null check
Andrii Rosa authored and Andrii Rosa committedMar 20, 2017 Configuration menu - View commit details
-
Copy full SHA for e16aaf1 - Browse repository at this point
Copy the full SHA e16aaf1View commit details -
Admin user has all the available permissions for all the entities implicitly. So it may be considered as a database and table "owner" for all tables and databases. Also it has all the SELECT, INSERT, DELETE permissions implicitly.
Andrii Rosa authored and Andrii Rosa committedMar 20, 2017 Configuration menu - View commit details
-
Copy full SHA for 78bb8da - Browse repository at this point
Copy the full SHA 78bb8daView commit details -
Introduce isTableOwner method for readability
Andrii Rosa authored and Andrii Rosa committedMar 20, 2017 Configuration menu - View commit details
-
Copy full SHA for 187af6e - Browse repository at this point
Copy the full SHA 187af6eView commit details -
Andrii Rosa authored and Andrii Rosa committed
Mar 20, 2017 Configuration menu - View commit details
-
Copy full SHA for 567ffe1 - Browse repository at this point
Copy the full SHA 567ffe1View commit details -
Refactor canCreateView security checks
hasGrantOptionForPrivilege cannot be used in security checks for createView because it doesn't consider the session role.
Andrii Rosa authored and Andrii Rosa committedMar 20, 2017 Configuration menu - View commit details
-
Copy full SHA for 40467a8 - Browse repository at this point
Copy the full SHA 40467a8View commit details -
Consider enabled roles for permissions
Andrii Rosa authored and Andrii Rosa committedMar 20, 2017 Configuration menu - View commit details
-
Copy full SHA for 5e2cb1f - Browse repository at this point
Copy the full SHA 5e2cb1fView commit details -
Andrii Rosa authored and Andrii Rosa committed
Mar 20, 2017 Configuration menu - View commit details
-
Copy full SHA for 39a9298 - Browse repository at this point
Copy the full SHA 39a9298View commit details -
Reorder methods in HivePrivilegeInfo
Andrii Rosa authored and Andrii Rosa committedMar 20, 2017 Configuration menu - View commit details
-
Copy full SHA for bb4a0e0 - Browse repository at this point
Copy the full SHA bb4a0e0View commit details -
Move parsePrivilege to MetastoreUtil
Andrii Rosa authored and Andrii Rosa committedMar 20, 2017 Configuration menu - View commit details
-
Copy full SHA for b92e79c - Browse repository at this point
Copy the full SHA b92e79cView commit details -
Add grantor to HivePrivilegeInfo
Andrii Rosa authored and Andrii Rosa committedMar 20, 2017 Configuration menu - View commit details
-
Copy full SHA for 7a9775f - Browse repository at this point
Copy the full SHA 7a9775fView commit details -
Add grantor_type and grantee_type columns to table_privileges
Andrii Rosa authored and Andrii Rosa committedMar 20, 2017 Configuration menu - View commit details
-
Copy full SHA for 9e0a23d - Browse repository at this point
Copy the full SHA 9e0a23dView commit details -
More product tests for SET ROLE
Verify that role set with `SET ROLE` is considering during the access check.
Andrii Rosa authored and Andrii Rosa committedMar 20, 2017 Configuration menu - View commit details
-
Copy full SHA for 9b62dac - Browse repository at this point
Copy the full SHA 9b62dacView commit details