Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix(agent-vault): name the proxy in its update audit event

Scott Wilson63fc05e4d172
diff --git a/backend/src/ee/routes/v1/agent-vault-routers/agent-vault-proxy-router.ts b/backend/src/ee/routes/v1/agent-vault-routers/agent-vault-proxy-router.ts
index 3b4590864e..ad81ec22be 100644
--- a/backend/src/ee/routes/v1/agent-vault-routers/agent-vault-proxy-router.ts
+++ b/backend/src/ee/routes/v1/agent-vault-routers/agent-vault-proxy-router.ts
@@ -175,10 +175,12 @@ export const registerAgentVaultProxyRouter = async (server: FastifyZodProvider)
projectId: req.internalAgentVaultProjectId,
event: {
type: EventType.AGENT_VAULT_PROXY_UPDATE,
- // The policy as the proxy now reports it, so an audit log never shows the old name.
+ // The proxy's name as it stands after the change, so a settings-only update still names it, and the policy as
+ // the proxy now reports it, so an audit log never shows the old name.
metadata: {
proxyId: proxy.id,
...req.body,
+ name: proxy.name,
...(req.body.trafficPolicy && { trafficPolicy: proxy.trafficPolicy })
}
}