-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[cluster] Support encrypted connections
Encryption support is provided by 1. `tokio_rustls` 2. `rustls` which allow for both the NodeServer received connections and outgoing client cluster connections to utilize TLS configuration. Integration tests added, but code-coverage will likely be low as integration tests don't count in `codecov` ```bash $ docker compose --env-file ./ractor_cluster_integration_tests/envs/encryption.env up --build --exit-code-from node-b ... node-a | [2023-02-21T16:58:39.401Z WARN ractor_cluster_integration_tests::tests::encryption] CA Cert SUB=10U ponytown RSA CA node-a | [2023-02-21T16:58:39.402Z INFO ractor_cluster_integration_tests::tests::encryption] Starting NodeServer on port 8199 node-a | [2023-02-21T16:58:39.402Z INFO ractor_cluster_integration_tests::tests::encryption] Waiting for NodeSession status updates node-b | [2023-02-21T16:58:39.621Z WARN ractor_cluster_integration_tests::tests::encryption] CA Cert SUB=10U ponytown RSA CA node-b | [2023-02-21T16:58:39.621Z INFO ractor_cluster_integration_tests::tests::encryption] Starting NodeServer on port 8198 node-b | [2023-02-21T16:58:39.621Z INFO ractor_cluster_integration_tests::tests::encryption] Connecting to remote NodeServer at node-a:8199 node-b | [2023-02-21T16:58:39.623Z DEBUG rustls::client::hs] No cached session for DnsName(DnsName(DnsName("testserver.com"))) node-a | [2023-02-21T16:58:39.623Z DEBUG rustls::server::hs] decided upon suite TLS13_AES_256_GCM_SHA384 node-b | [2023-02-21T16:58:39.623Z DEBUG rustls::client::hs] Not resuming any session [cluster] Support encrypted connections node-b | [2023-02-21T16:58:39.624Z DEBUG rustls::client::hs] Using ciphersuite TLS13_AES_256_GCM_SHA384 node-b | [2023-02-21T16:58:39.624Z DEBUG rustls::client::tls13] Not resuming node-b | [2023-02-21T16:58:39.624Z DEBUG rustls::client::tls13] TLS1.3 encrypted extensions: [ServerNameAck] node-b | [2023-02-21T16:58:39.624Z DEBUG rustls::client::hs] ALPN protocol is None node-b | [2023-02-21T16:58:39.624Z INFO ractor_cluster::node::client] TCP Session opened for 172.18.0.2:8199 node-b | [2023-02-21T16:58:39.624Z INFO ractor_cluster_integration_tests::tests::encryption] Client connected NodeServer b to NodeServer a node-b | [2023-02-21T16:58:39.624Z INFO ractor_cluster_integration_tests::tests::encryption] Waiting for NodeSession status updates node-a | [2023-02-21T16:58:39.624Z INFO ractor_cluster::net::listener] TCP Session opened for 172.18.0.3:34662 ... node-a exited with code 0 ```
- Loading branch information
Showing
76 changed files
with
1,796 additions
and
56 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,4 @@ Cargo.lock | |
debug/ | ||
coverage/ | ||
**/*.profraw | ||
**/.DS_Store |
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
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
Oops, something went wrong.