clnrest: do not install dependencies from git url
What changed, and why it matters
This commit changes how the clnrest plugin pulls in two Rust helper libraries (utoipa and utoipa-swagger-ui). Previously they were downloaded directly from a personal GitHub fork; now they come from the official crates.io registry. The change was made to fix broken Docker and release builds, not because of a known security flaw. Using registry versions is generally safer and more reproducible than an unreviewed git fork, but the commit itself does not claim to fix any vulnerability.
Treat as a routine build/maintenance improvement. Verify that the new registry versions of utoipa and utoipa-swagger-ui do not introduce API incompatibilities in clnrest. No urgent security action is required based on the supplied materials.
Security signals we found
Dependency source changed from personal git fork to official registry
Build reproducibility and supply-chain consistency improved by using versioned crates with checksums
No security bug, CVE, or exploit path described in commit or references
Evidence from the diff
The patch reverts an earlier decision to depend on utoipa and utoipa-swagger-ui via a git URL pointing to rustyrussell/utoipa.git. It switches the Cargo.toml entries to versioned crates.io releases (utoipa 5.x and utoipa-swagger-ui 9.0.0) and updates Cargo.lock to use registry sources with pinned checksums. The stated motivation is build reproducibility and fixing Docker/build-release.sh failures caused by Cargo’s inability to resolve the git commit in certain build contexts. No CVE, security advisory, or vulnerability disclosure is referenced.
Changed components
plugins/rest-plugin/Cargo.tomlCargo.lockclnrest plugin build dependenciesInspect captured patch +10 / −7
diff --git a/Cargo.lock b/Cargo.lock
index 433142da..90292f35 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3126,7 +3126,8 @@ checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"
[[package]]
name = "utoipa"
version = "5.4.0"
-source = "git+https://github.com/rustyrussell/utoipa.git#26f4908b092a4a746cbec935e05165852ea01289"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2fcc29c80c21c31608227e0912b2d7fddba57ad76b606890627ba8ee7964e993"
dependencies = [
"indexmap 2.10.0",
"serde",
@@ -3137,7 +3138,8 @@ dependencies = [
[[package]]
name = "utoipa-gen"
version = "5.4.0"
-source = "git+https://github.com/rustyrussell/utoipa.git#26f4908b092a4a746cbec935e05165852ea01289"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6d79d08d92ab8af4c5e8a6da20c47ae3f61a0f1dabc1997cdf2d082b757ca08b"
dependencies = [
"proc-macro2",
"quote",
@@ -3148,7 +3150,8 @@ dependencies = [
[[package]]
name = "utoipa-swagger-ui"
version = "9.0.2"
-source = "git+https://github.com/rustyrussell/utoipa.git#26f4908b092a4a746cbec935e05165852ea01289"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d047458f1b5b65237c2f6dc6db136945667f40a7668627b3490b9513a3d43a55"
dependencies = [
"axum 0.8.4",
"base64 0.22.1",
@@ -3166,7 +3169,8 @@ dependencies = [
[[package]]
name = "utoipa-swagger-ui-vendored"
version = "0.1.2"
-source = "git+https://github.com/rustyrussell/utoipa.git#26f4908b092a4a746cbec935e05165852ea01289"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e2eebbbfe4093922c2b6734d7c679ebfebd704a0d7e56dfcb0d05818ce28977d"
[[package]]
name = "valuable"
diff --git a/plugins/rest-plugin/Cargo.toml b/plugins/rest-plugin/Cargo.toml
index 09b38fae..566c4018 100644
--- a/plugins/rest-plugin/Cargo.toml
+++ b/plugins/rest-plugin/Cargo.toml
@@ -26,12 +26,11 @@ rcgen = "0.13"
hyper = "1"
tower= "0.5"
tower-http = { version = "0.6", features = ["cors", "set-header"] }
-utoipa = { git = "https://github.com/rustyrussell/utoipa.git", features = ['axum_extras'] }
+utoipa = { version = "5", features = ['axum_extras'] }
log-panics = "2"
socketioxide = "0.15"
cln-plugin = { version = "0.5", path = "../../plugins" }
cln-rpc = { version = "0.5", path = "../../cln-rpc" }
-utoipa-swagger-ui = { git = "https://github.com/rustyrussell/utoipa.git", features = ["vendored", "axum"] }
-
+utoipa-swagger-ui = { version = "9.0.0", features = ["vendored", "axum"] }
Why this scored 16/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.