File: rpl_encryption_master_key_generation_recovery.result

package info (click to toggle)
mysql-8.0 8.0.43-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,273,924 kB
  • sloc: cpp: 4,684,605; ansic: 412,450; pascal: 108,398; java: 83,641; perl: 30,221; cs: 27,067; sql: 26,594; sh: 24,181; python: 21,816; yacc: 17,169; php: 11,522; xml: 7,388; javascript: 7,076; makefile: 2,194; lex: 1,075; awk: 670; asm: 520; objc: 183; ruby: 97; lisp: 86
file content (76 lines) | stat: -rw-r--r-- 3,751 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
include/master-slave.inc
Warnings:
Note	####	Sending passwords in plain text without SSL/TLS is extremely insecure.
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.
[connection master]
include/rpl_stop_server.inc [server_number=1]
# Force the server to fail storing new master key index
Try to restart the master enabling the option with debug instrumentation
include/assert_grep.inc [Server reported: Failed to store key]
include/assert_grep.inc [Server failed to initialize binlog encryption]
include/assert_grep.inc [Server aborted to start]
# Force the server to fail generating new master key
Try to restart the master enabling the option with debug instrumentation
include/assert_grep.inc [Server reported: Failed to generate key]
include/assert_grep.inc [Server failed to initialize binlog encryption]
include/assert_grep.inc [Server aborted to start]
# Force the server to fail storing master key index
Try to restart the master enabling the option with debug instrumentation
include/assert_grep.inc [Server reported: Failed to store key]
include/assert_grep.inc [Server failed to initialize binlog encryption]
include/assert_grep.inc [Server aborted to start]
Restart the master enabling the option
include/rpl_start_server.inc [server_number=1]
include/assert.inc [binlog_encryption option shall be ON]
include/assert.inc [Binary log rotated]
include/assert.inc [2th binary log is encrypted on master]
CREATE TABLE t1 (c1 INT PRIMARY KEY);
INSERT INTO t1 (c1) VALUES (1),(2),(3);
INSERT INTO t1 (c1) VALUES (4),(5),(6);
[connection slave]
include/assert.inc [1st binary log is not encrypted on slave]
Restart the slave with keyring installed
include/rpl_restart_server.inc [server_number=2]
include/assert.inc [binlog_encryption option shall be OFF]
include/assert.inc [2nd binary log is not encrypted on slave]
# Force the server to fail storing new master key index
SET GLOBAL binlog_encryption = ON;
ERROR HY000: Failed to store key, please check if keyring is loaded.
include/assert.inc [binlog_encryption option shall be OFF]
include/assert.inc [Binary log did not rotated]
# Force the server to fail generating new master key
SET GLOBAL binlog_encryption = ON;
ERROR HY000: Failed to generate key, please check if keyring is loaded.
include/assert.inc [binlog_encryption option shall be OFF]
include/assert.inc [Binary log did not rotated]
# Force the server to fail storing master key index
SET GLOBAL binlog_encryption = ON;
ERROR HY000: Failed to store key, please check if keyring is loaded.
include/assert.inc [binlog_encryption option shall be OFF]
include/assert.inc [Binary log did not rotated]
SET GLOBAL binlog_encryption = ON;
include/assert.inc [Binary log rotated]
include/assert.inc [5th binary log is encrypted on slave]
==== Cleanup ====
* Disable encryption, cleanup database, and consume all encrypted logs.
[connection slave]
include/start_slave.inc
SET GLOBAL binlog_encryption = OFF;
[connection master]
SET GLOBAL binlog_encryption = OFF;
DROP TABLE t1;
include/sync_slave_sql_with_master.inc
* Remove all encrypted logs.
include/rpl_reset.inc
* Uninstall the plugins and delete the keyrings.
[connection master]
UNINSTALL PLUGIN keyring_file;
[connection slave]
UNINSTALL PLUGIN keyring_file;
* Restart the servers with the same command lines as before the test.
include/rpl_restart_server.inc [server_number=1]
include/rpl_restart_server.inc [server_number=2]
* Clean up replication test framework
[connection slave]
include/start_slave.inc
include/rpl_end.inc