Debian Codegraph @

mysql-test/suite/group_replication/r/gr_ssl_on_admin_interface.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 #
7 # Setup the first member with a recovery user that requires SSL.
8 # The memmber has the admin interface configured and is exporting
9 # the admin-port as the donor port.
10 #
11 [connection server1]
12 # restart:--group_replication_local_address=GROUP_REPLICATION_LOCAL_ADDRESS --group_replication_group_seeds=GROUP_REPLICATION_GROUP_SEEDS --report_port=ADMIN_PORT
13 include/rpl_reconnect.inc
14 set session sql_log_bin=0;
15 CREATE USER 'rec_ssl_user'@'%' REQUIRE SSL;
16 GRANT replication slave ON *.* TO 'rec_ssl_user'@'%';
17 GRANT SERVICE_CONNECTION_ADMIN ON *.* TO 'rec_ssl_user'@'%';
18 set session sql_log_bin=1;
19 #
20 # Add some data and start the member
21 #
22 CREATE TABLE t1 (c1 INT NOT NULL PRIMARY KEY) ENGINE=InnoDB;
23 INSERT INTO t1 VALUES (1);
24 include/start_and_bootstrap_group_replication.inc
25 include/assert.inc [server1 is exporting admin-port for others members recovery]
26 #
27 # Configure a joining member to use SSL options on recovery and start it
28 #
29 [connection server2]
30 CHANGE REPLICATION SOURCE TO SOURCE_USER="rec_ssl_user" FOR CHANNEL "group_replication_recovery";
31 SET GLOBAL group_replication_recovery_use_ssl=1;
32 SET GLOBAL group_replication_recovery_ssl_ca= 'MYSQL_TEST_DIR/std_data/ca-cert-verify-san.pem';
33 SET GLOBAL group_replication_recovery_ssl_cert= 'MYSQL_TEST_DIR/std_data/client-cert-verify-san.pem';
34 SET GLOBAL group_replication_recovery_ssl_key= 'MYSQL_TEST_DIR/std_data/client-key-verify-san.pem';
35 include/start_group_replication.inc
36 #
37 # Check the data is there
38 #
39 include/assert.inc [On the recovered member, the table should exist and have 1 elements;]
40 #
41 # Clean up
42 #
43 [connection server1]
44 set session sql_log_bin=0;
45 DROP USER 'rec_ssl_user';
46 set session sql_log_bin=1;
47 DROP TABLE t1;
48 # restart:--group_replication_local_address=GROUP_REPLICATION_LOCAL_ADDRESS --group_replication_group_seeds=GROUP_REPLICATION_GROUP_SEEDS --report_port=ADMIN_PORT
49 include/rpl_reconnect.inc
50 include/group_replication_end.inc