Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

perf: reuse existing gateway signature dependencies

Steven Enamakel29e4c322a8c6
diff --git a/Cargo.lock b/Cargo.lock
index 552b16fcc0..f8a45d1350 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -5413,7 +5413,7 @@ dependencies = [
"futures-util",
"hex",
"hkdf 0.12.4",
- "hmac 0.13.0",
+ "hmac 0.12.1",
"hostname",
"iana-time-zone",
"libc",
@@ -5432,7 +5432,6 @@ dependencies = [
"serde_json",
"serde_path_to_error",
"sha2 0.10.9",
- "sha2 0.11.0",
"starship-battery",
"sysinfo",
"tar",
diff --git a/crates/openhuman-app/Cargo.lock b/crates/openhuman-app/Cargo.lock
index f4d5b5d1f7..df1667487a 100644
--- a/crates/openhuman-app/Cargo.lock
+++ b/crates/openhuman-app/Cargo.lock
@@ -802,12 +802,6 @@ dependencies = [
"windows-sys 0.61.2",
]
-[[package]]
-name = "cmov"
-version = "0.5.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0c9ea0ac24bc397ab3c98583a3c9ba74fa56b09a4449bbe172b9b1ddb016027a"
-
[[package]]
name = "combine"
version = "4.6.8"
@@ -1041,15 +1035,6 @@ dependencies = [
"cipher",
]
-[[package]]
-name = "ctutils"
-version = "0.4.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7d5515a3834141de9eafb9717ad39eea8247b5674e6066c404e8c4b365d2a29e"
-dependencies = [
- "cmov",
-]
-
[[package]]
name = "curve25519-dalek"
version = "4.1.3"
@@ -1224,7 +1209,6 @@ dependencies = [
"block-buffer 0.12.1",
"const-oid",
"crypto-common 0.2.2",
- "ctutils",
]
[[package]]
@@ -2291,7 +2275,7 @@ version = "0.12.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7b5f8eb2ad728638ea2c7d47a21db23b7b58a72ed6a38256b8a1849f15fbbdf7"
dependencies = [
- "hmac 0.12.1",
+ "hmac",
]
[[package]]
@@ -2303,15 +2287,6 @@ dependencies = [
"digest 0.10.7",
]
-[[package]]
-name = "hmac"
-version = "0.13.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6303bc9732ae41b04cb554b844a762b4115a61bfaa81e3e83050991eeb56863f"
-dependencies = [
- "digest 0.11.3",
-]
-
[[package]]
name = "hostname"
version = "0.4.2"
@@ -3824,7 +3799,7 @@ dependencies = [
"futures-util",
"hex",
"hkdf",
- "hmac 0.13.0",
+ "hmac",
"hostname",
"iana-time-zone",
"libc",
@@ -3842,7 +3817,6 @@ dependencies = [
"serde_json",
"serde_path_to_error",
"sha2 0.10.9",
- "sha2 0.11.0",
"starship-battery",
"sysinfo",
"tar",
diff --git a/crates/openhuman-core/Cargo.toml b/crates/openhuman-core/Cargo.toml
index d9f5daa961..1953e42602 100644
--- a/crates/openhuman-core/Cargo.toml
+++ b/crates/openhuman-core/Cargo.toml
@@ -333,8 +333,7 @@ x25519-dalek = { version = "2", features = ["static_secrets"] }
hkdf = "0.12"
hex = "0.4"
# The host-owned SaaS gateway signature uses HMAC with SHA-256.
-hmac = "0.13"
-sha2_011 = { package = "sha2", version = "0.11" }
+hmac = "0.12"
tokio-util = { version = "0.7", features = ["rt", "io"] }
# tokio-tungstenite is declared per-target below so the TLS backend
# (native-tls on Windows, rustls on macOS / Linux) matches the reqwest
diff --git a/crates/openhuman-core/src/profiles/gateway.rs b/crates/openhuman-core/src/profiles/gateway.rs
index 42bcacdc72..ba61c111a7 100644
--- a/crates/openhuman-core/src/profiles/gateway.rs
+++ b/crates/openhuman-core/src/profiles/gateway.rs
@@ -23,8 +23,8 @@
use std::sync::Arc;
-use hmac::{Hmac, KeyInit, Mac};
-use sha2_011::Sha256;
+use hmac::{Hmac, Mac};
+use sha2::Sha256;
use super::host::{self, Profile, ProfileHost};
use super::lease::OpenError;
diff --git a/scripts/kernel-floor.limits b/scripts/kernel-floor.limits
index ebcbe952c9..59446bb5ac 100644
--- a/scripts/kernel-floor.limits
+++ b/scripts/kernel-floor.limits
@@ -715,4 +715,10 @@
# is two packages and one name: `tinymcp` (new name) and a
# second major of `dirs` (v7.0.0; the name was already
# present). Measured on macOS; CI re-measures on Linux.
-flows:330:305:2
+# 328/304/2 2026-10-15 The profile gateway reuses the `hmac` 0.12 and `sha2`
+# 0.10 versions already in the flows graph for its
+# HMAC-SHA256 user-header signature, instead of adding
+# hmac 0.13 / sha2 0.11 and their digest closure. The
+# measured graph sheds two package versions and one
+# unique name with no native change.
+flows:328:304:2