derive per-agent egress entries from operator-linked accounts
This commit is contained in:
parent
7eb9db47d6
commit
9193f37963
1 changed files with 852 additions and 38 deletions
|
|
@ -82,6 +82,15 @@ pub async fn put_forge_account(
|
|||
tracing::warn!(path = %secret_path, error = ?e, "linking the forge account failed");
|
||||
e.problem(&existing(&agent, &label))
|
||||
})?;
|
||||
crate::link_egress::added(
|
||||
&state,
|
||||
&agent,
|
||||
&crate::link_egress::Link::Forge {
|
||||
label: &label,
|
||||
url: &account.url,
|
||||
},
|
||||
)
|
||||
.await?;
|
||||
|
||||
tracing::info!(%hive, %agent, %label, url = %account.url, "forge account stored");
|
||||
Ok(Json(PutForgeAccountResponse { url: account.url }))
|
||||
|
|
|
|||
Loading…
Reference in a new issue