Skip to content

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

fix(storage_grants): adjust object authorization logic

Steven Enamakel90ac0bcad8f1
diff --git a/crates/openhuman-core/src/modules/storage_grants.rs b/crates/openhuman-core/src/modules/storage_grants.rs
index cfb0b0de9c..7295a5af80 100644
--- a/crates/openhuman-core/src/modules/storage_grants.rs
+++ b/crates/openhuman-core/src/modules/storage_grants.rs
@@ -263,7 +263,9 @@ pub(crate) fn authorize(
"ttl": false,
"max_key_len": 0,
}))),
- Object::Streams | Object::Secrets | Object::Queues => Err(Denied::Object),
+ Object::Streams => Ok(Plan::Answer(serde_json::json!({ "capabilities": [] }))),
+ Object::Secrets => Ok(Plan::Answer(serde_json::json!({ "enumerable": false }))),
+ Object::Queues => Err(Denied::Object),
Object::Kv => Ok(Plan::Answer(serde_json::json!({ "capabilities": [] }))),
};
}