Skip to main content

get_owner

Function get_owner 

Source
pub fn get_owner(conn: &Connection, id: &str) -> Result<Option<String>>
Expand description

Look up a subscription’s owner (created_by) by id.

v0.7.0 #1115 / #1118 (SR-1 #5 / #6, HIGH) — used by the MCP + HTTP authz gates on memory_subscription_replay and memory_subscription_dlq_list to refuse cross-tenant reads of other agents’ subscriptions. Returns Ok(None) when the subscription does not exist; callers map this to the same not-found envelope as a real miss so the existence of the id is not leaked.

§Errors

  • SQL prepare / query / decode failure.