Debian Codegraph @

mysql-test/suite/group_replication/r/ssl_dynamic_gr.result

raw
1 include/group_replication.inc
2 Warnings:
3 Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
4 Note #### Storing MySQL user name or password information in the connection metadata repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START REPLICA; see the 'START REPLICA Syntax' in the MySQL Manual for more information.
5 [connection server1]
6 server1
7 ################## FR8: GR do not follow SSL changes
8 # Save the defaults
9 SET @orig_ssl_ca= @@global.ssl_ca;
10 SET @orig_ssl_cert= @@global.ssl_cert;
11 SET @orig_ssl_key= @@global.ssl_key;
12 SET @orig_group_replication_recovery_ssl_ca= @@global.group_replication_recovery_ssl_ca;
13 SET @orig_group_replication_recovery_ssl_cert= @@global.group_replication_recovery_ssl_cert;
14 SET @orig_group_replication_recovery_ssl_key= @@global.group_replication_recovery_ssl_key;
15 # setting new values for ssl_cert, ssl_key and ssl_ca
16 SET GLOBAL ssl_cert = "MYSQL_TEST_DIR/std_data/server-cert-sha512.pem";
17 SET GLOBAL ssl_key = "MYSQL_TEST_DIR/std_data/server-key-sha512.pem";
18 SET GLOBAL ssl_ca = "MYSQL_TEST_DIR/std_data/ca-sha512.pem";
19 ALTER INSTANCE RELOAD TLS;
20 # Check that GR variables are not altered
21 SELECT @@global.group_replication_recovery_ssl_ca = @orig_group_replication_recovery_ssl_ca,
22 @@global.group_replication_recovery_ssl_cert = @orig_group_replication_recovery_ssl_cert,
23 @@global.group_replication_recovery_ssl_key = @orig_group_replication_recovery_ssl_key;
24 @@global.group_replication_recovery_ssl_ca = @orig_group_replication_recovery_ssl_ca 1
25 @@global.group_replication_recovery_ssl_cert = @orig_group_replication_recovery_ssl_cert 1
26 @@global.group_replication_recovery_ssl_key = @orig_group_replication_recovery_ssl_key 1
27 # cleanup
28 SET GLOBAL ssl_cert = @orig_ssl_cert;
29 SET GLOBAL ssl_key = @orig_ssl_key;
30 SET GLOBAL ssl_ca = @orig_ssl_ca;
31 ALTER INSTANCE RELOAD TLS;
32 include/group_replication_end.inc