diff --git a/crates/openhuman-core/src/inbound/settings.rs b/crates/openhuman-core/src/inbound/settings.rs index e6261b50172..0319365b4c1 100644 --- a/crates/openhuman-core/src/inbound/settings.rs +++ b/crates/openhuman-core/src/inbound/settings.rs @@ -217,7 +217,11 @@ pub fn module_config(config: &Config) -> Value { "[inbound] configuring the tinyeventqueues module" ); let resolved = remember(resolved); + // The module keeps its queues in host storage and refuses to load without + // the bus name that serves it; the host still derives the scope and grant + // from the authenticated caller, never from this value. json!({ + "storage_callback": tinystoragedrivers_bus::STORAGE_INTERFACE.to_string(), "queues": resolved.queues_json, "pipeline": resolved.pipeline_json, }) diff --git a/crates/openhuman-core/src/inbound/settings_tests.rs b/crates/openhuman-core/src/inbound/settings_tests.rs index a9f07b31dc3..2186018b0dc 100644 --- a/crates/openhuman-core/src/inbound/settings_tests.rs +++ b/crates/openhuman-core/src/inbound/settings_tests.rs @@ -110,6 +110,8 @@ async fn the_module_config_is_what_the_storage_grant_declares() { config.inbound.queues_path = Some(queues.path().to_path_buf()); let blob = module_config(&config); + // The module refuses to load without the bus name serving its storage. + assert_eq!(blob["storage_callback"], "ai.tinyhumans.tinystorage.Storage"); assert_eq!(blob["queues"]["queues"][0]["max_attempts"], 4); assert_eq!(blob["pipeline"]["version"], 1); let grant = queue_grant().unwrap();