Marko Mäkelä
7b2bb67113
Merge 10.3 into 10.4
2020-10-29 13:38:38 +02:00
Alexey Botchkov
5a9484b784
MDEV-19443 server_audit plugin doesn't log proxy users.
...
PROXY_USER event added.
Conflicts:
plugin/server_audit/server_audit.c
2020-10-23 12:28:42 +04:00
Marko Mäkelä
af91266498
Merge 10.3 into 10.4
...
In main.index_merge_myisam we remove the test that was added in
commit a2d24def8c
because
it duplicates the test case that was added in
commit 5af12e4635
.
2020-04-16 12:12:26 +03:00
Sergey Vojtovich
06219c2ad4
MDEV-21599 - plugins.server_audit fails sporadically in buildbot
...
Fixed a couple of race conditions in the test case to ensure stable order
of events. Also removed all sleeps. Test execution time is down from 18s
to 0.15s.
On disconnect audit event is triggered after control is returned to
mysqltest client. Which means mysqltest may issue more commands
concurrently before disconnect is actually logged.
Similar problem happens with regular query execution: an event is
triggered after control is returner to the client. Which may end
up with unstable order of events in different connections.
Delayed insert rows are enqueued separately and can either be combined
into single event or go as separate events. Reduced number of inserted
rows to 1 to stabilize result.
Also backported 2b3f6ab
from 10.5.
2020-04-10 19:35:53 +04:00
Oleksandr Byelkin
cb4da5da74
MDEV-20604: Duplicate key value is silently truncated to 64 characters in print_keydup_error
...
Added indication of truncated string for "s" and "M" formats
2020-04-01 11:34:32 +02:00
Oleksandr Byelkin
a15234bf4b
Merge branch '10.3' into 10.4
2019-12-09 15:09:41 +01:00
HF
3fb0fe400c
MENT-510 Failing test(s): perfschema.threads_insert_delayed.
...
orig_test_id should be set properly.
Also fixed sporadic test failure.
2019-11-29 21:25:52 +00:00
Alexey Botchkov
bfa6db38cd
MENT-510 Failing test(s): perfschema.threads_insert_delayed.
...
The thread_id of the INSERT DELAYED thread should not be set to 0.
2019-11-27 09:31:47 +04:00
Alexey Botchkov
0e403db2c8
MENT-237 Audit to show INSERT DELAYED for the executing user.
...
Add notifications about the user and connection that actually
did the DELAYED insert.
2019-11-27 09:23:00 +04:00
Sergei Golubchik
7ad1e4a546
fix tests, failing after daf333abcf
2019-06-17 12:26:25 +02:00
Marko Mäkelä
f98bb23168
Merge 10.3 into 10.4
2019-05-29 22:17:00 +03:00
Alexey Botchkov
d4e9a50e88
MDEV-17456 Malicious SUPER user can possibly change audit log configuration without leaving traces.
...
Fix for the SET GLOBAL server_audit_loggin=on; added.
2019-05-19 23:50:23 +04:00
Marko Mäkelä
d3dcec5d65
Merge 10.3 into 10.4
2019-05-05 15:06:44 +03:00
Alexey Botchkov
a529188e05
MDEV-17456 Malicious SUPER user can possibly change audit log configuration without leaving traces.
...
The 'SET server_audit_logging ' statements should be logged no matter
what.
2019-04-29 01:25:17 +04:00
Alexey Botchkov
cd26cdcd97
MDEV-19141 server_audit_excl_users accepts only values with less than 1024 chars.
...
Since this limit is imposed by the SHOW_VAR_FUNC_BUFF_SIZE, we just
launch the error message.
2019-04-29 00:11:48 +04:00
Sergei Golubchik
4abb8216a0
MDEV-17658 change the structure of mysql.user table
...
Implement User_table_json.
Fix scripts to use mysql.global_priv.
Fix tests.
2018-12-12 00:31:44 +01:00
Sergei Golubchik
a76aadf7bc
MDEV-17658 change the structure of mysql.user table
...
Introduce User_table_tabular(mysql.user) and User_table_json(mysql.global_priv).
The latter is not implemented.
Automatic fallback to the old implementation works.
Results change because privilege tables are opened in a different
order now.
2018-12-12 00:31:04 +01:00
Varun Gupta
93c360e3a5
MDEV-15253: Default optimizer setting changes for MariaDB 10.4
...
use_stat_tables= PREFERABLY
optimizer_use_condition_selectivity= 4
2018-12-09 09:22:00 +05:30
Marko Mäkelä
82f0dc35aa
Merge 10.1 into 10.2
2018-05-11 18:33:58 +03:00
Alexey Botchkov
dab4abbb09
MDEV-15480 Audit plugin does not respect QUERY_DML for audit plugin.
...
QUERY_DML_NO_SELECT flag added.
2018-05-10 19:23:35 +04:00
Marko Mäkelä
843e4508c0
Merge 10.1 into 10.2
2017-11-07 23:02:39 +02:00
Alexey Botchkov
3a3f1328fe
MDEV-13921 Audit log writes invalid SQL if single-line comments are
...
present.
Escape special characters (like \r \n \t) instead of
replacing them with spaces.
2017-11-03 17:15:55 +04:00
Sergei Golubchik
4a5d25c338
Merge branch '10.1' into 10.2
2016-12-29 13:23:18 +01:00
Sergei Golubchik
77ce4ead81
Merge branch '5.5' into 10.0
2016-09-27 09:21:19 +02:00
Sergei Golubchik
d61e5260fb
MDEV-10441 Document the server_audit_loc_info variable
...
fix PLUGIN_VAR_NOSYSVAR | PLUGIN_VAR_NOCMDOPT plugin thdvars to work.
use that for server_audit_loc_info
2016-09-26 17:48:08 +02:00
Sergei Golubchik
932646b1ff
Merge branch '10.1' into 10.2
2016-06-30 16:38:05 +02:00
Sergei Golubchik
c081c978a2
Merge branch '5.5' into bb-10.0
2016-06-21 14:11:02 +02:00
Sergei Golubchik
c73b987e73
MDEV-8328 Evaluation of two "!" operators depends on space in beetween
...
fix the lexer to backtrack when parsing
"<=", "<>", "!=", ">=", "<<", ">>", "<=>".
2016-06-14 13:59:55 +02:00
Sergey Vojtovich
282497dd6d
MDEV-6720 - enable connection log in mysqltest by default
2016-03-31 10:11:16 +04:00
Alexey Botchkov
1793646d78
Merge branch '5.5' into 10.0
...
Conflicts:
plugin/server_audit/server_audit.c
2016-01-25 16:37:08 +04:00
Alexey Botchkov
c9552533c9
MDEV-9106 Audit plugin compiled with MariaDB can't install on MySQL 5.7.
...
The audit API was seriously changed in MySQL 5.7.
so we had to adapt the plugin's code to that.
2016-01-12 18:43:55 +04:00
Sergei Golubchik
810cf362ea
Merge branch '5.5' into 10.0
2015-06-11 20:20:35 +02:00
Alexey Botchkov
1ae05db49c
MDEV-8078 Memory disclosure/buffer overread on audit plugin.
...
If the SET PASSWORD query doesn't have the password string,
the parsing of it can fail. It manifested first in MySQL 5.6 as
it started to hide password lines sent to the plugins.
Fixed by checking for that case.
2015-06-07 15:40:42 +05:00
Alexey Botchkov
db0ecf2662
MDEV-8032 [PATCH] audit plugin - csv output broken.
...
Symbols like TAB or NEWLINE should be escaped, which was
forgotten in one place.
2015-06-06 19:12:44 +05:00
Sergei Golubchik
49c853fb94
Merge branch '5.5' into 10.0
2015-05-04 22:00:24 +02:00
Alexey Botchkov
cc84ac3be4
MDEV-7596 audit plugin - record full query / document line length / make buffer configurable.
...
The serve_audit_query_log_limit variable implemented.
Also QUERY_DCL filter added.
2015-03-31 13:10:43 +05:00
Alexey Botchkov
5e20df2ff9
MDEV-7641 Server crash on set global server_audit_incl_users=null.
...
plugin_variable_update() can get NULL as a value for a string parameter.
Needs to be checked and handled properly.
2015-03-19 19:46:08 +04:00
Sergei Golubchik
d7e7862364
Merge branch '5.5' into 10.0
2015-02-18 15:16:27 +01:00
Alexey Botchkov
919f40e464
Audit plugin v1.2.0.
2015-02-08 22:38:19 +04:00
Michael Widenius
e63c03db8d
Merge with 10.0-base
...
Automatic merge, except for server_audit.cc that had to be modified slightly
Changes to xtradb and innobase where ignored was these made no sence for 10.0
2014-03-13 16:43:11 +02:00
Michael Widenius
1727849659
Merge with 5.5
2014-03-11 17:49:09 +02:00
Alexey Botchkov
222e73c7a1
MariaDB Audit plugin added.
2014-02-24 23:40:16 +04:00