Skip to content

Commit a95570d

Browse files
foorschtbarjan-di
authored andcommitted
Option to disable implicit SSL/TLS connection MySQL/MariaDB server (default: enabled)
1 parent bcdb2bd commit a95570d

5 files changed

Lines changed: 5 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88

99
### Added
1010
- Decryption script and instructions in README
11+
- Option to disable implicit SSL/TLS connection MySQL/MariaDB server (default: enabled)
1112

1213
### Fixed
1314
- No encryption key specified

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ Configure each database container by specifying labels. Every label must be pref
5757
| `username` | `root` | Login user |
5858
| `password` | (none) | Login password |
5959
| `port` | `auto` | Port (inside container). Possible values: `auto` or a valid port number. Auto gets the default port corresponding to the type. |
60+
| `skip_ssl` | `true` | Disable implicit SSL/TLS connection MySQL/MariaDB server |
6061
| `compress` | `false` | Compress SQL Dump with gzip |
6162
| `compression_level` | `6` | Gzip compression level (1-9) |
6263
| `encrypt` | `false` | Encrypt SQL Dump with AES |

src/backup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ def run(self):
133133
f" --ignore-database=mysql"
134134
f" --ignore-database=information_schema"
135135
f" --ignore-database=performance_schema"
136+
f' {"--skip-ssl" if database.skip_ssl else ""}'
136137
f' > "{dump_file}"'
137138
),
138139
shell=True,

src/database.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ def _resolve_labels(self, container):
112112
# Other type conversions/calculations
113113
self.type = DatabaseType[self.type]
114114
self.port = int(self.port)
115+
self.skip_ssl = distutils.util.strtobool(self.skip_ssl)
115116
self.compress = distutils.util.strtobool(self.compress)
116117
self.compression_level = int(self.compression_level)
117118
self.encrypt = distutils.util.strtobool(self.encrypt)

src/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"password": "",
2828
"type": "auto", # via image tag
2929
"port": "auto", # via type
30+
"skip_ssl": "true",
3031
"compress": "false",
3132
"compression_level": "6",
3233
"encrypt": "false",

0 commit comments

Comments
 (0)