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

privilege,executor: update DBIsVisible() function for RBAC #10261

Merged
merged 3 commits into from
May 8, 2019

Commits on Apr 25, 2019

  1. privilege,executor: update DBIsVisible() function for RBAC

    `USE DB` check privileges using the DBIsVisible function, that function should
    take role into consideration
    
    	CREATE DATABASE app_db
    	CREATE ROLE 'app_developer'
    	GRANT ALL ON app_db.* TO 'app_developer
    	CREATE USER 'dev'@'localhost
    	GRANT 'app_developer' TO 'dev'@'localhost'
    	SET DEFAULT ROLE 'app_developer' TO 'dev'@'localhost'
    
    login as 'dev'@'localhost'
    Before:
      mysql> use app_db
      ERROR 1044 (42000): Access denied for user 'dev'@'localhost' to database 'app_db'
    
    After:
      mysql> use app_db;
      Database changed
    tiancaiamao committed Apr 25, 2019
    Configuration menu
    Copy the full SHA
    f1363e4 View commit details
    Browse the repository at this point in the history

Commits on May 8, 2019

  1. address comment

    tiancaiamao committed May 8, 2019
    Configuration menu
    Copy the full SHA
    9d2a773 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'master' into db-visible-role

    Lingyu Song authored May 8, 2019
    Configuration menu
    Copy the full SHA
    d254e83 View commit details
    Browse the repository at this point in the history