Commit Graph

187 Commits

Author SHA1 Message Date
2a909bf2f1 Privileges: fix delete privilege check wrongly (#22971) 2021-03-09 19:26:55 +08:00
24b267d740 plugin, privilege: fix err check (#22998) 2021-03-03 21:32:54 +08:00
17eca20f18 executor, privilege: fix failure on grant USAGE privilege operation (#22748) 2021-03-02 22:30:54 +08:00
26086b297c privilege: remove any string concat (#22523) 2021-02-03 13:11:28 +08:00
34b4e9a033 planner, privilege: check for table not exists (#21776) 2020-12-23 17:40:37 +08:00
28c9e9290b *: gocritic fixes for commentFormatting (#21578) 2020-12-09 12:03:17 +08:00
42590965ed *: refactor CompilePattern and DoMatch used by like (#20610) 2020-11-04 13:25:52 +08:00
2f067c0542 *: redact arguments for Error (#20436) 2020-10-21 14:44:08 +08:00
449587a085 *: using standard error to replace terror (#19425) 2020-09-08 20:15:51 +08:00
3d33bdf49f privilege: fix wrong result of SHOW GRANTS (#19704)
* fix show grants user filter

* address comment

* address comment

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-09-07 14:45:20 +08:00
5d7c8ebeaa privilege: forbidden creating table in metrics_schema and performance_schema (#19705)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-09-04 12:54:21 +08:00
6cba2702c0 session: fix mysql_list_fields leaking table info (#19554)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-29 11:30:21 +08:00
6fdd609c00 privilege: fix user change after show grants and add user existed check for show grants (#19568)
* fix show grant change user object and add check

* fix lint

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-28 20:54:21 +08:00
baf09916b9 planner: privilege check for SELECT INTO OUTFILE (#19553)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-28 16:43:03 +08:00
8c8a96773e privilege: fix show grants for column privilege (#19030)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-10 17:27:17 +08:00
5f59f01625 *: fix error message of access denied (#17449)
Co-authored-by: tiancaiamao <tiancaiamao@gmail.com>
2020-06-05 19:51:54 +08:00
9e16c59ef0 privileges: support require SAN (#17539) 2020-06-05 11:24:43 +08:00
ac30f5322e mockstore: introducing embedded unistore (#17156) 2020-05-18 17:28:44 +08:00
468b8c6f7b executor, privilege: introduce a new privilege for the set config statement (#16847) 2020-04-27 14:17:38 +08:00
82bb3ced74 makefile: let make fmt ensure std imports before non-std (#16816) 2020-04-26 10:37:24 +08:00
26ba532e9d plan, privilege:fix load data privilege check (#16607) 2020-04-23 00:05:36 +08:00
b1d11a7091 *: rename statement summary tables (#16188) 2020-04-15 15:30:32 +08:00
c561d5aa99 *: remove useless conversions and omit some types (#16262) 2020-04-10 00:23:06 +08:00
d60567f765 privilege: fix select current_role() error (#15534) 2020-03-23 13:37:34 +08:00
55532d99e2 Moved connection-time SSL errors from Debug to Info log level (#15308) 2020-03-13 10:10:02 +08:00
9f0736ee8b errno: move the error code from the parser/mysql to tidb/errno (#15277) 2020-03-11 15:40:21 +08:00
9df0780764 privilege: add DDL and DML privilege check for system tables (#15095) 2020-03-04 14:57:47 +08:00
8431c10258 privilege: fix compatibility of DBIsVisible (#14862) 2020-02-25 21:25:36 +08:00
344c48d3b4 *: change field name 'password' to 'authentication_string' in mysql.user (#14598) 2020-02-19 11:58:42 +08:00
fa04a3218d *: add privilege check for slow_query and cluster memory table (#14451) 2020-02-12 18:28:44 +08:00
465af00b46 *: use new registrable terror (#14606) 2020-02-06 16:40:26 +08:00
e4eb58c86d executor: grant table level privilege should check table exist (#14540) 2020-01-30 11:57:23 +08:00
4ed347cff8 planner,session: add Reload and File privilege, check Reload for the flush statement (#14319) 2020-01-09 19:59:12 +08:00
c2319eca4d privilege: fix DBIsVisible privilege check (#14190) 2020-01-07 11:10:09 +08:00
d006443194 type: encapsulate Time API (#14288) 2019-12-31 12:41:09 +08:00
adc4931a94 privilege: Support identifying user created by IP and net mask (#14123) 2019-12-27 12:34:59 +08:00
cd07c4550d *: support certificate based authentication (#13955) 2019-12-23 11:37:29 +08:00
5da10ffecc *: refine some error code (#14002) 2019-12-12 11:09:58 +08:00
43334246cc privilege/privileges: improve authentication performance when there are a lot of privilege records (#13998) 2019-12-12 10:59:28 +08:00
826e1d712b *: cleanup error code (#13874) 2019-12-03 20:29:09 +08:00
2de2baa256 *: fix staticcheck errors in folder bindinfo, config, infoschema, meta and privilege (#13702) 2019-11-26 17:27:29 +08:00
4b830aa7f6 *: Remove unused code (#13674) 2019-11-22 11:37:07 +08:00
d473f2d855 privilege: add authHost and use authHost to verificate (#13544) 2019-11-22 11:07:07 +08:00
7c63212b07 privilege: fix REVOKE privilege check incompatibility with MySQL (#13014) 2019-11-09 11:03:14 +08:00
02b7634954 privileges: refine infoschema privilege check (#13006) 2019-10-30 16:45:23 +08:00
9a074ca8a7 executor: fix inconsistent of grants privileges with MySQL when executing grant all on ... (#12330) 2019-10-23 11:33:53 +08:00
5bf03c8df4 executor: add SHUTDOWN command and privilege check (#12804) 2019-10-21 21:49:56 +08:00
0cb06e699d planner/core: fix point-get db privilege check (#12268) 2019-09-23 11:40:45 +08:00
9b0eb1a006 privilege: make 'grant all privileges' work right (#11449) 2019-07-31 14:51:10 +08:00
c00d8a95cf executor, privilege: fix some two bug of RBAC (#11273) 2019-07-22 13:08:03 +08:00