Skip to content

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

build(deps): bump hmac to 0.13 and add sha2 0.11

Steven Enamakele11f03004b27
diff --git a/Cargo.lock b/Cargo.lock
index 121930b7ad..a00d25c649 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4495,7 +4495,7 @@ dependencies = [
"futures-util",
"hex",
"hkdf 0.12.4",
- "hmac 0.12.1",
+ "hmac 0.13.0",
"hostname",
"iana-time-zone",
"keyring",
@@ -4517,6 +4517,7 @@ 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 9eb5b35ca5..7c2f26caf2 100644
--- a/crates/openhuman-core/Cargo.toml
+++ b/crates/openhuman-core/Cargo.toml
@@ -391,7 +391,10 @@ zeroize = "1"
x25519-dalek = { version = "2", features = ["static_secrets"] }
hkdf = "0.12"
hex = "0.4"
-hmac = "0.12"
+# The SaaS gateway signature. 0.13 on sha2 0.11, the versions tinychannels-bus
+# already brings, so it adds no package to the graph.
+hmac = "0.13"
+sha2_011 = { package = "sha2", version = "0.11" }
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/user_agents/gateway.rs b/crates/openhuman-core/src/user_agents/gateway.rs
index bc62c49e12..3598b5cf8b 100644
--- a/crates/openhuman-core/src/user_agents/gateway.rs
+++ b/crates/openhuman-core/src/user_agents/gateway.rs
@@ -19,8 +19,8 @@
use std::sync::Arc;
-use hmac::{Hmac, Mac};
-use sha2::Sha256;
+use hmac::{Hmac, KeyInit, Mac};
+use sha2_011::Sha256;
use super::host::{self, UserAgentState};
use super::types::UserAgentId;