Commit Graph

14815 Commits

Author SHA1 Message Date
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
9bd692c7d3 Merge branch '2.3' into 2.4 2020-01-17 08:26:15 +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
e3e92e7d90 Document hintfilter limitations
The filter does not support prepared statements.
2020-01-16 14:02:05 +02:00
7b71716da7 Improve bug448 stability
By removing replication from the equation, the client IP check is more
stable. The get_client_ip function is only used by bug448 and could be
moved there.
2020-01-16 12:10:31 +02:00
3dda14a58e Reduce load of bug601 test
The test repeatedly creates connections which exhausts all the available
TCP connections. The test doesn't appear to test any specific
functionality with the repeated reconnections which means removing it
shouldn't be a problem.
2020-01-16 12:10:31 +02:00
60416f5b96 Fix max_connection for 2.4
The merge from 2.3 caused the mechanism to break in 2.4 where the old code
was correct.
2020-01-16 12:10:31 +02:00
a7e0142224 Merge branch '2.3' into 2.4 2020-01-15 11:29:37 +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
d03d9ae464 Merge branch '2.3' into 2.4 2020-01-15 11:00:59 +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
3ed30327e5 Merge branch '2.3' into 2.4 2020-01-14 10:10:58 +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
6c14ac7829 MXS-2834: Make retrying of trx deadlocks configurable
The behavior is not desirable in all cases and should be enabled only if
needed.
2020-01-11 11:53:01 +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
09c55111cc Merge branch '2.3' into 2.4 2020-01-09 06:59:00 +02:00
6e8318f72f MXS-2829: Remove config file when deleting a filter 2020-01-08 15:30:15 +02:00
b555115fa2 Merge branch '2.3' into 2.4 2020-01-07 11:12:02 +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
9428c31bc4 Merge branch '2.3' into 2.4 2020-01-02 11:22:52 +02:00
abef18a953 MXS-2798: Document net_write_timeout 2019-12-31 08:09:02 +02:00
08fc4b9146 Document retry_on_failure behavior
The feature does not work in 2.4 and should be documented as a
non-functional parameter that will be removed in the future.
2019-12-31 07:56:48 +02:00
2c2363c639 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.
2019-12-31 07:39:44 +02:00
1092203779 Allow non-head use of gwbuf_copy_data
Non-head links in a buffer chain can now be used with gwbuf_copy_data
without triggering the debug assertion.
2019-12-31 07:26:17 +02:00
03d45c2ace 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.
2019-12-31 07:26:16 +02:00
7fb0987d72 Bump handlebars from 4.1.2 to 4.5.3 in /maxctrl
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.1.2 to 4.5.3.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/wycats/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.1.2...v4.5.3)

Signed-off-by: dependabot[bot] <support@github.com>
2019-12-30 10:08:46 +02:00
ff78a8bca5 Fix api reseponse 2019-12-30 10:06:59 +02:00
a268480b79 Merge branch '2.4.5' into 2.4 2019-12-21 15:33:38 +02:00
946426126b Update 2.4.5 release date 2019-12-21 15:31:20 +02:00
4d8995ae74 Update 2.4 maintenance version 2019-12-21 15:29:42 +02:00
5fe97808e3 Merge branch '2.3' into 2.4 2019-12-20 11:44:11 +02:00
4dfc1ef126 Merge branch '2.4.5' into 2.4 2019-12-20 11:43:00 +02:00
61b8bbf7f6 Allow non-GTID replication without rewrite_src
The filter allowed only GTID replication when file-and-position based
replication should be allowed as well.
2019-12-20 11:05:46 +02:00
4bde824021 MXS-2815: Downgrade O_DIRECT from warning to notice
There's no real action the user can take which is why it shouldn't be a
warning.
2019-12-20 10:59:08 +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