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
clarify why the machine identity stays out of agent pods
Jake Hulberg3c60bab42469
diff --git a/docs/documentation/platform/agent-vault/guides/kubernetes.mdx b/docs/documentation/platform/agent-vault/guides/kubernetes.mdxindex 969aab392b..5a0f39ef2e 100644--- a/docs/documentation/platform/agent-vault/guides/kubernetes.mdx+++ b/docs/documentation/platform/agent-vault/guides/kubernetes.mdx@@ -57,7 +57,7 @@ For each agent run, your orchestrator does the following:Code in the agent's container can ignore `HTTPS_PROXY` and connect to an API directly. With a network policy that only allows the proxy, every request must go through Agent Vault. This also blocks your cloud's metadata service and the Kubernetes API.</Accordion><Accordion title="Why does the machine identity stay out of agent pods?">- The machine identity can create sessions for any access bundle it has access to, so an agent that reads its credentials could create sessions with more access than its own. Putting the credentials in a separate container in the agent's pod doesn't protect them, because gVisor and Kata isolate a pod from the node, not one container from another. An agent pod gets only a session token, which you can revoke and which expires.+ Your orchestrator uses the machine identity to create sessions, and the machine identity can create a session for any access bundle it has access to. If the machine identity's credentials were in an agent's pod, the agent could use them to create a session for an access bundle it wasn't given. A separate container in the agent's pod doesn't keep the credentials out of reach, because gVisor and Kata isolate a pod from the node, not one container from another. An agent pod gets only a session token, which you can revoke and which expires.</Accordion><Accordion title="Can I use Agent Sandbox instead of writing pod manifests?">Yes. [Agent Sandbox](https://github.com/kubernetes-sigs/agent-sandbox) is an official Kubernetes project with custom resources for agent sandboxes, such as `SandboxTemplate`, `SandboxClaim`, and `SandboxWarmPool`. Its sandboxes are pods, so the proxy and the agents namespace work the same way, with these differences: