Skip to content
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

Support MySQL GRANT SENSITIVE_VARIABLES_OBSERVER #4412

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sql/mysql/Oracle/examples/grant.sql
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ ENCRYPTION_KEY_ADMIN, FIREWALL_ADMIN, FIREWALL_USER, GROUP_REPLICATION_ADMIN, IN
NDB_STORED_USER, PERSIST_RO_VARIABLES_ADMIN, REPLICATION_APPLIER, REPLICATION_SLAVE_ADMIN, RESOURCE_GROUP_ADMIN,
RESOURCE_GROUP_USER, ROLE_ADMIN, SESSION_VARIABLES_ADMIN, SET_USER_ID, SHOW_ROUTINE, SYSTEM_VARIABLES_ADMIN, AUTHENTICATION_POLICY_ADMIN,
TABLE_ENCRYPTION_ADMIN, VERSION_TOKEN_ADMIN, XA_RECOVER_ADMIN, AUDIT_ABORT_EXEMPT, FIREWALL_EXEMPT, SKIP_QUERY_REWRITE, TP_CONNECTION_ADMIN ON *.* TO `admin`@`localhost`;
GRANT SENSITIVE_VARIABLES_OBSERVER ON *.* TO `admin`@`%`;
#NB: GRANT SELECT, INSERT, UPDATE ON *.* TO u4 AS u1 WITH ROLE r1;
#NB: GRANT SELECT, RELOAD, REPLICATION SLAVE, REPLICATION CLIENT, SHOW VIEW, EVENT, TRIGGER ON *.* TO 'xuser1'@'%', 'xuser2'@'%'
# AS 'root'@'%' WITH ROLE 'cloudsqlsuperuser'@'%';
Expand Down
1 change: 1 addition & 0 deletions sql/mysql/Positive-Technologies/MySqlLexer.g4
Original file line number Diff line number Diff line change
Expand Up @@ -811,6 +811,7 @@ RESOURCE_GROUP_USER : 'RESOURCE_GROUP_USER';
ROLE_ADMIN : 'ROLE_ADMIN';
ROUTINE : 'ROUTINE';
S3 : 'S3';
SENSITIVE_VARIABLES_OBSERVER: 'SENSITIVE_VARIABLES_OBSERVER';
SERVICE_CONNECTION_ADMIN : 'SERVICE_CONNECTION_ADMIN';
SESSION_VARIABLES_ADMIN : QUOTE_SYMB? 'SESSION_VARIABLES_ADMIN' QUOTE_SYMB?;
SET_USER_ID : 'SET_USER_ID';
Expand Down
2 changes: 2 additions & 0 deletions sql/mysql/Positive-Technologies/MySqlParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -1681,6 +1681,7 @@ privilege
| RESOURCE_GROUP_ADMIN
| RESOURCE_GROUP_USER
| ROLE_ADMIN
| SENSITIVE_VARIABLES_OBSERVER
| SERVICE_CONNECTION_ADMIN
| SESSION_VARIABLES_ADMIN
| SET_USER_ID
Expand Down Expand Up @@ -3057,6 +3058,7 @@ keywordsCanBeId
| SCHEMA_NAME
| SECURITY
| SECONDARY_ENGINE_ATTRIBUTE
| SENSITIVE_VARIABLES_OBSERVER
| SEQUENCE_TABLE
| SERIAL
| SERVER
Expand Down
1 change: 1 addition & 0 deletions sql/mysql/Positive-Technologies/examples/grant.sql
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ ENCRYPTION_KEY_ADMIN, FIREWALL_ADMIN, FIREWALL_USER, GROUP_REPLICATION_ADMIN, IN
NDB_STORED_USER, PERSIST_RO_VARIABLES_ADMIN, REPLICATION_APPLIER, REPLICATION_SLAVE_ADMIN, RESOURCE_GROUP_ADMIN,
RESOURCE_GROUP_USER, ROLE_ADMIN, SESSION_VARIABLES_ADMIN, SET_USER_ID, SHOW_ROUTINE, SYSTEM_VARIABLES_ADMIN, AUTHENTICATION_POLICY_ADMIN,
TABLE_ENCRYPTION_ADMIN, VERSION_TOKEN_ADMIN, XA_RECOVER_ADMIN, AUDIT_ABORT_EXEMPT, FIREWALL_EXEMPT, SKIP_QUERY_REWRITE, TELEMETRY_LOG_ADMIN, TP_CONNECTION_ADMIN ON *.* TO `admin`@`localhost`;
GRANT SENSITIVE_VARIABLES_OBSERVER ON *.* TO `admin`@`%`;
GRANT SELECT, INSERT, UPDATE ON *.* TO u4 AS u1 WITH ROLE r1;
GRANT SELECT, RELOAD, REPLICATION SLAVE, REPLICATION CLIENT, SHOW VIEW, EVENT, TRIGGER ON *.* TO 'xuser1'@'%', 'xuser2'@'%'
AS 'root'@'%' WITH ROLE 'cloudsqlsuperuser'@'%';
Expand Down
Loading