-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(771): Adding mTLS support in QUIC (#899)
* refactor(tls-quic): moving shared code into zenoh-link-commons::tls Signed-off-by: gabrik <[email protected]> * fix(mtls-quic): adding support for mTLS in QUIC [no ci] - broken Signed-off-by: gabrik <[email protected]> * fix(mtls-quic): using current release of quinn at the cost of some duplicated code Signed-off-by: gabrik <[email protected]> * test(quic-mlts): added tests for QUIC with mTLS, using rustls 0.22 to workaround the default CryptoProvider panic Signed-off-by: gabrik <[email protected]> * chore: addressing comments Signed-off-by: gabrik <[email protected]> * Apply suggestions from code review --------- Signed-off-by: gabrik <[email protected]> Co-authored-by: Luca Cominardi <[email protected]>
- Loading branch information
Showing
12 changed files
with
1,334 additions
and
734 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,35 +12,44 @@ | |
# ZettaScale Zenoh Team, <[email protected]> | ||
# | ||
[package] | ||
rust-version = { workspace = true } | ||
name = "zenoh-link-commons" | ||
version = { workspace = true } | ||
repository = { workspace = true } | ||
homepage = { workspace = true } | ||
authors = { workspace = true } | ||
edition = { workspace = true } | ||
license = { workspace = true } | ||
categories = { workspace = true } | ||
description = "Internal crate for zenoh." | ||
edition = { workspace = true } | ||
homepage = { workspace = true } | ||
license = { workspace = true } | ||
name = "zenoh-link-commons" | ||
repository = { workspace = true } | ||
rust-version = { workspace = true } | ||
version = { workspace = true } | ||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[features] | ||
compression = [] | ||
|
||
[dependencies] | ||
async-trait = { workspace = true } | ||
base64 = { workspace = true, optional = true } | ||
flume = { workspace = true } | ||
futures = { workspace = true } | ||
rustls = { workspace = true } | ||
rustls-webpki = { workspace = true } | ||
flume = { workspace = true } | ||
tracing = {workspace = true} | ||
serde = { workspace = true, features = ["default"] } | ||
tokio = { workspace = true, features = [ | ||
"fs", | ||
"io-util", | ||
"net", | ||
"sync", | ||
"time", | ||
] } | ||
tokio-util = { workspace = true, features = ["rt"] } | ||
tracing = { workspace = true } | ||
webpki-roots = { workspace = true, optional = true } | ||
zenoh-buffers = { workspace = true } | ||
zenoh-codec = { workspace = true } | ||
zenoh-config = { workspace = true } | ||
zenoh-core = { workspace = true } | ||
zenoh-protocol = { workspace = true } | ||
zenoh-result = { workspace = true } | ||
zenoh-util = { workspace = true } | ||
zenoh-runtime = { workspace = true } | ||
tokio = { workspace = true, features = ["io-util", "net", "fs", "sync", "time"] } | ||
tokio-util = { workspace = true, features = ["rt"] } | ||
futures = { workspace = true } | ||
zenoh-util = { workspace = true } |
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 |
---|---|---|
|
@@ -12,39 +12,46 @@ | |
# ZettaScale Zenoh Team, <[email protected]> | ||
# | ||
[package] | ||
rust-version = { workspace = true } | ||
name = "zenoh-link-quic" | ||
version = { workspace = true } | ||
repository = { workspace = true } | ||
homepage = { workspace = true } | ||
authors = { workspace = true } | ||
edition = { workspace = true } | ||
license = { workspace = true } | ||
categories = { workspace = true } | ||
description = "Internal crate for zenoh." | ||
edition = { workspace = true } | ||
homepage = { workspace = true } | ||
license = { workspace = true } | ||
name = "zenoh-link-quic" | ||
repository = { workspace = true } | ||
rust-version = { workspace = true } | ||
version = { workspace = true } | ||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
async-trait = { workspace = true } | ||
base64 = { workspace = true } | ||
futures = { workspace = true } | ||
tracing = {workspace = true} | ||
quinn = { workspace = true } | ||
rustls-native-certs = { workspace = true } | ||
rustls-pemfile = { workspace = true } | ||
rustls-pki-types = { workspace = true } | ||
rustls-webpki = { workspace = true } | ||
secrecy = {workspace = true } | ||
tokio = { workspace = true, features = ["io-util", "net", "fs", "sync", "time"] } | ||
secrecy = { workspace = true } | ||
tokio = { workspace = true, features = [ | ||
"fs", | ||
"io-util", | ||
"net", | ||
"sync", | ||
"time", | ||
] } | ||
tokio-util = { workspace = true, features = ["rt"] } | ||
tracing = { workspace = true } | ||
webpki-roots = { workspace = true } | ||
zenoh-config = { workspace = true } | ||
zenoh-core = { workspace = true } | ||
zenoh-link-commons = { workspace = true } | ||
zenoh-protocol = { workspace = true } | ||
zenoh-result = { workspace = true } | ||
zenoh-runtime = { workspace = true } | ||
zenoh-sync = { workspace = true } | ||
zenoh-util = { workspace = true } | ||
zenoh-runtime = { workspace = true } | ||
|
||
# Lock due to quinn not supporting rustls 0.22 yet | ||
rustls = { version = "0.21", features = ["dangerous_configuration", "quic"] } | ||
tokio-rustls = "0.24.1" | ||
rustls-pemfile = { version = "1" } |
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.