Disable SSL by default (#25)

* Print the connection type used (with/without SSL)
* Update CHANGELOG

Co-authored-by: Antonio Andelic <antonio.andelic@memgraph.io>
This commit is contained in:
antonio2368 2020-10-20 15:49:10 +02:00 committed by GitHub
parent 0a7d4278b1
commit 2e7d3822fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 8 deletions

View File

@ -2,6 +2,11 @@
## v1.2.0
### Breaking Changes
* SSL is disabled by default (`--bolt-cert-file` and `--bolt-key-file` are
empty). This change might only affect the client connection configuration.
### Major Features and Improvements
* Added support for Bolt v4.0 and v4.1.

View File

@ -39,14 +39,6 @@ modifications:
value: "/var/log/memgraph/memgraph.log"
override: true
- name: "bolt_cert_file"
value: "/etc/memgraph/ssl/cert.pem"
override: true
- name: "bolt_key_file"
value: "/etc/memgraph/ssl/key.pem"
override: true
- name: "bolt_num_workers"
value: ""
override: false

View File

@ -1002,6 +1002,9 @@ int main(int argc, char **argv) {
if (!FLAGS_bolt_key_file.empty() && !FLAGS_bolt_cert_file.empty()) {
context = ServerContext(FLAGS_bolt_key_file, FLAGS_bolt_cert_file);
service_name = "BoltS";
std::cout << "Using secure Bolt connection (with SSL)" << std::endl;
} else {
std::cout << "Using non-secure Bolt connection (without SSL)" << std::endl;
}
ServerT server({FLAGS_bolt_address, static_cast<uint16_t>(FLAGS_bolt_port)},