Skip to content

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

fix(security): pass no session to external transfer events

Steven Enamakelcbc22a670057
diff --git a/crates/openhuman-core/src/inference/embedding_host/cloud_adapter.rs b/crates/openhuman-core/src/inference/embedding_host/cloud_adapter.rs
index 4c44b746b6..03ef1697cf 100644
--- a/crates/openhuman-core/src/inference/embedding_host/cloud_adapter.rs
+++ b/crates/openhuman-core/src/inference/embedding_host/cloud_adapter.rs
@@ -77,7 +77,7 @@ impl OpenHumanCloudEmbeddingModel {
let egress = crate::security::egress::EgressDescriptor::embedding("cloud", model);
crate::security::egress::enforce_egress(&egress)
.map_err(|error| tinyinference_embeddings::Error::Embedding(error.to_string()))?;
- crate::security::egress::emit_external_transfer(egress);
+ crate::security::egress::emit_external_transfer(None, egress);
Ok(())
});
Self {
diff --git a/crates/openhuman-core/src/tools/impl/network/gate.rs b/crates/openhuman-core/src/tools/impl/network/gate.rs
index 0b09d958e3..5f488833ee 100644
--- a/crates/openhuman-core/src/tools/impl/network/gate.rs
+++ b/crates/openhuman-core/src/tools/impl/network/gate.rs
@@ -56,7 +56,7 @@ impl NetGate for SecurityPolicy {
}
fn disclose(&self, host: &str, has_body: bool, has_headers: bool) {
- emit_external_transfer(network_egress_descriptor(host, has_body, has_headers));
+ emit_external_transfer(None, network_egress_descriptor(host, has_body, has_headers));
}
fn prepare_client(