Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
fix(agent-vault): say a delegation lets a machine identity act for users
Scott Wilson868e7d1ad480
diff --git a/docs/documentation/platform/agent-vault/sessions-on-behalf-of-users.mdx b/docs/documentation/platform/agent-vault/sessions-on-behalf-of-users.mdxindex 8a6d3f65c0..04421c5675 100644--- a/docs/documentation/platform/agent-vault/sessions-on-behalf-of-users.mdx+++ b/docs/documentation/platform/agent-vault/sessions-on-behalf-of-users.mdx@@ -3,7 +3,7 @@ title: "Sessions on behalf of users"description: "Let a machine identity, such as a chat bot or a task runner, create sessions on behalf of users, so each session uses the personal values of the user it's for."----A delegation lets a [machine identity](/documentation/platform/identities/machine-identities) create [sessions](/documentation/platform/agent-vault/sessions) on behalf of users in Agent Vault. A session created on behalf of a user belongs to that user, so the [proxy](/documentation/platform/agent-vault/proxies) uses the user's own [personal values](/documentation/platform/agent-vault/services#member-provided-values). The session can use an [access bundle](/documentation/platform/agent-vault/access-bundles) only if both the user and the machine identity can use the bundle.+A delegation lets a [machine identity](/documentation/platform/identities/machine-identities) create [sessions](/documentation/platform/agent-vault/sessions) on behalf of users in Agent Vault. The machine identity can still create sessions as itself. It creates a session on behalf of a user only if it sends the user's email or ID in `onBehalfOf`. A session created on behalf of a user belongs to that user, so the [proxy](/documentation/platform/agent-vault/proxies) uses the user's own [personal values](/documentation/platform/agent-vault/services#member-provided-values), not the machine identity's. The session can use an [access bundle](/documentation/platform/agent-vault/access-bundles) only if both the user and the machine identity can use the bundle.Use a delegation when one service starts agents for many people, such as a chat bot that runs an agent for each message, or a task runner that runs an agent for each ticket. Each agent then gets no more access than the person who asked for it.diff --git a/frontend/src/components/agent-vault/IdentityDelegationSection.tsx b/frontend/src/components/agent-vault/IdentityDelegationSection.tsxindex 970dd792d3..58af750496 100644--- a/frontend/src/components/agent-vault/IdentityDelegationSection.tsx+++ b/frontend/src/components/agent-vault/IdentityDelegationSection.tsx@@ -174,7 +174,7 @@ export const IdentityDelegationSection = ({ machineIdentityId, machineIdentityNa<EmptyHeader><EmptyTitle>No users or groups yet</EmptyTitle><EmptyDescription>- Add the users and groups this machine identity can start sessions for.+ Add a user or group to let this machine identity start sessions on their behalf.</EmptyDescription></EmptyHeader></Empty>@@ -256,9 +256,10 @@ export const IdentityDelegationSection = ({ machineIdentityId, machineIdentityNa<DocumentationLinkBadge href={AgentVaultDocsUrls.sessionsOnBehalfOfUsers} /></CardTitle><CardDescription>- The users this machine identity can start sessions on behalf of. Each session uses that- user's personal values, and only access bundles that both the user and this machine- identity can use.+ Adding a user or group lets this machine identity start sessions on their behalf. It can+ still start sessions as itself. A session on a user's behalf uses that user's+ personal values instead of the machine identity's, and only access bundles they can+ both use.</CardDescription>{!isPending && (<CardAction>