Home - Waterfall Grid T-Grid Console Builders Recent Builds Buildslaves Changesources - JSON API - About

Console View


Categories: connectors experimental galera main
Legend:   Passed Failed Warnings Failed Again Running Exception Offline No data

connectors experimental galera main
Sergei Golubchik
bugfix: correct plugin version comparison

(also fix it in C/C to use the same pattern)

The pattern is always the same now everywhere:

  if plugin_version < min_supported_api_version or
    plugin_version > current_api_version
  then it's an error.

in almost all cases min_supported_api_version is
`~0xFF & current_api_version`, meaning, major api
version must be the same.

Authentication API supports plugins of lower major version,
this support was specially implemented though.
Sergei Golubchik
race in ssl_crl.test

connection with a revoked certitifate is correctly rejected in all cases.
but a server sends the error message and RST when a client sends new auth
data.

if RST arrives first, the client fails to send into the closed socket.
If the client sends first, it reads the reply and gets the "revoked"
error message.
Sergei Golubchik
cleanup: remove libfmt-7.1.3 compatibility code
Elena Stepanova
MDEV-42521 Replication tests fail with ER_BINLOG_IN_USE when run after another test

12.3 changed RESET MASTER. The binlog-in-engine commit (7081f2a58ec)
added a check in MYSQL_BIN_LOG::reset_logs() in sql/log.cc. RESET MASTER
now fails with ER_BINLOG_IN_USE while any binlog dump thread is still
registered, even an idle one whose slave has already disconnected. Before
12.3, such leftover threads didn't block it, so the test passes there.

That commit also updated the test framework for this:
include/rpl_init.inc and include/rpl_reset.inc now kill dump threads
before RESET MASTER, and there is a new include/reset_master.inc
that kills them and retries. The fix is to use this include.

Assisted-by: Claude:claude-opus-5-5
Reviewed-by: Susil Behera
Vladislav Vaintroub
Merge 12.3 into 13.2
Vladislav Vaintroub
Merge 11.8 into 12.3
Sergei Golubchik
fix server parsec plugin to follow OpenSSL documentation

man EVP_DigestVerify:

  EVP_DigestVerifyInit() and EVP_DigestVerifyUpdate() return
  1 for success and 0 for failure.
  EVP_DigestVerifyFinal() and EVP_DigestVerify() return
  1 for success; any other value indicates failure.
Marko Mäkelä
Merge 13.2 into main
Monty
Added -DCOUNT_MALLOC_CALLS to provide information about malloc calls

This helps debugging optimized binaries
Sergei Golubchik
MDEV-34846 PARSEC authentication improvement

parsec protocol allows to skip salt request - the client
can send the signed responce without asking for salt

now parsec + ssl takes only 2 roundtrips. Same as mysql_native_password
with no ssl.
Sergei Golubchik
CONC-833 cache plugin data in the session cache

this extends auth plugin API, the version is incremented

username and password are now part of the client connection cache key,
so connections with different passwords do not use eash other's
session tickets, this increased the number of roundtrips in the test.
Sergei Golubchik
add change_user test to plugins.parsec
Sergei Golubchik
MDEV-12320 change initial authentication plugin in the server

instead of unconditionally starting the authentication from the
mysql_native_password, start it from the plugin that will most likely
avoid "change plugin" packet (and thus a round-trip). Maintain counters
of what plugins were used to authenticate users so far, pick the plugin
with the largest count for new connections. But don't count plugins,
such as unix_socket, that need no client counterpart, they can never
cause a round-trip. And don't count pam that sends the password in
plain-text, we don't want to ask that of every new connection.

Uses separately allocated hash and memory, not acl_memroot, not
plugin->locks_count. This allows not to take extra acl_cache->lock
in acl_authenticate(), reset stats on FLUSH PRIVILEGES, and adapt to
the changed load with exponentially decreasing weights.

New status variable Connection_init_auth to show what plugin
is sent in the handshake packet.

Total number of MariaDB authentication plugins in the world is likely
below 15, including purely test plugins. So the hash is expected to
have hardly more than 3-5 entries.
Sergei Golubchik
test that counts number of roundtrips in various situations

wolfssl needs curve25519 support, otherwise openssl client offers it,
server disagrees and they agree on something else after an extra roundtrip
Vladislav Vaintroub
Merge 13.2 into main
Sergei Golubchik
cleanup: remove historical my_plugin_lock aliases
Vladislav Vaintroub
Merge 13.2 into main
Sergei Golubchik
MDEV-40445 TLS 1.3 early data (wolfssl)
Sergei Golubchik
cleanup: reduce usage of (type*)thd->alloc((sizeof type)*n)

replace with shorter and safer thd->alloc<type>(n)
Elena Stepanova
MDEV-42594 rpl.rpl_binlog_directory fails on Windows with wrong result (slashes in the path)

Reviewed-by: Susil Behera
Sergei Golubchik
MDEV-40445 TLS 1.3 early data (0-RTT)

Read client reply packet that was sent as TLS 1.3 early data
Send next server packet (e.g. OK or "change plugin" packet)
as early data to the client. This allows to establish a TLS
connection with no additional roundtrips.

Assisted-By: Claude:claude-5-opus
Sergei Golubchik
MDEV-40444 configurable default authentication plugin

New session sysvar and a command line option: default_authentication
(named similarly to default_storage_engine). Tells what authentication
plugin to use for CREATE|ALTER USER ... IDENTIFIED BY - the syntax
that specifies a password, but not a plugin.

SET PASSWORD not affected

empty password still means native (for tests and because it doesn't matter)
Vladislav Vaintroub
Fix 11.8 build with system PCRE2 on FreeBSD

import_util linked the bare pcre2-posix/pcre2-8 libraries and got no
include directory, so pcre2posix.h was not found.
Sergei Golubchik
MDEV-40445 TLS session resumption

in fact it was already on in the server, so this only
enables statistics to see it in SHOW STATUS, adds tests,
and updates C/C to match.

Assisted-By: Claude:claude-5-opus
bsrikanth-mariadb
MDEV-38303: Support MIN/MAX in the HAVING early-stop shortcut

Extend the shortcut to MIN and MAX. MAX never decreases as rows are
added, so once MAX(..) < c or MAX(..) <= c is false it stays false.
MIN never increases, so the same holds for MIN(..) > c and
MIN(..) >= c.

Add Item_sum_min_max::is_having_shortcut_cmp(), which accepts these
operators for MAX_FUNC and MIN_FUNC only. ANY_VALUE shares the class
but is not handled, so it is read in full as before.

Only numeric arguments are used. For a string argument, MIN/MAX
compares values as strings ('10' < '9'), but the HAVING condition
compares the result with a numeric constant as numbers (10 > 9).
The two orders differ, so the result is not monotonic and the scan
must not stop early.

Until a non-NULL value is seen, MIN/MAX returns NULL, so the HAVING
condition is NULL, not FALSE, and the scan does not stop. This covers:
- leading NULL values, e.g. MAX(v) < 150 where the first rows have
  v IS NULL. The scan stops once a non-NULL value makes the condition
  FALSE.
- a column that is all NULL, or a WHERE that leaves no rows or only
  NULL values. The result stays NULL, the condition is never FALSE,
  and the whole table is read.
- a NULL constant, e.g. MAX(v) < NULL. It is not used for the
  shortcut at all.
A NULL conjunct does not hide a FALSE one: with
MAX(n) < 5 AND MIN(v) > 200, the scan stops when the second part
becomes FALSE, even though the first is NULL.

Add is_numeric_cmp_type() and use it in the three places that check
for an INT, REAL or DECIMAL comparison type.

Tests cover both directions, swapped operands, NULL values and NULL
results, string, temporal, DOUBLE and unsigned arguments, DISTINCT,
GROUP BY, joins, subqueries, prepared statements and ANY_VALUE.
Sergei Golubchik
MDEV-40445 TLS session resumption (wolfssl)

* enable HAVE_SESSION_TICKET to allow resumption
* enable OPENSSL_ALL+KEEP_PEER_CERT to keep peer cert in the ticket,
  otherwise REQUIRE SUBJECT doesn't work after resumption
* disable OPENSSL_EXTRA which was enabled as a replacement
  when OPENSSL_ALL was disabled in 136e8661197
* disable NO_WOLFSSL_STUB to get SSL_CTX_sess_hits/etc stubs
* but they're stubs, always return 0, so add a wolfssl combination to
  the test that checks for these values
Marko Mäkelä
MDEV-42589: FALLOC_FL_ZERO_RANGE is undefined in musl libc

log_t::header_rewrite(): Define FALLOC_FL_ZERO_RANGE according to
torvalds/linux@409332b65d3ed8cfa7a8030f1e9d52f372219642
in case the system headers fail to define that symbol.

Fixes up commit 0ad8886506d8bd0c7a6d368e3f481d954e8eb82f (MDEV-42009)
Sergei Golubchik
MDEV-41649 better default for mhnsw_max_cache_size

16M->1G

one doesn't need a vector index if the dataset fits into 16M
Sergei Golubchik
cleanup: wolfSSL Ed25519 EVP wrappers in include/wolfssl_ed25519.h

add DigestVerify wrappers, use the header in server_parsec.cc
instead of HAVE_WOLFSSL-specific code

Assisted-by: Claude:claude-opus-5-5
Sergei Golubchik
MDEV-42746 Switch default authentication plugin to PARSEC

* make parsec MANDATORY
* compile parsec statically into C/C and server
* change parsec_iterations to 262144 by default as per OWASP recommendations
* update tests
Marko Mäkelä
Merge 11.8 into 12.3
Yuchen Pei
MDEV-42208 Do not consider direct update for UPDATE ... RETURNING ...

Just like direct delete is not considered for DELETE ... RETURNING ...

This is because metadata sending is skipped in the direct update route.
Sergei Golubchik
beautify parsec handling of empty passwords

parsec hashes empty passwords too: random salt, pbkdf2, everything.
this made them visually indistinguishable from non-empty passwords
in the global_priv, SHOW CREATE, and on the wire.

It is an improvement, empty passwords are hardly less secure than
a password of one space, no need to single them out. Still it might
be quite an unexpected change for users who like to search for
"accounts with empty passwords".

Let's store and show accounts with empty passwords specially, as
mysql_native_password does. But still treat them on the wire as
normal passwords, no change in the parsec protocol to add
a special exception, and no visible leak of whether an account
has an empty password.

mark with "Used password: YES"

return CR_AUTH_USER_CREDENTIALS for wrong password
Marko Mäkelä
Merge 12.3 into 13.2
Vladislav Vaintroub
MDEV-23818 follow-up: main.client fails on Windows with vardir on another drive

Plain "cd" in cmd does not switch drives; use "cd /d" on Windows.

Assisted-by: Claude:claude-sonnet-5-5
Elena Stepanova
MDEV-42595 rpl.rpl_heartbeat modifies master_heartbeat_period, affects following tests

mysql-test/include/rpl_heartbeat.inc does
change master to ..., master_ssl_verify_server_cert=0, master_heartbeat_period= 0.5;
and its cleanup never puts it back.

13.x changed how CHANGE MASTER treats the heartbeat period, which
exposes the leak. In 10.11 any CHANGE MASTER that doesn't mention
MASTER_HEARTBEAT_PERIOD resets it to slave_net_timeout/2. In 13.x
the period is now an optional value. An unmentioned option stays
as it was. The between-test check doesn't catch it.

Assisted-by: Claude:claude-opus-5-5
Reviewed-by: Susil Behera
Sergei Golubchik
MDEV-38524 Extend CREATE USER statement to allow HEX strings
Vladislav Vaintroub
merge 11.4 to 11.8

# Conflicts:
# extra/CMakeLists.txt
# extra/wolfssl/CMakeLists.txt
Sergei Golubchik
cleanup: remove pre-locking of old_password_plugin

nobody should be using it, so this "optimization" actually isn't.
Vladislav Vaintroub
Merge 12.3 into 13.2