1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-31857 enable --ssl-verify-server-cert by default in the internal client

enable ssl + ssl_verify_server_cert in the internal client too

* fix replication tests to disable master_ssl_verify_server_cert
  because accounts are passwordless - except rpl.rpl_ssl1
* fix federated/federatedx/connect to disable SSL_VERIFY_SERVER_CERT
  because they cannot configure an ssl connection
* fix spider to disable ssl_verify_server_cert, if configuration
  says so, as spider _can_ configure an ssl connection
* memory leak in embedded test-connect
This commit is contained in:
Sergei Golubchik
2023-09-04 15:32:36 +02:00
parent e0c30390a7
commit abcd23add2
132 changed files with 276 additions and 259 deletions

View File

@@ -16,4 +16,5 @@ n
connection master;
drop table t1;
connection slave;
include/wait_for_slave_to_start.inc
include/rpl_end.inc

View File

@@ -3,7 +3,7 @@ include/master-slave.inc
connection slave;
reset master;
connection master;
change master to master_host="127.0.0.1",master_port=SLAVE_PORT,master_user="root";
change master to master_host="127.0.0.1",master_port=SLAVE_PORT,master_user="root",master_ssl_verify_server_cert=0;
include/start_slave.inc
connection slave;
create table t1 (n int);
@@ -25,4 +25,5 @@ include/stop_slave.inc
reset slave;
drop table t1,t4,t5,t6;
connection slave;
include/wait_for_slave_to_start.inc
include/rpl_end.inc

View File

@@ -3,11 +3,11 @@ include/master-slave.inc
connection slave;
include/stop_slave.inc
change master to master_host='127.0.0.1',master_user='root',
master_password='',master_port=MASTER_PORT;
master_password='',master_port=MASTER_PORT, master_ssl_verify_server_cert=0;
include/start_slave.inc
connection master;
change master to master_host='127.0.0.1',master_user='root',
master_password='',master_port=SLAVE_PORT;
master_password='',master_port=SLAVE_PORT, master_ssl_verify_server_cert=0;
include/start_slave.inc
flush logs;
include/stop_slave.inc

View File

@@ -16,7 +16,7 @@ reset master;
connection master;
--replace_result $SLAVE_MYPORT SLAVE_PORT
eval change master to master_host="127.0.0.1",master_port=$SLAVE_MYPORT,master_user="root";
eval change master to master_host="127.0.0.1",master_port=$SLAVE_MYPORT,master_user="root",master_ssl_verify_server_cert=0;
--source include/start_slave.inc
@@ -100,6 +100,7 @@ reset slave;
drop table t1,t4,t5,t6; # add t2 and t3 later
--sync_slave_with_master
--source include/wait_for_slave_to_start.inc
# End of 4.1 tests
--source include/rpl_end.inc

View File

@@ -11,7 +11,7 @@ connection slave;
--replace_result $MASTER_MYPORT MASTER_PORT
eval change master to master_host='127.0.0.1',master_user='root',
master_password='',master_port=$MASTER_MYPORT;
master_password='',master_port=$MASTER_MYPORT, master_ssl_verify_server_cert=0;
--source include/start_slave.inc
#
# Start replication slave -> master
@@ -20,7 +20,7 @@ connection master;
--replace_result $SLAVE_MYPORT SLAVE_PORT
eval change master to master_host='127.0.0.1',master_user='root',
master_password='',master_port=$SLAVE_MYPORT;
master_password='',master_port=$SLAVE_MYPORT, master_ssl_verify_server_cert=0;
--source include/start_slave.inc
#