Commit Graph

7709 Commits

Author SHA1 Message Date
e43cdcf741 MXS-1267: Expose MySQL backend authentication
Refactored the backend authentication functions so that they can be
exposed to the tee filter. This allows the tee filter to use the same
functions as the protocol modules use without having to reimplement them
inside the tee filter.
2017-06-02 13:07:02 +03:00
7e70b8c58b MXS-1267: Compile tee filter as C++
Compile the tee filter as C++.
2017-06-02 13:07:02 +03:00
19c4016e65 MXS-1220: Add to_string to HttpRequest
Allowing requests to be converted to raw HTTP requests allows them to be
propagated to other instances of MaxScale. This should allow multiple
MaxScales to perform the same action in a coherent manner.

A simple clustering mechanism needs to be added to make MaxScale aware of
other instances.
2017-06-02 12:52:33 +03:00
ba546fcd21 MXS-1220: Add execution of module commands to REST API
The module command self links now point to an endpoint that executes the
module command. Depending on the type of the module command, either a GET
or a POST request must be made.
2017-06-02 12:52:33 +03:00
08a0883ec8 Fix missed change dates
A few files were missed.
2017-06-01 19:39:41 +03:00
152c0950ef Removed policy CMP0026 from PCRE2 CMakeLists.txt
Similar to commit c798961f211cd4435087bd4e005e9b89f3ec325d.
The CMP0026 policy causes the build to fail on CMake 2.8.12 and it isn't critical
to the functionality of the library.
2017-06-01 15:40:28 +03:00
36af74cb25 Update bundled PCRE2-library to version 10.23
Some manual changes done to the library were lost with this update.
They will be added in the next commit.
2017-06-01 15:40:28 +03:00
7231563937 Always use bundled Pcre2 library
Some additions to config.cc will require a recent version of PCRE2.
The system libraries may not be up to date. The pcre2 source is
bundled with MaxScale anyway, so using it is a simple way of controlling
the library version.
2017-06-01 15:23:31 +03:00
83922f193b Update change date in license 2017-06-01 10:42:21 +03:00
f546a17e77 Update change date of 2.2 2017-06-01 10:24:20 +03:00
a79a492601 Tell libmicrohttpd where to install libraries
Explicitly specify the library location for the configure script. This
should prevent problems with different library paths that the configure
script can generate.
2017-05-31 10:52:19 +03:00
3409cd1178 Fix package names in build instructions
Fixed the gnutls and gcrypt package names.
2017-05-31 08:27:43 +03:00
06c97f31e9 separate gnutls for Trusty 2017-05-31 02:12:28 +03:00
6e75147b84 add libgnutls-dev 2017-05-31 00:05:31 +03:00
8050441312 fix install deps 2017-05-30 17:55:43 +03:00
743c82ad60 fix build deps for Xenia 2017-05-30 15:44:19 +03:00
ab8592a006 fix rpm build deps 2017-05-30 14:59:31 +03:00
577650eb03 Merge branch 'develop' of github.com:mariadb-corporation/MaxScale into develop 2017-05-30 00:06:44 +03:00
3722144b53 working version of build scripts 2017-05-30 00:06:23 +03:00
28d8c29f47 Fix Travis builds
Fixed GNUTLS version.
2017-05-29 21:50:29 +03:00
f9c1c799cf Update Building-MaxScale-from-Source-Code.md
Fix CentOS dependencies.
2017-05-29 21:50:29 +03:00
429eeba1a7 Update Building-MaxScale-from-Source-Code.md
Moved distribution specific commands to a new quickstart section, added a
copy-and-paste section for the generic commands. This should make it easier
to do a generic installation of MaxScale on a supported system.
2017-05-29 21:50:29 +03:00
7baa52b763 Make modulecmd_argtype_to_str return values constant
The function needlessly allocated memory for the type strings.
2017-05-29 19:27:45 +03:00
948a059004 MXS-1220: Add module commands to /maxscale/modules
The module commands are now exposed as an additional sub-resource for the
module type.
2017-05-29 19:27:45 +03:00
4c2560b5a6 MXS-1220: Pretty-print by default
The REST API now pretty-prints by default. This is done to make it easier
to use the API with browsers that don't have an integrated REST API
client.
2017-05-29 19:27:45 +03:00
88bf361e61 Add MXS_MODULE_PARAM_QUOTEDSTRING configuration value type
A quoted string is a string enclosed in '"':s. This makes it clear
where the string begins and ends, avoiding ambiguity with whitespace.
After the config file has been loaded, the '"':s at the beginning
and at the end of the string are erased. Querying the config value
with config_get_string() will return this de-quoted value.

For example, if the config file reads 'my_string="test""', the actual
string will be 'test"'.
2017-05-29 16:15:49 +03:00
f66623c382 MXS-1266: files are saved in GTID repo at creation time
Files are saved in GTID repo at creation time: this allows to show
files without transactions via SHOW [FULL] BINARY LOGS

The FULL keywords add domain_id and server id to the output as file
prefix: 0/10122/mysql-bin.000080
2017-05-29 10:58:02 +02:00
a6e4ff1c10 Merge branch 'develop' into MXS-1266 2017-05-29 10:36:54 +02:00
ea82e6632d MXS-1266: SELECT @@server_id, @@read_only and SHOW ALL SLAVES STATUS are now handled
SELECT @@server_id, @@read_only and SHOW ALL SLAVES STATUS are now
handled: this means binlog server can be monitored by MaxScale mysql_mon
2017-05-29 10:35:58 +02:00
90961f585c Merge branch '2.1' into develop 2017-05-26 15:41:19 +03:00
b2e2136079 Merge branch '2.0' into 2.1 2017-05-26 15:41:10 +03:00
d7d4ec29bb Add tests from develop
Added tests from develop. The test results need to be modified for 2.0.
2017-05-26 15:40:40 +03:00
92b6caa334 Merge branch '2.1' into develop 2017-05-26 15:25:04 +03:00
b5d1504e6a Merge branch '2.0' into 2.1 2017-05-26 15:22:43 +03:00
957b50c811 Remove trailing whitespace
Removed trailing whitespace in tests and build scripts.
2017-05-26 14:29:28 +03:00
5c512a3945 Fix atomic code for pre-4.7 GCC versions
The CAS operation used the wrong function and the atomic_store operations
compiled into inadequate assembly on x86 and ARMv7.
2017-05-26 09:57:01 +03:00
b6b108c8d5 MXS-1220: Fix possible crash on NULL option value
When a request option without a value is given, microhttpd exposes this as
key with a NULL value.
2017-05-26 08:52:38 +03:00
607bdf3a1b Remove RocksDB storage tests for cache filter
The RocksDB based storage library is no longer built so the test do not
need to be built either.
2017-05-26 08:52:38 +03:00
2724af60d8 Merge branch 'develop' into MXS-1266 2017-05-25 08:43:10 +02:00
dfb6fc02c7 Update dbfwfilter documentation
Added examples to each rule.
2017-05-25 09:39:46 +03:00
61d67ee539 MXS-1220: Update build script dependencies
Removed libmicrohttpd dependency, added gnutls and gcrypt dependencies.
2017-05-24 16:21:35 +03:00
c98f8369f2 MXS-1220: Remove redundant parameter documentation
As all requests support the only parameter `pretty`, there's no point in
documenting it separately for each resource.
2017-05-24 16:21:34 +03:00
43386333b3 MXS-1220: Add monitor POST documentation
The POST documentation for creation monitors was missing.
2017-05-24 16:21:34 +03:00
0e5bbbd625 Update Configuration-Guide.md
Renamed `passwd` to `password`. Added an anchor for the old `passwd` name.
2017-05-24 16:21:26 +03:00
830e47bc8b MXS-1220: Update service resource documentation
Updated service resource documentation. Fixed a few minor typos also in
the server resource documentation.
2017-05-24 15:05:11 +03:00
9ccb54c107 MXS-1220: Update links in REST API documentation
Added missing v1 prefixes to links.
2017-05-24 15:05:11 +03:00
c54710cfaa MXS-1220: Update users resource documentation
Updated the users resource documentation.
2017-05-24 15:05:11 +03:00
6b8b19b439 MXS-1220: Add PUT support for /maxscale/ resource
The /maxscale/ resource now supports PUT requests which modify core
parameters. As not all parameters can be changed at runtime, only
modifications to parameters that support runtime configuration are
allowed.
2017-05-24 15:05:11 +03:00
3fd82ebae6 MXS-1220: Add alter maxscale MaxAdmin command
A set of the core MaxScale parameters can now be altered at runtime. This
set consists of the authentication timeouts and the admin interface
authentication. Other parameters either can't be modified due to internal
limitations or aren't sensible to modify at runtime.
2017-05-24 15:05:11 +03:00
69be4d263f MXS-1220: Add admin interface parameters to /maxscale/ resource
The admin interface parameters are now a part of the /maxscale/ resource.
2017-05-24 15:05:11 +03:00