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
MDEV-38524 Extend CREATE USER statement to allow HEX strings
Sergei Golubchik
MDEV-40445 TLS 1.3 early data (wolfssl)
Sergei Golubchik
10.11: fix main.ssl_system_ca failures for openssl/gnutls combination

this test needs openssl *client* not openssl *server*
Monty
Updated sql-bench to benchmark json functions

Other things:
- Added compare-result --adjust to compare benchmark with different
  query/row count
- Have different configure options for MySQL and MariaDB
- Use highrest timers for tests for more accurate results
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
main.mysql_client_test: show client output on failure

The output goes to var/log/mysql_client_test.out.log, so it is missing
from the test failure report and CI logs. Print it when
mysql_client_test fails.

Assisted-by: Claude:claude-sonnet-5-5
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.
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
10.11: cleanup: revert now-obsolete wolfssl workaround

was added in d510f8054912 for 5.5.4, now it only causes

In file included from extra/wolfssl/wolfssl/wolfcrypt/src/aes_asm.S:45:
extra/wolfssl/user_settings.h:84:9: warning: 'WOLFSSL_X86_64_BUILD' redefined
  84 | #define WOLFSSL_X86_64_BUILD
Sergei Golubchik
cleanup: remove pre-locking of old_password_plugin

nobody should be using it, so this "optimization" actually isn't.
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
.gitignore <- /build*/
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
10.11: fix main.tlsv13 failures for wolfssl/openssl combination

it truly needs OpenSSL. WolfSSL, even if it supports TLSv1.3,
doesn't have different 1.2 and 1.3 cipher lists, like the test expects
(and it has exactly the issue that made OpenSSL to introduce the split)
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
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-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
Sergei Golubchik
CONC-833 PARSEC credential cache

parsec plugin uses session cache to store private ad public keys
and the ext-salt. This allows not to do key derivation for
every connection (it's very slow!) and to skip the salt request,
saving one round-trip.

also parsec plugin uses MYSQL::plugin_data to pass information from
auth() to hash_password() without using thread local variable, it was
fragile and perhaps even broken in async library.

parsec protocol is extended to allow to skip salt request - the client
can now send the signed responce without asking for salt

Assisted-By: Claude:claude-5-opus
Sergei Golubchik
bugfix: incorrect plugin retry on COM_CHANGE_USER

as soon as the server sends any packet, plugin should not
work in mysql_change_user mode anymore, and should use the data
that the server sends, not the old mysql->scramble_buf
Nikita Malyavin
MDEV-40410 follow-up: also fix TSan build for Clang < 22

Clang predefines __SANITIZE_THREAD__ only from version 22; check
__has_feature(thread_sanitizer) as well.
Sergei Golubchik
add change_user test to plugins.parsec
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
Sergei Golubchik
cleanup: remove libfmt-7.1.3 compatibility code
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
MDEV-40445 TLS session resumption

* needs no application changes
* connector keeps a hash of connection key -> sessions and resumes
  sessions automatically when applicable
* session key includes everything that affects cert verification
  (because resumed session is not re-verified)
* openssl and gnutls support only, not schannel

Assisted-By: Claude:claude-5-opus
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 generalize tls session cache

move session cache from ma_tls.c (where it was called "TLS session cache"
used to store sesion tickets for session resumption) to a new file
ma_session_cache.c, make tls code use it to store session tickets,
but open the possibility to store other connection data in it.

Assisted-By: Claude:claude-5-opus
Sergei Golubchik
CONC-833 cache plugin data in the session cache

Authentication plugins can now use the session cache too.
The API:
* a new (unused, repurposed) field in MYSQL structure, plugin_data.
* before authentication the data from the cache (or NULL) is put there
* after authentication whatever plugin left there is stored in the cache

The data is a size_t length followed by opaque blob of bytes.
Must be allocated with malloc, the cache can free() it as needed.

Cached data are only shown to a plugin for connection with the
same user/password/host/port/socket/protocol/ssl options,
see ma_session_cache_key().

This extends auth plugin API, so the version is incremented

Assisted-By: Claude:claude-5-opus
Sergei Golubchik
MDEV-40445 TLS 1.3 early data

Send first client reply packet together with the TLS 1.3 ClientHello,
avoiding one roundtrip (thus the name 0-RTT). If the server does not
accept early data it is resent the normal way, after TLS handshake.

This only works when session is resumed and the data is sent before the
full TLS connection is established, so it's not fully protected yet.
Thus only use it for password_and_hashing auth.

OpenSSL and GnuTLS support is implemented, SChannel isn't.

Assisted-By: Claude:claude-5-opus
Sergei Golubchik
cleanup: reduce usage of (type*)thd->alloc((sizeof type)*n)

replace with shorter and safer thd->alloc<type>(n)
Monty
MDEV-39938 JSON_TABLE ignores negative indexes and 'last' in paths

The row path and NESTED PATH of JSON_TABLE gave no rows for paths
like $[-1], $[last] and $[1 to last], because
Json_table_nested_path::scan_next() passed no array sizes to
json_path_compare().

Fixed by counting the array sizes during the scan when the path has
negative indexes or 'last', in the same way as JSON_EXTRACT() does.

This also fixes the code from the MDEV-39972 that was only needed
as a temporary workaround for this issue.

Reviewed by: Alexey Botchkov <[email protected]>
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
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)
Sergei Golubchik
cleanup: remove historical my_plugin_lock aliases
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
Sergei Golubchik
bugfix: correct plugin version comparison

(also fix it in the server to use the same pattern)
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
cleanup: ma_hashtbl_init, typos, mutex lock in ma_tls_end()

ma_hashtbl_init with CALLER_INFO was copied from the server, but
never used here (CALLER_INFO wasn't even defined)

the locking the mutex just before destroying is
fundamentally broken, let's not do it.
Monty
Removed compiler warning in ha_perfschema.cc
Sergei Golubchik
static parsec (and include-able into the server)