Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
extension/serverless: introduce serverless audit log (pingcap#870)
* init * audit: init first version of audit log * audit: support log global rotate * audit: update log keys * audit: more common notify implement * audit: add record id * audit: rename some names * audit: default use normal log path * audit: add server ip info * audit: do some refine * audit: Add some log keys * audit: update some item format * audit: add stmt demo * audit: support redact * audit: fix bug * audit: update filter * audit: update filter * audit: check user * audit: update * update * audit: update * audit: fix bug * aduit: update * audit: update * update * update * audit: add filter unit test * fmt * Add tests for `tidb_audit_enabled` and `tidb_audit_log` * Add tests for `tidb_audit_log_max_size` and `tidb_audit_log_max_lifetime` * Add tests for `tidb_audit_log_reserved_*` * TODO: TestAuditLogRedact * Fininsh `TestAuditLogRedact` * Update (pingcap#1) * fix typo (pingcap#2) * Add `TRANSACTION` * rename sysvar * audit_log_create_filter, audit_log_remove_filter * finish function call and table test * test privilege * finish test for sysvar * TODO: TestConnectionEvenClass * update * audit: fix lint for audit log (pingcap#1) * audit: fix UT failure caused by the change of redact log (pingcap#3) * audit: use `t.TempDir()` to make test stable (pingcap#4) * audit: fix test failed for 7.1 * Add `OWNERS` file (pingcap#35) Co-authored-by: Chao Wang <[email protected]> * audit: fix panic when logging sometime (pingcap#26) (pingcap#31) * test: fix unstable test TestAuditLogReservedDays (pingcap#8) * Format sysvar_test.go * audit: use `StatementContext` to generate redacted SQL (pingcap#9) * audit: fix panic when logging sometime (pingcap#26) * update * add owner * Update OWNERS --------- Co-authored-by: CbcWestwolf <[email protected]> Co-authored-by: wuhuizuo <[email protected]> * audit: fix panic sometimes when `create user` without password (pingcap#37) (pingcap#39) * This is an automated cherry-pick of pingcap#37 Signed-off-by: ti-chi-bot <[email protected]> * fix conflict --------- Signed-off-by: ti-chi-bot <[email protected]> Co-authored-by: 王超 <[email protected]> * extension/audit: introduce serverless audit log Signed-off-by: Wen Jiazhi <[email protected]> * update bazel config Signed-off-by: Wen Jiazhi <[email protected]> * support enable audit log when activate Signed-off-by: Wen Jiazhi <[email protected]> * add gwconnid to audit log Signed-off-by: Wen Jiazhi <[email protected]> * comment unstable test * update bazel * add log about activate request * diff audit log enabled * audit: fix memory leak for executeSQL (pingcap#44) (pingcap#45) * This is an automated cherry-pick of pingcap#44 Signed-off-by: ti-chi-bot <[email protected]> * Update util.go --------- Signed-off-by: ti-chi-bot <[email protected]> Co-authored-by: 王超 <[email protected]> * Update extension/serverless/OWNERS --------- Signed-off-by: ti-chi-bot <[email protected]> Signed-off-by: Wen Jiazhi <[email protected]> Co-authored-by: Chao Wang <[email protected]> Co-authored-by: cbcwestwolf <[email protected]> Co-authored-by: Ti Chi Robot <[email protected]> Co-authored-by: wuhuizuo <[email protected]> Co-authored-by: zzm <[email protected]> Co-authored-by: Yuqing Bai <[email protected]>
- Loading branch information