Bug #74685 | Scope for SSL options in GRANT statement is misleading and not proper documented | ||
---|---|---|---|
Submitted: | 4 Nov 2014 15:10 | Modified: | 8 May 2018 11:18 |
Reporter: | Peter Laursen (Basic Quality Contributor) | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Security: Privileges | Severity: | S4 (Feature request) |
Version: | 5.6.21 - | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[4 Nov 2014 15:10]
Peter Laursen
[8 May 2018 11:18]
MySQL Verification Team
Sorry for to be late. Your MySQL connection id is 2 Server version: 5.7.23 Source distribution 2018-APR-29 Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql 5.7 > create database sakila; Query OK, 1 row affected (0,00 sec) mysql 5.7 > SET sql_mode = ''; -- in order to ensure that NO_AUTO_CREATE_USER is not set. Query OK, 0 rows affected, 1 warning (0,00 sec) mysql 5.7 > mysql 5.7 > GRANT SELECT ON sakila.* TO someone@localhost REQUIRE SSL; Query OK, 0 rows affected, 1 warning (0,00 sec) mysql 5.7 > GRANT SELECT ON world.* TO someone@localhost; Query OK, 0 rows affected (0,00 sec) mysql 5.7 > mysql 5.7 > SHOW GRANTS FOR someone@localhost; +-----------------------------------------------------+ | Grants for someone@localhost | +-----------------------------------------------------+ | GRANT USAGE ON *.* TO 'someone'@'localhost' | | GRANT SELECT ON `sakila`.* TO 'someone'@'localhost' | | GRANT SELECT ON `world`.* TO 'someone'@'localhost' | +-----------------------------------------------------+ 3 rows in set (0,01 sec) Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 Server version: 5.6.41 Source distribution 2018-APR-29 Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql 5.6 > create database sakila; Query OK, 1 row affected (0,00 sec) mysql 5.6 > SET sql_mode = ''; -- in order to ensure that NO_AUTO_CREATE_USER is not set. Query OK, 0 rows affected (0,00 sec) mysql 5.6 > GRANT SELECT ON sakila.* TO someone@localhost REQUIRE SSL; Query OK, 0 rows affected (0,00 sec) mysql 5.6 > GRANT SELECT ON world.* TO someone@localhost; Query OK, 0 rows affected (0,00 sec) mysql 5.6 > SHOW GRANTS FOR someone@localhost; +---------------------------------------------------------+ | Grants for someone@localhost | +---------------------------------------------------------+ | GRANT USAGE ON *.* TO 'someone'@'localhost' REQUIRE SSL | | GRANT SELECT ON `sakila`.* TO 'someone'@'localhost' | | GRANT SELECT ON `world`.* TO 'someone'@'localhost' | +---------------------------------------------------------+ 3 rows in set (0,00 sec)