78292047a4
MDEV-19442 server_audit plugin doesn't consider proxy users in server_audit_excl_users/server_audit_incl_users.
...
Check the proxy user just as the connection user against the
incl_users_list and excl_users_list.
2020-12-28 15:12:32 +04:00
178d32f03b
MDEV-24318 server_audit doesn't respect filters for PROXY_CONNECT
...
events.
The log line should be added behind the filters.
2020-12-01 14:13:05 +04:00
cc1646dae8
MDEV-19443 server_audit plugin doesn't log proxy users.
...
PROXY_USER event added.
2020-10-23 09:17:36 +04:00
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
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
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
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
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
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
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
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
82f0dc35aa
Merge 10.1 into 10.2
2018-05-11 18:33:58 +03:00
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
843e4508c0
Merge 10.1 into 10.2
2017-11-07 23:02:39 +02:00
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
4a5d25c338
Merge branch '10.1' into 10.2
2016-12-29 13:23:18 +01:00
77ce4ead81
Merge branch '5.5' into 10.0
2016-09-27 09:21:19 +02:00
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
932646b1ff
Merge branch '10.1' into 10.2
2016-06-30 16:38:05 +02:00
c081c978a2
Merge branch '5.5' into bb-10.0
2016-06-21 14:11:02 +02:00
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
282497dd6d
MDEV-6720 - enable connection log in mysqltest by default
2016-03-31 10:11:16 +04:00
1793646d78
Merge branch '5.5' into 10.0
...
Conflicts:
plugin/server_audit/server_audit.c
2016-01-25 16:37:08 +04:00
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
810cf362ea
Merge branch '5.5' into 10.0
2015-06-11 20:20:35 +02:00
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
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
49c853fb94
Merge branch '5.5' into 10.0
2015-05-04 22:00:24 +02:00
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
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
d7e7862364
Merge branch '5.5' into 10.0
2015-02-18 15:16:27 +01:00
919f40e464
Audit plugin v1.2.0.
2015-02-08 22:38:19 +04:00
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
1727849659
Merge with 5.5
2014-03-11 17:49:09 +02:00
222e73c7a1
MariaDB Audit plugin added.
2014-02-24 23:40:16 +04:00