Commit Graph

41 Commits

Author SHA1 Message Date
7fc6ebbda4 privilege, session, server: consistently map user login to identity (#30204) 2021-11-30 17:01:53 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
7755d25aba *: Integrate SkyWalking-eyes to check license headers in CI and fix licenses headers (#27198) 2021-08-16 18:52:00 +08:00
723e2bc6d8 executor, privileges: fix infoschema.user_privileges privilege requirements (#26070) 2021-07-16 19:53:33 +08:00
4f26765194 privilege: add restricted read only (#25340) 2021-07-16 12:09:33 +08:00
cffaa8c4fa privilege: update out-of-date comment (#25946) 2021-07-06 20:33:29 +08:00
f23e1004ac *: Support for caching_sha2_password authentication (#24991) 2021-07-05 11:15:28 +08:00
f2cb145af2 planner, privilege: Add security enhanced mode part 4 (#24416) 2021-05-17 11:25:39 +08:00
90d02b2eed *: add support for dynamic privileges (#22778) 2021-04-01 00:17:24 +08:00
82bb3ced74 makefile: let make fmt ensure std imports before non-std (#16816) 2020-04-26 10:37:24 +08:00
fa04a3218d *: add privilege check for slow_query and cluster memory table (#14451) 2020-02-12 18:28:44 +08:00
cd07c4550d *: support certificate based authentication (#13955) 2019-12-23 11:37:29 +08:00
1690912375 privilege,executor: update DBIsVisible() function for RBAC (#10261) 2019-05-08 15:23:46 +08:00
0b8ce46f0c priviege, executor: add set role option (#10268) 2019-05-08 14:10:21 +08:00
58d1bb8cb3 privilege: support authentication with active roles (#10125) 2019-04-23 10:05:53 +08:00
7cc7323138 plan, privilege: add role support for SHOW GRANT (#10016) 2019-04-21 12:38:28 +08:00
abeddab5ba privilege, executor: support SET DEFAULT ROLE (#9949) 2019-04-17 14:25:49 +08:00
778c3f4a5a privilege, executor: add SET ROLE and CURRENT_ROLE support (#9581) 2019-03-21 13:11:27 +08:00
aabd330d1e *: support "show create user" (#9240) 2019-02-21 13:58:19 +08:00
4ad4684da1 privilege,planner: handle View's security privilege check (#9194) 2019-02-12 10:35:18 +08:00
89dda9d9a8 *: move parser to a separate repository (#8036) 2018-10-25 11:12:10 +08:00
19e4e2fa9f expression: MySQL compatible current_user function (#7801) 2018-10-16 13:53:07 +08:00
bab4993902 *: check privilege for 'show create table' and infoschema tables (#6426)
1. 'show create table xxx' require privilege for the table
2. 'select * from information_schema.tables' should only returns data visible to user
2018-05-02 21:05:13 -05:00
4e1a114e68 *: move package context to sessionctx (#5890) 2018-02-22 18:03:38 +08:00
62433663e5 util/types: change types path (#5007)
* util/types: change types path
2017-11-04 10:37:14 -05:00
a88ebb1cf6 *: use structure to store user identity (#4078)
*: use structure to store user identity
2017-08-14 03:37:36 -05:00
04f9318525 privilege:correct comments mistake (#3250) 2017-05-12 17:46:20 +08:00
eba4e7138b privilege: clean up some old code (#3005) 2017-04-06 22:43:46 +08:00
b9deb5e7aa privilege: rename interface name from Checker to Manager (#2969) 2017-03-31 10:55:38 +08:00
3c494b7df1 *: add INFORMATION_SCHEMA.USER_PRIVILEGES table (#2963) 2017-03-30 17:10:14 +08:00
60ba388e0c *: check visibility for show databases and tables (#2934) 2017-03-28 11:28:50 +08:00
281e8553b4 tidb,privilege: use new privilege implementation for connection verification (#2607) 2017-02-09 18:08:37 +08:00
cb1c2f0ff9 *: update privilege Checker interface and use it (#2557) 2017-02-06 11:28:06 +08:00
7309adf048 *: Add test case for show grants plan and fix a few bugs 2015-10-28 16:52:58 +08:00
0d1abd5f0b *: Implement ShowGrants for UserPrivileges and add some test cases 2015-10-28 13:27:49 +08:00
09b66390cf *: Support show grants syntax and add ShowGrant interface to UserPrivileges 2015-10-27 22:01:07 +08:00
9df627b816 privilege: Address comment 2015-10-23 16:38:21 +08:00
35f2e98449 *: Refactor privileges
Address comments
2015-10-22 11:31:35 +08:00
138497aaf5 *: Add privilege checker and unit tests. 2015-10-20 16:46:58 +08:00
fd9bcc6f98 privilege: backup 2015-10-20 08:42:36 +08:00
aab178446e privilege: Add privilege checker interface 2015-10-19 22:25:04 +08:00