Debian Codegraph @

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

raw
1 include/group_replication.inc [rpl_server_count=2]
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 ############################################################
8 # 0. Configure members to use encryption and save defaults.
9 [connection server1]
10 SET @tls_version_save= @@GLOBAL.tls_version;
11 SET @tls_ciphersuites_save= @@GLOBAL.tls_ciphersuites;
12 SET @ssl_cipher_save= @@GLOBAL.ssl_cipher;
13 SET @group_replication_ssl_mode_save= @@GLOBAL.group_replication_ssl_mode;
14 SET @@GLOBAL.group_replication_ssl_mode= REQUIRED;
15 SET @tls_version_recovery_save= @@GLOBAL.group_replication_recovery_tls_version;
16 SET @tls_ciphersuites_recovery_save= @@GLOBAL.group_replication_recovery_tls_ciphersuites;
17 SET @ssl_cipher_recovery_save= @@GLOBAL.group_replication_recovery_ssl_cipher;
18 [connection server2]
19 SET @tls_version_save= @@GLOBAL.tls_version;
20 SET @tls_ciphersuites_save= @@GLOBAL.tls_ciphersuites;
21 SET @ssl_cipher_save= @@GLOBAL.ssl_cipher;
22 SET @group_replication_ssl_mode_save= @@GLOBAL.group_replication_ssl_mode;
23 SET @@GLOBAL.group_replication_ssl_mode= REQUIRED;
24 SET @tls_version_recovery_save= @@GLOBAL.group_replication_recovery_tls_version;
25 SET @tls_ciphersuites_recovery_save= @@GLOBAL.group_replication_recovery_tls_ciphersuites;
26 SET @ssl_cipher_recovery_save= @@GLOBAL.group_replication_recovery_ssl_cipher;
27 SET SESSION sql_log_bin= 0;
28 call mtr.add_suppression("\\[GCS\\] Error connecting to all peers. Member join failed. Local port:*");
29 call mtr.add_suppression("\\[GCS\\] The member was unable to join the group.*");
30 call mtr.add_suppression("Timeout on wait for view after joining group");
31 call mtr.add_suppression("Error connecting to the local group communication engine instance");
32 SET SESSION sql_log_bin= 1;
33
34 ############################################################
35 # 1. 2 members group with OpenSSL 1.1.1
36 # Verify that it is not possible to start group replication when :
37 # * TLS version is 1.3
38 # * Intersection of the allowed TLS chipersuites for all the members
39 # is empty.
40 # server1: --tls-version='TLSv1.3'
41 # server1: --tls-ciphersuites='TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384'
42 # server2: --tls-version='TLSv1.3'
43 # server2: --tls-ciphersuites='TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_CCM_SHA256'
44 # Outcome: group will not work.
45 [connection server1]
46 SET @@GLOBAL.tls_version= 'TLSv1.3';
47 SET @@GLOBAL.tls_ciphersuites= 'TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384';
48 SET @@GLOBAL.group_replication_recovery_tls_version= 'TLSv1.3';
49 SET @@GLOBAL.group_replication_recovery_tls_ciphersuites= 'TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384';
50 ALTER INSTANCE RELOAD TLS;
51 include/start_and_bootstrap_group_replication.inc
52 [connection server2]
53 SET GLOBAL group_replication_group_name= "GROUP_REPLICATION_GROUP_NAME";
54 SET @@GLOBAL.tls_version= 'TLSv1.3';
55 SET @@GLOBAL.tls_ciphersuites= 'TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_CCM_SHA256';
56 SET @@GLOBAL.group_replication_recovery_tls_version= 'TLSv1.3';
57 SET @@GLOBAL.group_replication_recovery_tls_ciphersuites= 'TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_CCM_SHA256';
58 ALTER INSTANCE RELOAD TLS;
59 START GROUP_REPLICATION;
60 ERROR HY000: The server is not configured properly to be an active member of the group. Please see more details on error log.
61 [connection server1]
62 include/stop_group_replication.inc
63
64 ############################################################
65 # 2. 2 members group with OpenSSL 1.1.1
66 # Verify that it is not possible to join a node to a group when
67 # TLS v1.3 is allowed but there is no compatible ciphersuite :
68 # * TLS chipersuite of the node is incompatible with the group,
69 # therefore TLS v1.3 is not supported
70 # * SLL cipher of the node is compatible with the group
71 # --tls-version='TLSv1.3'
72 # server1: --tls-ciphersuites='TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384'
73 # server1: --ssl-cipher='ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384'
74 # server2: --tls-ciphersuites='TLS_AES_128_CCM_SHA256'
75 # server2: --ssl-cipher='DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384'
76 # Outcome: group will not work.
77 [connection server1]
78 SET @@GLOBAL.tls_version= 'TLSv1.3';
79 SET @@GLOBAL.ssl_cipher= 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384';
80 SET @@GLOBAL.tls_ciphersuites= 'TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384';
81 SET @@GLOBAL.group_replication_recovery_tls_version= 'TLSv1.3';
82 SET @@GLOBAL.group_replication_recovery_ssl_cipher= 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384';
83 SET @@GLOBAL.group_replication_recovery_tls_ciphersuites= 'TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384';
84 ALTER INSTANCE RELOAD TLS;
85 include/start_and_bootstrap_group_replication.inc
86 [connection server2]
87 SET GLOBAL group_replication_group_name= "GROUP_REPLICATION_GROUP_NAME";
88 SET @@GLOBAL.tls_version= 'TLSv1.3';
89 SET @@GLOBAL.ssl_cipher= 'DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384';
90 SET @@GLOBAL.tls_ciphersuites = 'TLS_AES_128_CCM_SHA256';
91 SET @@GLOBAL.group_replication_recovery_tls_version= 'TLSv1.3';
92 SET @@GLOBAL.group_replication_recovery_ssl_cipher= 'DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384';
93 SET @@GLOBAL.group_replication_recovery_tls_ciphersuites= 'TLS_AES_128_CCM_SHA256';
94 ALTER INSTANCE RELOAD TLS;
95 START GROUP_REPLICATION;
96 ERROR HY000: The server is not configured properly to be an active member of the group. Please see more details on error log.
97 [connection server1]
98 include/stop_group_replication.inc
99
100 ############################################################
101 # 3. Clean up.
102 [connection server1]
103 SET @@GLOBAL.group_replication_ssl_mode= @group_replication_ssl_mode_save;
104 SET @@GLOBAL.tls_version= @tls_version_save;
105 SET @@GLOBAL.tls_ciphersuites= @tls_ciphersuites_save;
106 SET @@GLOBAL.ssl_cipher = @ssl_cipher_save;
107 SET @@GLOBAL.group_replication_recovery_tls_version= @tls_version_recovery_save;
108 SET @@GLOBAL.group_replication_recovery_tls_ciphersuites= @tls_ciphersuites_recovery_save;
109 SET @@GLOBAL.group_replication_recovery_ssl_cipher= @ssl_cipher_recovery_save;
110 ALTER INSTANCE RELOAD TLS;
111 [connection server2]
112 SET @@GLOBAL.group_replication_ssl_mode= @group_replication_ssl_mode_save;
113 SET @@GLOBAL.tls_version= @tls_version_save;
114 SET @@GLOBAL.tls_ciphersuites= @tls_ciphersuites_save;
115 SET @@GLOBAL.ssl_cipher = @ssl_cipher_save;
116 SET @@GLOBAL.group_replication_recovery_tls_version= @tls_version_recovery_save;
117 SET @@GLOBAL.group_replication_recovery_tls_ciphersuites= @tls_ciphersuites_recovery_save;
118 SET @@GLOBAL.group_replication_recovery_ssl_cipher= @ssl_cipher_recovery_save;
119 ALTER INSTANCE RELOAD TLS;
120 include/group_replication_end.inc