Merge remote-tracking branch 'origin/main' into Frando/addr-non-exhaustive

This commit is contained in:
Frando
2026-06-15 09:53:20 +02:00
6 changed files with 352 additions and 127 deletions
Generated
+102 -107
View File
@@ -426,9 +426,9 @@ checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
[[package]]
name = "base64-url"
version = "3.0.3"
version = "3.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d3b761ea69df72d0cc9591ea39adfb0e3b922a27dc535227d7ffbed5702e8809"
checksum = "261c4eaab63106ddf34d377f47e5428aa863b61e4a647c872778d9caf8e2c819"
dependencies = [
"base64",
]
@@ -465,9 +465,9 @@ dependencies = [
[[package]]
name = "bitflags"
version = "2.11.1"
version = "2.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c4512299f36f043ab09a583e57bceb5a5aab7a73db1805848e8fef3c9e8c78b3"
checksum = "b4388bee8683e3d04af747c73422af53102d2bd24d9eadb6cbc100baef4b43f8"
[[package]]
name = "blake3"
@@ -494,9 +494,9 @@ dependencies = [
[[package]]
name = "block-buffer"
version = "0.12.0"
version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cdd35008169921d80bc60d3d0ab416eecb028c4cd653352907921d95084790be"
checksum = "d2f6c7dbe95a6ed67ad9f18e57daf93a2f034c524b99fd2b76d18fdfeb6660aa"
dependencies = [
"hybrid-array",
]
@@ -569,9 +569,9 @@ checksum = "37b2a672a2cb129a2e41c10b1224bb368f9f37a2b16b612598138befd7b37eb5"
[[package]]
name = "cc"
version = "1.2.62"
version = "1.2.64"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a1dce859f0832a7d088c4f1119888ab94ef4b5d6795d1ce05afb7fe159d79f98"
checksum = "dad887fd958be91b5098c0248def011f4523ab786cd411be668777e55063501f"
dependencies = [
"find-msvc-tools",
"jobserver",
@@ -604,9 +604,9 @@ dependencies = [
[[package]]
name = "chrono"
version = "0.4.44"
version = "0.4.45"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c673075a2e0e5f4a1dde27ce9dee1ea4558c7ffe648f576438a20ca1d2acc4b0"
checksum = "1aa79e62e7697b8e29b513a68abacf485adcd1fe8284a4316c5ae868e6633327"
dependencies = [
"iana-time-zone",
"js-sys",
@@ -704,9 +704,9 @@ dependencies = [
[[package]]
name = "cmov"
version = "0.5.3"
version = "0.5.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3f88a43d011fc4a6876cb7344703e297c71dda42494fee094d5f7c76bf13f746"
checksum = "0c9ea0ac24bc397ab3c98583a3c9ba74fa56b09a4449bbe172b9b1ddb016027a"
[[package]]
name = "cobs"
@@ -947,9 +947,9 @@ dependencies = [
[[package]]
name = "ctor"
version = "1.0.6"
version = "1.0.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6d765eb1c0bda10d31e0ea185f5ee15da532d60b0912d2bd1441783439e749c5"
checksum = "01334b89b69ff726750c5ce5073fc8bd860e99aa9a8fc5ca11b04730e3aee97a"
dependencies = [
"link-section",
"linktime-proc-macro",
@@ -1141,9 +1141,6 @@ name = "deranged"
version = "0.5.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7cd812cc2bc1d69d4764bd80df88b4317eaef9e773c75226407d9bc0876b211c"
dependencies = [
"powerfmt",
]
[[package]]
name = "derive_builder"
@@ -1227,7 +1224,7 @@ version = "0.11.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f1dd6dbb5841937940781866fa1281a1ff7bd3bf827091440879f9994983d5c2"
dependencies = [
"block-buffer 0.12.0",
"block-buffer 0.12.1",
"const-oid",
"crypto-common 0.2.2",
]
@@ -1267,9 +1264,9 @@ dependencies = [
[[package]]
name = "displaydoc"
version = "0.2.5"
version = "0.2.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0"
checksum = "1ac70aa55017e108007fbaf5aa0f54b021c98f92ff8af59d42eda9da96e3dd4f"
dependencies = [
"proc-macro2",
"quote",
@@ -1621,9 +1618,9 @@ dependencies = [
[[package]]
name = "generator"
version = "0.8.8"
version = "0.8.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "52f04ae4152da20c76fe800fa48659201d5cf627c5149ca0b707b69d7eef6cf9"
checksum = "b3b854b0e584ead1a33f18b2fcad7cf7be18b3875c78816b753639aa501513ae"
dependencies = [
"cc",
"cfg-if",
@@ -1953,9 +1950,9 @@ dependencies = [
[[package]]
name = "http"
version = "1.4.1"
version = "1.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8be7462df143984c4598a256ef469b251d7d7f9e271135073e78fc535414f3d0"
checksum = "6970f50e31d6fc17d3fa27329444bfa74e196cf62e95052a3f6fee181dba6425"
dependencies = [
"bytes",
"itoa",
@@ -2023,9 +2020,9 @@ dependencies = [
[[package]]
name = "hyper"
version = "1.9.0"
version = "1.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6299f016b246a94207e63da54dbe807655bf9e00044f73ded42c3ac5305fbcca"
checksum = "55281c53a1894c864990125767da440a4e630446785086f52523b20033b74498"
dependencies = [
"atomic-waker",
"bytes",
@@ -2228,9 +2225,9 @@ dependencies = [
[[package]]
name = "igd-next"
version = "0.17.0"
version = "0.17.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bac9a3c8278f43b4cd8463380f4a25653ac843e5b177e1d3eaf849cc9ba10d4d"
checksum = "de7238d487a9aff61f81b5ab41c0a841532a115a398b5fa92a2fadd0885e2581"
dependencies = [
"attohttpc",
"bytes",
@@ -2679,13 +2676,12 @@ dependencies = [
[[package]]
name = "js-sys"
version = "0.3.99"
version = "0.3.102"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "142bc4740e452c1e57ade0cbc129f139c9093e354346f0872ef985f4f5cf5f11"
checksum = "03d04c30968dffe80775bd4d7fb676131cd04a1fb46d2686dbffbaec2d9dfd31"
dependencies = [
"cfg-if",
"futures-util",
"once_cell",
"wasm-bindgen",
]
@@ -2715,18 +2711,18 @@ checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981"
[[package]]
name = "libredox"
version = "0.1.16"
version = "0.1.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e02f3bb43d335493c96bf3fd3a321600bf6bd07ed34bc64118e9293bdffea46c"
checksum = "f02ab6bace2054fb888a3c16f990117b579d14a3088e472d63c6011fa185c9d3"
dependencies = [
"libc",
]
[[package]]
name = "link-section"
version = "0.17.2"
version = "0.18.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4d1e908a416d6e9f725743b84a36feea40c4c131e805fbc26d61f9f451f36080"
checksum = "c2b1dd6fe32e55c0fc0ea9493aa57459ca3cf4ff3c857c7d0302290150da6e4f"
[[package]]
name = "linked-hash-map"
@@ -2736,9 +2732,9 @@ checksum = "0717cef1bc8b636c6e1c1bbdefc09e6322da8a9321966e8928ef80d20f7f770f"
[[package]]
name = "linktime-proc-macro"
version = "0.1.0"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a44cd706ff0d503ee32b2071166510ca27e281228de10cd3aa8d35ff94560f81"
checksum = "8c7b0a3383c2a1002d11349c92c85a666a5fb679e96c79d782cf0dbe557fd6ee"
[[package]]
name = "linux-raw-sys"
@@ -2769,9 +2765,9 @@ dependencies = [
[[package]]
name = "log"
version = "0.4.30"
version = "0.4.32"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "616ec5685824bcc94416c6d4a7a446eea774a31efd7062c8480ba6fd06d7a6e5"
checksum = "953f07c43838f8e6f9758cab68bf5bed85465e7587ebe0b823f1bcd81978ad3a"
[[package]]
name = "loom"
@@ -2852,9 +2848,9 @@ checksum = "47e1ffaa40ddd1f3ed91f717a33c8c0ee23fff369e3aa8772b9605cc1d22f4c3"
[[package]]
name = "memchr"
version = "2.8.0"
version = "2.8.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79"
checksum = "88904434abc2901f197fe8cc55f0445e7ded921dba5911dad2e2b39b48e663c4"
[[package]]
name = "mime"
@@ -2889,9 +2885,9 @@ dependencies = [
[[package]]
name = "mio"
version = "1.2.0"
version = "1.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "50b7e5b27aa02a74bac8c3f23f448f8d87ff11f92d3aac1a6ed369ee08cc56c1"
checksum = "02bd0af71c67b473010cbbc60715ee815645a4dc942899111f494b4b737d6fda"
dependencies = [
"libc",
"wasi 0.11.1+wasi-snapshot-preview1",
@@ -3178,7 +3174,7 @@ checksum = "38bf9645c8b145698bb0b18a4637dcacbc421ea49bef2317e4fd8065a387cf21"
[[package]]
name = "noq"
version = "1.0.0-rc.1"
source = "git+https://github.com/n0-computer/noq?branch=main#a8edb1218edf35abe87c2d0eb203ed44acaf369f"
source = "git+https://github.com/n0-computer/noq?branch=main#16805f8ce5d3d6f1f31800e3afa2a9e1a0f5f688"
dependencies = [
"bytes",
"cfg_aliases",
@@ -3199,7 +3195,7 @@ dependencies = [
[[package]]
name = "noq-proto"
version = "1.0.0-rc.1"
source = "git+https://github.com/n0-computer/noq?branch=main#a8edb1218edf35abe87c2d0eb203ed44acaf369f"
source = "git+https://github.com/n0-computer/noq?branch=main#16805f8ce5d3d6f1f31800e3afa2a9e1a0f5f688"
dependencies = [
"aes-gcm",
"aws-lc-rs",
@@ -3229,7 +3225,7 @@ dependencies = [
[[package]]
name = "noq-udp"
version = "1.0.0-rc.1"
source = "git+https://github.com/n0-computer/noq?branch=main#a8edb1218edf35abe87c2d0eb203ed44acaf369f"
source = "git+https://github.com/n0-computer/noq?branch=main#16805f8ce5d3d6f1f31800e3afa2a9e1a0f5f688"
dependencies = [
"cfg_aliases",
"libc",
@@ -4040,9 +4036,9 @@ dependencies = [
[[package]]
name = "regex"
version = "1.12.3"
version = "1.12.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e10754a14b9137dd7b1e3e5b0493cc9171fdd105e0ab477f51b72e7f3ac0e276"
checksum = "f1292b7759ae1cb9ec195452d1390a074f0cd8541ab7a5a8c31cd6db45d4a6ba"
dependencies = [
"aho-corasick",
"memchr",
@@ -4063,9 +4059,9 @@ dependencies = [
[[package]]
name = "regex-syntax"
version = "0.8.10"
version = "0.8.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dc897dd8d9e8bd1ed8cdad82b5966c3e0ecae09fb1907d58efaa013543185d0a"
checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"
[[package]]
name = "reloadable-core"
@@ -4257,9 +4253,9 @@ dependencies = [
[[package]]
name = "rustls-native-certs"
version = "0.8.3"
version = "0.8.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "612460d5f7bea540c490b2b6395d8e34a953e52b491accd6c86c8164c5932a63"
checksum = "dab5152771c58876a2146916e53e35057e1a4dfa2b9df0f0305b07f611fdea4d"
dependencies = [
"openssl-probe",
"rustls-pki-types",
@@ -4526,9 +4522,9 @@ dependencies = [
[[package]]
name = "serde_with"
version = "3.20.0"
version = "3.21.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e72c1c2cb7b223fafb600a619537a871c2818583d619401b785e7c0b746ccde2"
checksum = "76a5c54c7310e7b8b9577c286d7e399ddd876c3e12b3ed917a8aabc4b96e9e8c"
dependencies = [
"serde_core",
"serde_with_macros",
@@ -4536,9 +4532,9 @@ dependencies = [
[[package]]
name = "serde_with_macros"
version = "3.20.0"
version = "3.21.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b90c488738ecb4fb0262f41f43bc40efc5868d9fb744319ddf5f5317f417bfac"
checksum = "84d57bc0c8b9a17920c178daa6bb924850d54a9c97ab45194bb8c17ad66bb660"
dependencies = [
"darling 0.23.0",
"proc-macro2",
@@ -4606,9 +4602,9 @@ dependencies = [
[[package]]
name = "shlex"
version = "1.3.0"
version = "2.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba"
[[package]]
name = "signal-hook-registry"
@@ -4665,15 +4661,15 @@ checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
[[package]]
name = "smallvec"
version = "1.15.1"
version = "1.15.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
checksum = "8ed6a63f02c8539c91a8685a86f4099661ba3da017932f6ebbea6de3f0fa7c90"
[[package]]
name = "socket2"
version = "0.6.3"
version = "0.6.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3a766e1110788c36f4fa1c2b71b387a7815aa65f88ce0229841826633d93723e"
checksum = "52d1cfed4120b4d927bf7c0f86d2087a4a7d6027c906d9f9d525a80573b9be51"
dependencies = [
"libc",
"windows-sys 0.61.2",
@@ -4949,12 +4945,11 @@ dependencies = [
[[package]]
name = "time"
version = "0.3.47"
version = "0.3.49"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "743bd48c283afc0388f9b8827b976905fb217ad9e647fae3a379a9283c4def2c"
checksum = "711a53c2d47bbd818258c498c8dbfe186a2526c631495cfe7e078567f86b8469"
dependencies = [
"deranged",
"itoa",
"js-sys",
"libc",
"num-conv",
@@ -4967,15 +4962,15 @@ dependencies = [
[[package]]
name = "time-core"
version = "0.1.8"
version = "0.1.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7694e1cfe791f8d31026952abf09c69ca6f6fa4e1a1229e18988f06a04a12dca"
checksum = "9e1c906769ad99c88eaa54e728060edef082f8e358ff32030cb7c7d315e81109"
[[package]]
name = "time-macros"
version = "0.2.27"
version = "0.2.29"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2e70e4c5a0e0a8a4823ad65dfe1a6930e4f4d756dcd9dd7939022b5e8c501215"
checksum = "71c652a3727a9cbb9a02f707f530b618ce00d0ccd762009c8c23bd191df3c17d"
dependencies = [
"num-conv",
"time-core",
@@ -5171,9 +5166,9 @@ dependencies = [
[[package]]
name = "toml_edit"
version = "0.25.11+spec-1.1.0"
version = "0.25.12+spec-1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0b59c4d22ed448339746c59b905d24568fcbb3ab65a500494f7b8c3e97739f2b"
checksum = "d2153edc6955a6c354fad8f5efd38b6a8769bdccf9fe50f8e1329f81b0baa5d7"
dependencies = [
"indexmap",
"toml_datetime",
@@ -5355,9 +5350,9 @@ dependencies = [
[[package]]
name = "typenum"
version = "1.20.0"
version = "1.20.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "40ce102ab67701b8526c123c1bab5cbe42d7040ccfd0f64af1a385808d2f43de"
checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20"
[[package]]
name = "unarray"
@@ -5373,9 +5368,9 @@ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
[[package]]
name = "unicode-segmentation"
version = "1.13.2"
version = "1.13.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9629274872b2bfaf8d66f5f15725007f635594914870f65218920345aa11aa8c"
checksum = "c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8"
[[package]]
name = "unicode-width"
@@ -5438,9 +5433,9 @@ checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
[[package]]
name = "uuid"
version = "1.23.1"
version = "1.23.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ddd74a9687298c6858e9b88ec8935ec45d22e8fd5e6394fa1bd4e99a87789c76"
checksum = "144d6b123cef80b301b8f72a9e2ca4370ddec21950d0a103dd22c437006d2db7"
dependencies = [
"getrandom 0.4.2",
"js-sys",
@@ -5541,9 +5536,9 @@ dependencies = [
[[package]]
name = "wasip2"
version = "1.0.3+wasi-0.2.9"
version = "1.0.4+wasi-0.2.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "20064672db26d7cdc89c7798c48a0fdfac8213434a1186e5ef29fd560ae223d6"
checksum = "b67efb37e106e55ce722a510d6b5f9c17f083e5fc79afc2badeb12cc313d9487"
dependencies = [
"wit-bindgen 0.57.1",
]
@@ -5568,9 +5563,9 @@ dependencies = [
[[package]]
name = "wasm-bindgen"
version = "0.2.122"
version = "0.2.125"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3ed04576f974d2b2fba0f38c51dbc5518011e38c36bf1143164be765528fd409"
checksum = "8ddb3f79143bced6de84270411622a2699cee572fc0875aeaf1e7867cf9fca1a"
dependencies = [
"cfg-if",
"once_cell",
@@ -5581,9 +5576,9 @@ dependencies = [
[[package]]
name = "wasm-bindgen-futures"
version = "0.4.72"
version = "0.4.75"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9473dbd2991ae90b6291c3c32c30c6187ac49aa32f9905d1cce280ec1e110b0f"
checksum = "503b14d284f2c8dac03b819967e155ea753f573586193b2b2c95990cb5d69280"
dependencies = [
"js-sys",
"wasm-bindgen",
@@ -5591,9 +5586,9 @@ dependencies = [
[[package]]
name = "wasm-bindgen-macro"
version = "0.2.122"
version = "0.2.125"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "916151b09da36bd82f6615cbf3a419e2f0ba23a03c6160e8e92eb6bd4aa1dec6"
checksum = "4e21a184b13fb19e157296e2c46056aec9092264fab83e4ba59e68c61b323c3d"
dependencies = [
"quote",
"wasm-bindgen-macro-support",
@@ -5601,9 +5596,9 @@ dependencies = [
[[package]]
name = "wasm-bindgen-macro-support"
version = "0.2.122"
version = "0.2.125"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "299047362ccbfce148b67ab7e73349f77748e00c8296f9542adfad2ad82c5c5e"
checksum = "fecefd9c35bd935a20fc3fc344b5f29138961e4f47fb03297d88f2587afb5ebd"
dependencies = [
"bumpalo",
"proc-macro2",
@@ -5614,18 +5609,18 @@ dependencies = [
[[package]]
name = "wasm-bindgen-shared"
version = "0.2.122"
version = "0.2.125"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9a929b2c61f11ba3e9bc35b50c1f25cb38e0e892c0c231ae2b8cf78d5dad4437"
checksum = "23939e44bb9a5d7576fa2b563dc2e136628f1224e88a8deed09e04858b77871f"
dependencies = [
"unicode-ident",
]
[[package]]
name = "wasm-bindgen-test"
version = "0.3.72"
version = "0.3.75"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "74fde991ccdc895cb7fbaa14b137d62af74d9011be67b71c694bfc40edd3119c"
checksum = "d16931d57bcdd6a0dcc11254bdd1388827690c1b6807f0d2836f59a4f9eb30ac"
dependencies = [
"async-trait",
"cast",
@@ -5645,9 +5640,9 @@ dependencies = [
[[package]]
name = "wasm-bindgen-test-macro"
version = "0.3.72"
version = "0.3.75"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e925354648d2a4d1bf205412e36d520a800280622eef4719678d268e5d40e978"
checksum = "fccaddcb2cd722baa7453b4c3d2cb2a3071597bb91f7a4373e8775bdb151778c"
dependencies = [
"proc-macro2",
"quote",
@@ -5656,9 +5651,9 @@ dependencies = [
[[package]]
name = "wasm-bindgen-test-shared"
version = "0.2.122"
version = "0.2.125"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "684365b586a9a6256c1cc3544eee8680de48d6041142f581776ec7b139622ae9"
checksum = "3746ad029217960123cf2ebf939dda51eb931ba9f8f09c117e39c820b96aa794"
[[package]]
name = "wasm-encoder"
@@ -5720,9 +5715,9 @@ dependencies = [
[[package]]
name = "web-sys"
version = "0.3.99"
version = "0.3.102"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6d621441cfc37b84979402712047321980c178f299193a3589d05b99e8763436"
checksum = "a6430a72df5eb332242960fe84b3002a241163998241eb596d4f739b9757061d"
dependencies = [
"js-sys",
"wasm-bindgen",
@@ -6203,9 +6198,9 @@ dependencies = [
[[package]]
name = "yoke"
version = "0.8.2"
version = "0.8.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "abe8c5fda708d9ca3df187cae8bfb9ceda00dd96231bed36e445a1a48e66f9ca"
checksum = "709fe23a0424b6a435d82152b1bd3fdfb0833487d5fa90d05d42762a9891fef5"
dependencies = [
"stable_deref_trait",
"yoke-derive",
@@ -6226,18 +6221,18 @@ dependencies = [
[[package]]
name = "zerocopy"
version = "0.8.48"
version = "0.8.52"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "eed437bf9d6692032087e337407a86f04cd8d6a16a37199ed57949d415bd68e9"
checksum = "ce1022995ff5ff5d841ad7d994facc23098cd40152f2c1d11cd607c6f530653f"
dependencies = [
"zerocopy-derive",
]
[[package]]
name = "zerocopy-derive"
version = "0.8.48"
version = "0.8.52"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "70e3cd084b1788766f53af483dd21f93881ff30d7320490ec3ef7526d203bad4"
checksum = "1ae7f38b72ec2a254e2b87ef277cf2cd4fb97cbebf944faa6f33354da0867930"
dependencies = [
"proc-macro2",
"quote",
@@ -6267,18 +6262,18 @@ dependencies = [
[[package]]
name = "zeroize"
version = "1.8.2"
version = "1.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b97154e67e32c85465826e8bcc1c59429aaaf107c1e4a9e53c8d8ccd5eff88d0"
checksum = "e13c156562582aa81c60cb29407084cdb54c4164760106ab78e6c5b0858cf64e"
dependencies = [
"zeroize_derive",
]
[[package]]
name = "zeroize_derive"
version = "1.4.3"
version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "85a5b4158499876c763cb03bc4e49185d3cccbabb15b33c627f7884f43db852e"
checksum = "3c50655cbb0fe3fc43170059e702f1ce5e19b84cec58dc87b037a09935c2f328"
dependencies = [
"proc-macro2",
"quote",
+46 -7
View File
@@ -21,6 +21,7 @@ use iroh_relay::{
self as relay, Access, AccessControl, AcmeConfig, ClientRateLimit, ClientRequest,
DEFAULT_CERT_RELOAD_INTERVAL, QuicConfig, reloading_resolver,
},
tls::CaTlsConfig,
};
use n0_error::{AnyError, Result, StdResultExt, bail_any};
use serde::{Deserialize, Serialize};
@@ -37,6 +38,10 @@ const X_IROH_ENDPOINT_ID: &str = "X-Iroh-NodeId";
const ENV_HTTP_BEARER_TOKEN: &str = "IROH_RELAY_HTTP_BEARER_TOKEN";
/// Environment variable to verify relay access (without an external auth service)
const ENV_RELAY_ACCESS_TOKEN: &str = "IROH_RELAY_ACCESS_TOKEN";
/// Environment variable to override the ACME directory URL.
const ENV_ACME_URL: &str = "IROH_RELAY_ACME_URL";
/// Environment variable to trust an additional CA for the ACME server's TLS certificate.
const ENV_ACME_CA: &str = "IROH_RELAY_ACME_CA";
/// A relay server for iroh.
#[derive(Parser, Debug, Clone)]
@@ -400,7 +405,8 @@ struct TlsConfig {
/// port set to [`iroh_relay::defaults::DEFAULT_RELAY_QUIC_PORT`]
quic_bind_addr: Option<SocketAddr>,
/// Certificate hostname when using LetsEncrypt.
hostname: Option<String>,
#[serde(default, deserialize_with = "string_or_seq")]
hostname: Vec<String>,
/// Mode for getting a cert.
///
/// Possible options: 'Manual', 'LetsEncrypt'.
@@ -479,6 +485,23 @@ impl TlsConfig {
}
}
fn string_or_seq<'de, D>(deserializer: D) -> Result<Vec<String>, D::Error>
where
D: serde::Deserializer<'de>,
{
#[derive(Deserialize)]
#[serde(untagged)]
enum StringOrVec {
One(String),
Many(Vec<String>),
}
Ok(match StringOrVec::deserialize(deserializer)? {
StringOrVec::One(s) => vec![s],
StringOrVec::Many(v) => v,
})
}
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
struct Limits {
/// Rate limit for accepting new connection. Unlimited if not set.
@@ -614,18 +637,34 @@ async fn load_cert_config(tls: &TlsConfig) -> Result<relay::CertConfig> {
relay::CertConfig::Manual { server_config }
}
CertMode::LetsEncrypt => {
let hostname = tls
.hostname
.clone()
.std_context("LetsEncrypt needs a hostname")?;
let domains = tls.hostname.clone();
if domains.is_empty() {
bail_any!("LetsEncrypt needs at least one hostname");
}
let contact = tls
.contact
.clone()
.std_context("LetsEncrypt needs a contact email")?;
let acme_config = AcmeConfig::letsencrypt(tls.prod_tls)
.domains(vec![hostname])
let acme_config = if let Ok(url) = std::env::var(ENV_ACME_URL) {
AcmeConfig::new(url)
} else {
AcmeConfig::letsencrypt(tls.prod_tls)
};
let mut acme_config = acme_config
.domains(domains)
.contact(vec![format!("mailto:{contact}")])
.cache_path(tls.cert_dir());
// Trust an additional CA for the ACME server's TLS certificate. Useful for testing
// against a local ACME server such as pebble, whose certificate is not signed by a
// publicly trusted CA.
if let Ok(ca_path) = std::env::var(ENV_ACME_CA) {
let extra_roots = CertificateDer::pem_file_iter(&ca_path)
.std_context("failed to read IROH_RELAY_ACME_CA")?
.collect::<Result<Vec<_>, _>>()
.std_context("failed to parse IROH_RELAY_ACME_CA")?;
acme_config =
acme_config.tls_config(CaTlsConfig::default().with_extra_roots(extra_roots));
}
relay::CertConfig::LetsEncrypt {
acme_config,
server_config_builder: server_config,
+31 -4
View File
@@ -58,6 +58,7 @@ use crate::{
defaults::DEFAULT_KEY_CACHE_CAPACITY,
http::{AUTH_TOKEN_URL_QUERY_PARAM, ProtocolVersion, RELAY_PROBE_PATH},
quic::server::{QuicServer, QuicSpawnError, ServerHandle as QuicServerHandle},
tls::CaTlsConfig,
};
pub mod client;
@@ -549,6 +550,7 @@ pub struct AcmeConfig {
pub(crate) domains: Vec<String>,
pub(crate) contact: Vec<String>,
pub(crate) cache_path: Option<PathBuf>,
pub(crate) tls_config: CaTlsConfig,
}
impl AcmeConfig {
@@ -559,6 +561,7 @@ impl AcmeConfig {
domains: Vec::new(),
contact: Vec::new(),
cache_path: None,
tls_config: CaTlsConfig::default(),
}
}
@@ -593,6 +596,16 @@ impl AcmeConfig {
self.cache_path = Some(path);
self
}
/// Sets the [`CaTlsConfig`] used to verify the ACME server's TLS certificate.
///
/// Defaults to [`CaTlsConfig::embedded`]. Set a config with extra roots when targeting
/// an ACME server whose certificate is not signed by a publicly trusted CA, such as a
/// local test server.
pub fn tls_config(mut self, tls_config: CaTlsConfig) -> Self {
self.tls_config = tls_config;
self
}
}
/// A running Relay + QAD server.
@@ -636,6 +649,11 @@ pub enum SpawnError {
TlsHeaderParse { source: InvalidHeaderValue },
#[error("Failed to bind TcpListener")]
BindTlsListener { source: std::io::Error },
#[error("Failed to build ACME client TLS config")]
AcmeClientTlsConfig {
#[error(std_err)]
source: std::io::Error,
},
#[error("No local address")]
NoLocalAddr { source: std::io::Error },
#[error("Failed to bind server socket to {addr}")]
@@ -731,11 +749,20 @@ impl Server {
server_config_builder,
} => {
let cache = acme_config.cache_path.map(DirCache::new);
let crypto_provider =
server_config_builder.crypto_provider().clone();
let client_tls_config = acme_config
.tls_config
.client_config(crypto_provider)
.map_err(|err| e!(SpawnError::AcmeClientTlsConfig, err))?;
let config =
tokio_rustls_acme::AcmeConfig::new(acme_config.domains)
.contact(acme_config.contact)
.directory(acme_config.directory_url)
.cache_option(cache);
tokio_rustls_acme::AcmeConfig::new_with_client_tls_config(
acme_config.domains,
Arc::new(client_tls_config),
)
.contact(acme_config.contact)
.directory(acme_config.directory_url)
.cache_option(cache);
let mut state = config.state();
let resolver = state.resolver().clone();
let server_config =
+164
View File
@@ -0,0 +1,164 @@
#!/usr/bin/env bash
#
# End-to-end test for iroh-relay multi-hostname ACME support against a local
# pebble ACME server, exercising real TLS-ALPN-01 challenge validation.
#
# Starts pebble, then iroh-relay in LetsEncrypt cert mode pointed at pebble via
# IROH_RELAY_ACME_URL / IROH_RELAY_ACME_CA, and checks with curl that:
# - every configured hostname is served a cert signed by pebble's CA,
# - an unconfigured hostname is refused at the TLS handshake, and
# - pebble actually completed a challenge (no PEBBLE_VA_ALWAYS_VALID).
#
# pebble's validation authority resolves each hostname and connects back to the
# relay's TLS-ALPN-01 responder. Two things make that callback reach the relay:
# pebble's validation TLS port is set to the relay's HTTPS port, and an
# /etc/hosts mounted into the pebble container maps each hostname to 127.0.0.1
# (pebble reads it through its system resolver, so no separate DNS server is
# needed). Host networking lets pebble's loopback reach the relay's listener.
#
# Exits 0 if all checks pass, 1 otherwise.
#
# Requirements: docker (Linux host networking), curl, jq, the iroh-relay sources.
set -euo pipefail
PEBBLE_IMAGE="${PEBBLE_IMAGE:-ghcr.io/letsencrypt/pebble:latest}"
RELAY_HTTP_PORT="${RELAY_HTTP_PORT:-8080}"
RELAY_HTTPS_PORT="${RELAY_HTTPS_PORT:-8443}"
# The workdir is always a fresh mktemp directory, never taken from the
# environment. This is what keeps cleanup safe: nothing here can ever delete a
# path the user supplied, no matter how the environment is set. The pebble
# container name is derived from it, so a run never force-removes a container it
# did not create.
WORK="$(mktemp -d "${TMPDIR:-/tmp}/iroh-relay-pebble.XXXXXXXX")"
PEBBLE_NAME="${PEBBLE_NAME:-$(basename "$WORK")}"
# Reject non-numeric ports so a bad value cannot leak into the generated config
# or the jq program further down.
case "${RELAY_HTTP_PORT}:${RELAY_HTTPS_PORT}" in
*[!0-9:]*) echo "RELAY_HTTP_PORT and RELAY_HTTPS_PORT must be numeric" >&2; exit 1 ;;
esac
# Hostnames the relay is configured to serve, plus one it is not.
HOSTS=(relay-a.localhost relay-b.localhost)
HOST_BAD=relay-evil.localhost
PEBBLE_DIR_URL="https://localhost:14000/dir"
PEBBLE_MGMT_URL="https://localhost:15000"
log() { printf '\n=== %s ===\n' "$*"; }
ok() { printf ' [ ok ] %s\n' "$*"; }
fail() {
printf '\n [FAIL] %s\n' "$*" >&2
[ -f "$WORK/relay.log" ] && { echo "--- relay.log (tail) ---" >&2; tail -n 30 "$WORK/relay.log" >&2; }
docker logs "$PEBBLE_NAME" >/dev/null 2>&1 && { echo "--- pebble.log (tail) ---" >&2; docker logs "$PEBBLE_NAME" 2>&1 | tail -20 >&2; }
exit 1
}
RELAY_PID=""
cleanup() {
set +e
[ -n "$RELAY_PID" ] && kill "$RELAY_PID" 2>/dev/null
docker rm -f "$PEBBLE_NAME" >/dev/null 2>&1
}
trap cleanup EXIT
# curl the relay over HTTPS for a given hostname. --fail turns a non-2xx or TLS
# error into a non-zero exit; --resolve pins the SNI hostname to loopback.
curl_relay() {
curl -s --fail --max-time 5 -o /dev/null \
--cacert "$WORK/pebble-issuer-root.pem" \
--resolve "$1:${RELAY_HTTPS_PORT}:127.0.0.1" \
"https://$1:${RELAY_HTTPS_PORT}/healthz"
}
# --- start pebble ------------------------------------------------------------
mkdir -p "$WORK/certs"
{ echo "127.0.0.1 localhost"; echo "::1 localhost"
for host in "${HOSTS[@]}"; do echo "127.0.0.1 $host"; done; } > "$WORK/hosts"
log "starting pebble ($PEBBLE_IMAGE)"
# Derive pebble's config from the image default, setting its TLS-ALPN-01
# validation port to the relay's HTTPS port so the callback lands on the relay.
cid=$(docker create "$PEBBLE_IMAGE")
docker cp "$cid:/test/config/pebble-config.json" "$WORK/pebble-config.in.json" >/dev/null
docker rm "$cid" >/dev/null
jq ".pebble.tlsPort = ${RELAY_HTTPS_PORT}" "$WORK/pebble-config.in.json" > "$WORK/pebble-config.json"
docker run -d --rm --name "$PEBBLE_NAME" --network host \
-e PEBBLE_VA_NOSLEEP=1 -e PEBBLE_WFE_NONCEREJECT=0 \
-v "$WORK/pebble-config.json:/pebble-config.json:ro" \
-v "$WORK/hosts:/etc/hosts:ro" \
"$PEBBLE_IMAGE" -config /pebble-config.json >/dev/null
for i in $(seq 1 30); do
curl -sk -o /dev/null "$PEBBLE_DIR_URL" && break
[ "$i" = 30 ] && fail "pebble did not come up"
sleep 0.5
done
ok "pebble up (validation port = ${RELAY_HTTPS_PORT})"
# pebble.minica.pem signs pebble's own ACME/management TLS, so the relay must
# trust it (IROH_RELAY_ACME_CA). The certs pebble *issues* chain to a separate
# root served by the management interface, which curl needs to verify the relay.
docker cp "$PEBBLE_NAME:/test/certs/pebble.minica.pem" "$WORK/pebble.minica.pem" >/dev/null
curl -s --cacert "$WORK/pebble.minica.pem" "$PEBBLE_MGMT_URL/roots/0" -o "$WORK/pebble-issuer-root.pem"
ok "fetched pebble CAs"
# --- start relay -------------------------------------------------------------
hostnames=$(printf '"%s", ' "${HOSTS[@]}")
cat > "$WORK/relay.toml" <<EOF
enable_relay = true
enable_quic_addr_discovery = false
enable_metrics = false
http_bind_addr = "0.0.0.0:${RELAY_HTTP_PORT}"
[tls]
https_bind_addr = "0.0.0.0:${RELAY_HTTPS_PORT}"
hostname = [ ${hostnames%, } ]
cert_mode = "LetsEncrypt"
contact = "test@iroh.test"
cert_dir = "${WORK}/certs"
EOF
log "starting iroh-relay (hostnames: ${HOSTS[*]})"
IROH_RELAY_ACME_URL="$PEBBLE_DIR_URL" \
IROH_RELAY_ACME_CA="$WORK/pebble.minica.pem" \
RUST_LOG="${RUST_LOG:-iroh_relay=debug,rustls_acme=info,warn}" \
cargo run --quiet --bin iroh-relay --features server -- \
--config-path "$WORK/relay.toml" > "$WORK/relay.log" 2>&1 &
RELAY_PID=$!
# --- checks ------------------------------------------------------------------
log "waiting for the relay to pass validation and provision a cert"
for i in $(seq 1 90); do
kill -0 "$RELAY_PID" 2>/dev/null || fail "relay exited early"
curl_relay "${HOSTS[0]}" 2>/dev/null && break
[ "$i" = 90 ] && fail "relay did not provision a cert in time"
sleep 1
done
ok "relay provisioned a cert"
log "every configured hostname serves a pebble-signed cert"
for host in "${HOSTS[@]}"; do
curl_relay "$host" || fail "$host: expected a valid pebble-signed cert"
ok "$host: served a pebble-signed cert, verified by curl"
done
log "an unconfigured hostname is refused"
curl_relay "$HOST_BAD" 2>/dev/null && fail "$HOST_BAD: handshake unexpectedly succeeded"
ok "$HOST_BAD: TLS handshake refused, as expected"
log "pebble ran a real challenge validation"
docker logs "$PEBBLE_NAME" 2>&1 | grep -q "set VALID by completed challenge" \
|| fail "pebble recorded no completed challenge (was validation skipped?)"
docker logs "$PEBBLE_NAME" 2>&1 | grep -E "set VALID by completed challenge|Issued certificate" | tail -4
ok "pebble validated the TLS-ALPN-01 challenge and issued the cert"
log "ALL CHECKS PASSED"
echo "artifacts (logs, certs, config) left in $WORK"
+4 -4
View File
@@ -24,13 +24,13 @@ pub mod prod {
use crate::RelayUrl;
/// Hostname of the default NA east relay.
pub const NA_EAST_RELAY_HOSTNAME: &str = "use1-1.relay.n0.iroh-canary.iroh.link.";
pub const NA_EAST_RELAY_HOSTNAME: &str = "use1-1.relay.n0.iroh.link.";
/// Hostname of the default NA west relay.
pub const NA_WEST_RELAY_HOSTNAME: &str = "usw1-1.relay.n0.iroh-canary.iroh.link.";
pub const NA_WEST_RELAY_HOSTNAME: &str = "usw1-1.relay.n0.iroh.link.";
/// Hostname of the default EU relay.
pub const EU_RELAY_HOSTNAME: &str = "euc1-1.relay.n0.iroh-canary.iroh.link.";
pub const EU_RELAY_HOSTNAME: &str = "euc1-1.relay.n0.iroh.link.";
/// Hostname of the default Asia-Pacific relay.
pub const AP_RELAY_HOSTNAME: &str = "aps1-1.relay.n0.iroh-canary.iroh.link.";
pub const AP_RELAY_HOSTNAME: &str = "aps1-1.relay.n0.iroh.link.";
/// Get the default [`RelayMap`].
pub fn default_relay_map() -> RelayMap {
+5 -5
View File
@@ -1918,8 +1918,8 @@ impl RelayMode {
/// # fn main() -> n0_error::Result<()> {
/// # use iroh::RelayMode;
/// RelayMode::custom([
/// "https://use1-1.relay.n0.iroh-canary.iroh.link.".parse()?,
/// "https://euw-1.relay.n0.iroh-canary.iroh.link.".parse()?,
/// "https://use1-1.relay.n0.iroh.link.".parse()?,
/// "https://euw-1.relay.n0.iroh.link.".parse()?,
/// ]);
/// # Ok(()) }
/// ```
@@ -3239,14 +3239,14 @@ mod tests {
async fn test_custom_relay() -> Result {
let _ep = Endpoint::builder(presets::Minimal)
.relay_mode(RelayMode::custom([RelayUrl::from_str(
"https://use1-1.relay.n0.iroh-canary.iroh.link.",
"https://use1-1.relay.n0.iroh.link.",
)?]))
.bind()
.await?;
let relays = RelayMap::try_from_iter([
"https://use1-1.relay.n0.iroh.iroh.link/",
"https://euc1-1.relay.n0.iroh.iroh.link/",
"https://use1-1.relay.n0.iroh.link/",
"https://euc1-1.relay.n0.iroh.link/",
])?;
let _ep = Endpoint::builder(presets::Minimal)
.relay_mode(RelayMode::Custom(relays))