-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new idea with doing exec on root user after container start, conside …
…seccomp & selinux & apparmor
- Loading branch information
Showing
15 changed files
with
116 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"defaultAction": "SCMP_ACT_ERRNO", | ||
"architectures": ["SCMP_ARCH_X86_64"], | ||
"syscalls": [ | ||
{ | ||
"names": [ | ||
"kill", | ||
"pkill", | ||
"killall" | ||
], | ||
"action": "SCMP_ACT_ERRNO" | ||
} | ||
] | ||
} | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
[mysqld] | ||
server_id="${SERVER_ID}" | ||
disabled_storage_engines="MyISAM,BLACKHOLE,FEDERATED,ARCHIVE,MEMORY" | ||
performance_schema="ON" | ||
transaction_isolation="READ-COMMITTED" | ||
binlog_transaction_dependency_tracking="WRITESET" | ||
enforce_gtid_consistency="ON" | ||
gtid_mode="ON" | ||
pid-file="/home/superset/mysqld.pid" | ||
user = "mysql" | ||
server_id = "${SERVER_ID}" | ||
disabled_storage_engines = "MyISAM,BLACKHOLE,FEDERATED,ARCHIVE,MEMORY" | ||
performance_schema = "ON" | ||
transaction_isolation = "READ-COMMITTED" | ||
binlog_transaction_dependency_tracking = "WRITESET" | ||
binlog_encryption = "ON" | ||
enforce_gtid_consistency = "ON" | ||
gtid_mode = "ON" | ||
pid-file = "/var/run/mysqld/mysqld.pid" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
c3ed1b5822112464e8 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/usr/bin/expect -f | ||
|
||
set node1 [lindex $argv 0] | ||
set node2 [lindex $argv 1] | ||
set node3 [lindex $argv 2] | ||
set path_to_root_catalog [lindex $argv 3] | ||
set password [exec openssl rand -hex 9] | ||
set password_file "$path_to_root_catalog/services/mysql-server/mysql_root_password.txt" | ||
|
||
set fp [open $password_file w] | ||
puts $fp $password | ||
close $fp | ||
|
||
spawn mysql_config_editor set \ | ||
--login-path=$node1 \ | ||
--host=$node1 \ | ||
--user=root \ | ||
--skip-warn \ | ||
--password | ||
|
||
expect "Enter password:" | ||
send "$password\r" | ||
|
||
spawn mysql_config_editor set \ | ||
--login-path=$node2 \ | ||
--host=$node2 \ | ||
--user=root \ | ||
--skip-warn \ | ||
--password | ||
|
||
expect "Enter password:" | ||
send "$password\r" | ||
|
||
spawn mysql_config_editor set \ | ||
--login-path=$node3 \ | ||
--host=$node3 \ | ||
--user=root \ | ||
--skip-warn \ | ||
--password | ||
|
||
expect "Enter password:" | ||
send "$password\r" | ||
|
||
expect eof |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters