Commit Graph

139 Commits

Author SHA1 Message Date
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
0d563f1e2d stats: fix unstable test (#10953) 2019-06-27 13:51:16 +08:00
d244723a5e executor: remove unused structure RecordBatch (#10891) 2019-06-26 15:26:16 +08:00
c8d1ff7ca6 *: replace 'logutil.Logger(context.Background())' with 'logutil.BgLogger()' (#10866) 2019-06-21 19:13:31 +08:00
e9ab859d1d privileges: add SkipWithGrant check for RBAC methods (#10681) 2019-06-05 10:44:27 +08:00
c4db7b7655 planner, executor: fix show view privileges for explain (#10585) 2019-05-27 13:22:28 +08:00
8344801d32 executor,privilege: fix "show grants" result for RBAC (#10571) 2019-05-24 13:18:58 +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
5ffa06b6c3 *: unify and normalize the format of the log in the pkg of server (#9878) 2019-03-25 16:10:36 +08:00
778c3f4a5a privilege, executor: add SET ROLE and CURRENT_ROLE support (#9581) 2019-03-21 13:11:27 +08:00
45c9458236 planner: fix select denied message (#9627) 2019-03-11 18:38:08 +08:00
4f232e5c8d executor: add CREATE ROLE support (#9461) 2019-03-01 10:07:28 +08:00
c48ac8af18 session,privilege: fix account_locked default value for root (#9448) 2019-02-25 21:14:17 +08:00
0ee8899a6d session,privilege: upgrade TiDB, prepare data for RBAC (#9377)
RBAC(role based access control) needs the following data:
* Add account_locked column to mysql.user
* Add mysql.role_edges table
* Add mysql.default_roles table
* Add Create_role_priv and Drop_role_priv privilege
2019-02-22 18:00:01 +08:00
aabd330d1e *: support "show create user" (#9240) 2019-02-21 13:58:19 +08:00
d09e0e36b8 planner, privileges: add CreateViewPriv Support (#9153) 2019-02-15 17:11:40 +08:00
469fa877d6 util/hack: define a MutableString type for function hack.String (#9230) 2019-02-12 12:30:40 +08:00
4ad4684da1 privilege,planner: handle View's security privilege check (#9194) 2019-02-12 10:35:18 +08:00
54b6de0880 planner: improve error messages for mysql compat (#9112)
SHOW CREATE TABLE
CREATE USER
DROP USER
2019-01-18 20:58:46 +08:00
572ad80e23 planner: set correct mysql error code (#9095) 2019-01-17 15:01:03 +08:00
ec833bc4d2 *: fix some lints produced by golangci-lint (#8999) 2019-01-16 16:44:49 +08:00
00c4ff4fa9 *: refactor Executor.Next() to receive RecordBatch (#8994) 2019-01-14 15:04:36 +08:00
081a2c5ccc planner, privilege: check user priv on SET GLOBAL (#8837)
* planner, privilege: check user priv on SET GLOBAL
2019-01-04 19:32:10 -07:00
8e4d18a7ec domain: run FLUSH PRIVILEGES synchronous on GRANT (#8886)
MySQL compatible behavior.
2018-12-31 07:05:26 -07:00
fe01b1674e planner: privilege check ANALYZE TABLE stmt (#8486) 2018-12-28 11:10:35 +08:00
bd69b15e79 *: add the error check (#8770) 2018-12-24 22:22:00 +08:00
c137cada68 *: change golang.org/x/net/context to standard context (#8579) 2018-12-05 13:54:00 +08:00
73c91738d7 executor: privilege check USE command (#8418) 2018-11-27 19:06:17 +08:00
7a88c33a67 executor,planner: Improve SET PASSWORD (#8426) 2018-11-26 22:19:51 +08:00
bb6d0a935d privilege: return error on check for missing user (#8112) 2018-11-06 17:27:50 +08:00
32b1dbd8d5 *: rename "github.com/pkg/errors" to "github.com/pingcap/errors" (#8136)
We import "github.com/pkg/errors" in the code, and actually put
the "github.com/pingcap/errors" there in the vendor path.
That's a dirty hack, and prevent the introduce of Go module.
2018-11-01 16:09:07 +08:00
9ec7515743 *: Add few error checks in tests, clean error messages and fix a misspell (#8101) 2018-10-31 18:50:43 +08:00
a6123eaf62 *: Change privilege to use Auth* identity (#7954) 2018-10-29 20:01:31 +08:00
89dda9d9a8 *: move parser to a separate repository (#8036) 2018-10-25 11:12:10 +08:00
1028164a17 privilege: add USAGE in show grants for mysql compatibility (#7955) 2018-10-19 10:45:55 +08:00
19e4e2fa9f expression: MySQL compatible current_user function (#7801) 2018-10-16 13:53:07 +08:00
05b37de16e *: use chunk grow for simple executor (#7540) 2018-09-27 09:07:51 +08:00
cb03f2bec1 move from juju/errors to pkg/errors (#7151) 2018-09-12 15:42:20 +08:00
6e3bbe8e35 *: add HIGH_PRIORITY for the bootstrap SQLs. (#7616) 2018-09-06 00:49:12 +08:00
01c6bd820c privilege: execute admin command must have Super_priv. (#7486) 2018-08-24 21:54:31 +08:00
3d7d81c868 fix etcd watcher goroutine leak test failure (#7408) 2018-08-16 15:15:01 +08:00
90e4d02152 privilege/privileges: sort user records in privilege cache (#7211) 2018-08-02 22:05:41 +08:00
06021c7cfe remove types.Row interface (#7170) 2018-07-27 13:45:03 +08:00
1310996667 privilege/privileges: don't reuse chunk in loadTable function (#6976) 2018-07-04 17:37:42 +08:00
d2799801ae test: fix leak test (#6822)
make sure close dom/store in all test.
2018-06-12 17:14:22 +08:00