Hi, Community,
We have confirmed in test that when MariaDB configuration file has socket.ssl=true;, the cluster still works even without a correct credential of wsrep_sst_auth. And we wonder why.
So, if the configuration file /etc/my.cnf.d/server.cnf has:
wsrep_provider_options="socket.ssl=true; ..."
, then even without correct credential in wsrep_sst_auth, the cluster can still join with working replication.
Please see below for the partial configuration file in the section of [galera]. The comments also described more details of our testing steps.
Our Question:
- Why does the cluster still work without a correct wsrep_sst_auth credential?
- Does it mean the socket.ssl=true is already a valid authentication for SST?
We appreciate any hints and suggestions.
---------- Partial configuration file server.cnf ------------
...
#
# * Galera-related settings
#
[galera]
wsrep_on=ON
wsrep_provider=/usr/lib64/galera-4/libgalera_smm.so
...
wsrep_sst_method=mariabackup
...
# The testing details:
#
# 1) The correct credential works:
# wsrep_sst_auth=sst_user:sst_user_password
#
# 2) The wrong credential works:
# wsrep_sst_auth=sst_user:sst_user_wrong_password
#
# 3) The username without password works:
# wsrep_sst_auth=sst_user
#
# 4) Even with no wsrep_sst_auth, the cluster still joins:
#
wsrep_provider_options="socket.ssl=true; socket.ssl_key=/etc/pki/galera/server-key.pem; socket.ssl_cert=/etc/pki/galera/server-cert.pem; socket.ssl_ca=/etc/pki/galera/ca-cert.pem; pc.weight=10"
binlog_format=row
default_storage_engine=InnoDB
innodb_autoinc_lock_mode=2
...