Watch
0
0
Fork
You've already forked hyperhive
0

derive per-agent egress entries from operator-linked accounts

This commit is contained in:
atlas 2026-10-30 12:28:51 +01:00
commit 9193f37963

View file

@ -180,6 +180,15 @@ pub async fn put_matrix_account(
let user_id = link_matrix(&store, &secret_path, &existing(&agent, &account), &req)
.await
.map_err(|b| *b)?;
crate::link_egress::added(
&state,
&agent,
&crate::link_egress::Link::Matrix {
account: &account,
homeserver: req.homeserver.as_deref(),
},
)
.await?;
tracing::info!(%hive, %agent, %account, "credential stored");
Ok(Json(PutMatrixAccountResponse { user_id }))