Commit Graph

13077 Commits

Author SHA1 Message Date
b5dc260d1b Add 2.3.17 release notes and update change log 2020-02-10 15:34:26 +02:00
cfb3f79b54 Update 2.3.17 Change Date 2020-02-10 15:28:38 +02:00
ef769573e4 MXS-2880 Fix typo in json output
"seconds_behing_master" -> "seconds_behind_master"
2020-02-10 12:59:30 +02:00
39cf6a8000 MXS-2860: Update last_read only on successful reads
This prevents empty or failed reads from updating the last_read flag which
in turn gives us the correct connection idle time when network errors
occur.
2020-02-10 10:46:32 +02:00
98e6bdcd90 MXS-2878: Enforce TLS for Connector-C connections
Connector-C connections now require TLS if the servers are configured with
it.
2020-02-10 10:46:32 +02:00
21989f7a16 MXS-2777: Fix installation directory
The drop-in directory must be created in /etc.
2020-02-10 10:46:31 +02:00
c0e20137ee MXS-2871: Fix postrm script
The script used the wrong command to stop the service. Added the missing
disable that mirrors the enable in the postinst script.
2020-02-10 10:46:31 +02:00
f6d848d58c MXS-2859: Treat newlines in strings as errors
Allowing raw newlines in string values breaks configuration serialization.
2020-01-30 10:44:00 +02:00
f53faba795 MXS-2857: Disable peer verification by default
The fix to the bug where peer certificates were validated but not required
caused the default behavior to change. The default should've changed at
the same time the fix was made.
2020-01-29 14:35:03 +02:00
a3fd5a0218 MXS-2854: Repeat read on schema event
The read needs to be repeated if MaxScale sends a schema event.
2020-01-29 14:35:03 +02:00
ea2665214f MXS-2851 Fix bug 2020-01-28 12:10:24 +02:00
9262e14aed MXS-2851 Add test that reveals bug 2020-01-28 11:21:37 +02:00
399f312911 MXS-2850 Fix bug 2020-01-28 11:08:27 +02:00
36dee78cee MXS-2850 Add test that reveals bug 2020-01-28 11:02:19 +02:00
41a07a4bd9 MXS-2801: Log INFO messages when session_trace is on
Since the session trace should contain all messages, the log priority
check should always return true when session_trace is on.
2020-01-27 15:39:39 +02:00
ed6cc78ab3 Merge branch '2.3' of github.com:mariadb-corporation/MaxScale into 2.3 2020-01-24 13:50:09 +02:00
08616692a4 Fixed tests to be compatible with GCloud VMs
GCloud machines has more strict access rights settings. Derect calls of
'chmod' are needed to make all configuration files (e.g. 'fwf/rules') be
accessable by Maxscale.
2020-01-24 13:47:26 +02:00
a0affe1bb7 MXS-2784: Use SQL to fetch default character set
The Connector-C was changed to always return only the client's charset,
not the actual charset that the connection ends up using. To cope with
this, the code has to use SQL to join the default character set name to
the default collation for it which can be used to extract the numeric ID
of the charset.
2020-01-24 10:51:15 +02:00
4641dc208f Fix sescmd debug assert
The assertion will not hold for COM_CHANGE_USER. This prevents the debug
assertion but the actual backend code should also be changed.
2020-01-23 18:38:05 +02:00
6dd4a04c5d cherry-pick: MXS-2803: Write all buffered data
Since the queued queries will never be inspected after the COM_CHANGE_USER
completes, they should all be written instead of only the first packet.
2020-01-23 18:38:05 +02:00
c04d6748d3 Fix debug assertion on inconsistent sescmd result
The slave backend would be closed twice if it would both respond with a
different result and be closed due to a hangup before the master
responded.

Added a test case that reproduced the problem.
2020-01-23 18:38:05 +02:00
4f1ae70765 Allow multiple fatal signals
As long as the same thread never handles more than one fatal signal,
multiple fatal signals can be processed. This should guarantee that the
stacktrace is printed into the log while guaranteeing that recursion never
takes place if the handling of a fatal signal causes a fatal signal to be
emitted.
2020-01-23 18:37:57 +02:00
b46974f3e7 Fix Galera lib seach in mariadb_nodes.cpp 2020-01-23 14:49:18 +02:00
e2976a6689 MXS-2843: Remove password hash from log_info output 2020-01-21 09:27:08 +02:00
b573fcf030 MXS-2839: Make ssl_ca_cert optional
Not defining ssl_ca_cert causes the system default verification chain to
be used.
2020-01-17 09:21:06 +02:00
46165f0894 Merge branch '2.3.16' into 2.3 2020-01-17 08:25:44 +02:00
9087f00c12 Update 2.3.16 release date 2020-01-17 08:15:05 +02:00
c7bedbe622 Add missing script
Copied from 2.4
2020-01-15 11:22:00 +02:00
b61ebfe82e Merge branch '2.3.16' into 2.3 2020-01-15 11:20:28 +02:00
6680a7dcdd Update 2.3 maintenance version 2020-01-15 11:15:54 +02:00
790d90f229 Update 2.3.16 Change Date 2020-01-15 11:08:51 +02:00
1168ca5045 Add 2.3.16 release notes and update change log 2020-01-15 10:51:34 +02:00
8b29760285 MXS-2812 Document "Auth Error" state
It was left out of the main configuration guide.
2020-01-15 10:40:11 +02:00
bb2f0a98cb Remove Cache filter storage_rocksdb documentation
The code is no longer present in MaxScale.
2020-01-15 10:38:41 +02:00
a65220165a Fix use of gw_get_shared_session_auth_info
If the client DCB of the session was passed into the function, it was
possible that the session pointer for it was already set to null. The
session pointer of an open DCB is never null but a client DCB's session
pointer can be null if accessed via the MXS_SESSION object.
2020-01-13 19:28:45 +02:00
aeab1bdc7d Cherry-pick: Fall back to pkill in run_ctrl_c.sh
The pkill executable is provided by the same package that provides ps
which is why it is more likely to be installed. Seems that the test VMs
don't always have killall installed.

Run the MaxScale process with the maxscale user instead of the root user
to prevent any new files from being owned by a different user.

Cherry-picked the commit a06c122a5e050071589f724758d6bbd3d8d3f419 from
develop.
2020-01-13 17:12:05 +02:00
1d8139587b MXS-2710: Move client_count handling into client DCB
Due to the fact that both client connections and listeners use sessions in
2.3, the client_count tracking must be done inside the client DCB. In
addition to this, the max_connections check didn't take the current
pending connection into account which caused an off-by-one error.

This commit fixes the connection_limit test failure that was introduced by
commit 6306519e5e75575ba083ee2f0edfe7e624da5d26.
2020-01-13 17:12:04 +02:00
4918914042 MXS-2810: Stop MaxScale on uninstall 2020-01-10 09:47:19 +02:00
c18cbb7a6d MXS-2758: Enable MaxScale after installation 2020-01-10 09:45:19 +02:00
6e8318f72f MXS-2829: Remove config file when deleting a filter 2020-01-08 15:30:15 +02:00
36b0196c3e MXS-2825: Fix basic user privileges
All POST, PUT, DELETE and PATCH commands should be prevented regardless of
whether they define a request body.
2020-01-07 10:40:41 +02:00
edb49d6f35 MXS-2824: Document basic user privileges
The documentation was not clear on what the difference between admin and
basic accounts is.
2020-01-07 10:40:41 +02:00
6306519e5e MXS-2710: Move client_count handling inside Session
By incrementing the counters when the session is created, we know that the
counter will always be decremented correctly. This does cause the listener
session to be counted as an actual session but this is already present in
the statistics calculations and is something we have to live with in 2.3
This change also makes it possible to overshoot the connection count
limitation as the session creation is delayed until authentication
fails. Both of these problems are fixed in 2.4.
2020-01-07 10:40:40 +02:00
aa83bc24ae MXS-2820: Log default database on auth failure
The default database was not exposed in the warning that was logged when
authentication failed. The authentication uses the username, host and the
default database to find the user entry and the lack of the default
database made it hard to know for sure which user entry a client should've
matched against.
2020-01-02 12:00:10 +02:00
964207cbea MXS-2820: Return correct value on wrong password 2020-01-02 11:34:47 +02:00
ff78a8bca5 Fix api reseponse 2019-12-30 10:06:59 +02:00
8de3339bc0 MXS-619: Restore old test
The test now performs the original test of not doing any queries between
the opening and closing of sessions.
2019-12-19 14:43:27 +02:00
484ff06795 MXS-619: Send fake response for unconnected DCBs
This causes the connection failure to be counted as an authentication
failure instead of a connection error. The former never causes the host to
be blocked which effectively solves the problem for most cases. The only
case where this would not work is where the network buffer for a backend
DCB is full right after the connection is created.
2019-12-19 14:21:27 +02:00
e725ebb7d0 Add missing set of fake event flag
The FakeEventTask called the actual DCB handler with a fake task but it
didn't set the fake event flag. This caused KILL queries to be treated as
if they were network errors.
2019-12-19 11:31:51 +02:00
a73b183555 MXS-2813: Mask password values in output
The password values are now masked with asterisks. This tells whether a
password is set or not but it does not expose any information about the
password itself.
2019-12-19 09:56:00 +02:00