Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed CORE-735: User rights for metadata changes.
We check DDL in DDL nodes and skip at vio level. vio level still exists for direct metadata editing.
- Loading branch information
1 parent
a1d0c2b
commit 573e93e
Showing
34 changed files
with
1,119 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
SQL Language Extension: GRANT/REVOKE permissions on DDL operations | ||
|
||
Implements capability to manage permissions on DDL operations. | ||
|
||
Author: | ||
Red Soft Corporation, roman.simakov(at)red-soft.biz | ||
|
||
Syntax is: | ||
|
||
GRANT CREATE <OBJECT> TO USER|ROLE [with grant option]; | ||
GRANT ALTER ANY <OBJECT> TO USER|ROLE [with grant option]; | ||
GRANT DROP ANY <OBJECT> TO USER|ROLE [with grant option]; | ||
|
||
REVOKE [grant option for] CREATE <OBJECT> FROM USER|ROLE; | ||
REVOKE [grant option for] ALTER ANY <OBJECT> FROM USER|ROLE; | ||
REVOKE [grant option for] DROP ANY <OBJECT> FROM USER|ROLE; | ||
|
||
Where <OBJECT> could be: | ||
TABLE, VIEW, PROCEDURE, FUNCTION, PACKAGE, GENERATOR, SEQUENCE, DOMAIN, | ||
EXCEPTION, ROLE, SHADOW, DATABASE, CHARACTER SET, COLLATION, FILTER | ||
|
||
Description: | ||
|
||
Makes it possible to grant and revoke privileges on DDL operations. | ||
|
||
DDL operations for managing triggers and indices re-use table privileges. | ||
|
||
If ANY keyword is used a user will be able to perform operation on any object. Otherwise only on object which he owns. | ||
If ANY keyword was used due GRANT operation it also must be used in according REVOKE operation. | ||
|
||
Sample: | ||
|
||
GRANT CREATE TABLE TO Joe; | ||
GRANT ALTER ANY TABLE TO Joe; | ||
REVOKE CREATE TABLE FROM Joe; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.