Skip to content

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

chore(rpc): allow large error result on saas gateway decide

Steven Enamakelad1164aa8c2d
diff --git a/crates/openhuman-rpc/src/server/saas_gateway.rs b/crates/openhuman-rpc/src/server/saas_gateway.rs
index d211872e95..cd2a383b8c 100644
--- a/crates/openhuman-rpc/src/server/saas_gateway.rs
+++ b/crates/openhuman-rpc/src/server/saas_gateway.rs
@@ -94,6 +94,10 @@ pub(crate) async fn saas_gateway(operator: Arc<CoreContext>, req: Request, next:
/// unix seconds and `resolve` maps the checked headers to a scope
/// ([`resolve_scope`] in production). Taking them as arguments keeps the
/// decision free of process-wide state.
+// The refusal is the axum `Response` the gateway sends as-is, built once per
+// refused request; boxing it would only move the allocation (same as
+// `http_host::auth`).
+#[allow(clippy::result_large_err)]
pub(crate) fn decide(
req: &Request,
secret: Option<&str>,