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
use any host traffic policy in sandbox guides
Adrian Kahalib55cd41e3208
diff --git a/docs/documentation/platform/agent-vault/guides/daytona.mdx b/docs/documentation/platform/agent-vault/guides/daytona.mdxindex 037ceabb52..8c97357c40 100644--- a/docs/documentation/platform/agent-vault/guides/daytona.mdx+++ b/docs/documentation/platform/agent-vault/guides/daytona.mdx@@ -1076,7 +1076,7 @@ To check which requests the agent made, [view the session's logs](/documentation### Network access from the agent's sandbox-The agent's sandbox can only connect to the proxy's address on the network between the two sandboxes. With the **Access bundle hosts only** traffic policy, the agent can reach two kinds of hosts through the proxy: the hosts of the services in the session's access bundle, and the proxy's exceptions.+The agent's sandbox can only connect to the proxy's address on the network between the two sandboxes. Under the default [traffic policy](/documentation/platform/agent-vault/proxies#traffic-policy), **Any host**, the proxy forwards the agent's requests to any host on the internet. To allow only the hosts of the services in the session's access bundle, set the traffic policy to **Access bundle hosts only**, and add any other hosts the agent needs, such as `registry.npmjs.org`, to the proxy's [exceptions](/documentation/platform/agent-vault/proxies#exceptions).### Compromised sandboxes@@ -1096,7 +1096,7 @@ Each proxy's sandbox holds a copy of the proxy token. If you think someone tookThe session expired or was revoked. Set the session's `ttl` a few minutes longer than the proxy sandbox's time to live, so the session lasts as long as the sandboxes can run.</Accordion><Accordion title="Requests to a host fail with a 403 from the start">- The proxy's traffic policy blocks hosts that no service in the access bundle covers. Add a service for the host, or add the host to the proxy's [exceptions](/documentation/platform/agent-vault/proxies#exceptions).+ If the proxy's traffic policy is **Access bundle hosts only**, the proxy blocks hosts that no service in the access bundle covers. Add a service for the host, or add the host to the proxy's [exceptions](/documentation/platform/agent-vault/proxies#exceptions).</Accordion></AccordionGroup>diff --git a/docs/documentation/platform/agent-vault/guides/docker.mdx b/docs/documentation/platform/agent-vault/guides/docker.mdxindex 2995efba42..2736f95aed 100644--- a/docs/documentation/platform/agent-vault/guides/docker.mdx+++ b/docs/documentation/platform/agent-vault/guides/docker.mdx@@ -213,7 +213,7 @@ To check which requests the agent made, [set up session logs](/documentation/pla### Network access from the agent's container-The agent's container can't reach the internet. It can't look up hostnames on the internet either, because on an internal network, Docker only answers DNS lookups for the names of containers. With the **Access bundle hosts only** traffic policy, the agent can reach two kinds of hosts through the proxy: the hosts of the services in the session's access bundle, and the proxy's exceptions.+The agent's container can't reach the internet. It can't look up hostnames on the internet either, because on an internal network, Docker only answers DNS lookups for the names of containers. Under the default [traffic policy](/documentation/platform/agent-vault/proxies#traffic-policy), **Any host**, the proxy forwards the agent's requests to any host on the internet. To allow only the hosts of the services in the session's access bundle, set the traffic policy to **Access bundle hosts only**, and add any other hosts the agent needs, such as `registry.npmjs.org`, to the proxy's [exceptions](/documentation/platform/agent-vault/proxies#exceptions).The agent can still connect to services on the Docker host that listen on all of the host's addresses, such as `0.0.0.0`, through the gateway address of the run's network. To keep the agent away from a service on the host, have the service listen only on `127.0.0.1`, or block traffic from Docker's networks to the host with a firewall rule.@@ -239,7 +239,7 @@ If you think someone took control of the machine that runs Docker, [rotate the pThe session expired before the agent finished. Set the session's `ttl` in the script longer than your longest run.</Accordion><Accordion title="Requests to a host fail with a 403 from the start">- The proxy's traffic policy blocks hosts that no service in the access bundle covers. Add a service for the host, or add the host to the proxy's [exceptions](/documentation/platform/agent-vault/proxies#exceptions).+ If the proxy's traffic policy is **Access bundle hosts only**, the proxy blocks hosts that no service in the access bundle covers. Add a service for the host, or add the host to the proxy's [exceptions](/documentation/platform/agent-vault/proxies#exceptions).</Accordion><Accordion title="The agent says its API key is invalid">The agent has only a placeholder, so the error is about the key in the access bundle. The proxy's log shows `decision=brokered` and `status=401` for the provider's host. Update the key in the access bundle's service for that provider, such as **Anthropic** for Claude Code.diff --git a/docs/documentation/platform/agent-vault/guides/kubernetes-setup.mdx b/docs/documentation/platform/agent-vault/guides/kubernetes-setup.mdxindex 22f8352b25..679b6d96fb 100644--- a/docs/documentation/platform/agent-vault/guides/kubernetes-setup.mdx+++ b/docs/documentation/platform/agent-vault/guides/kubernetes-setup.mdx@@ -422,7 +422,7 @@ In Agent Vault, find the session under **Sessions** > **All Sessions** by its la## Security considerations-- **Hosts through the proxy:** agent pods can only connect to the proxy and DNS, and with **Access bundle hosts only**, the proxy forwards requests only to hosts that services in the session's access bundle cover and to the proxy's exceptions+- **Hosts through the proxy:** agent pods can only connect to the proxy and DNS, but under the default [traffic policy](/documentation/platform/agent-vault/proxies#traffic-policy), **Any host**, the proxy forwards their requests to any host its network policy allows (to allow only the hosts that services in the session's access bundle cover, set the traffic policy to **Access bundle hosts only** and add any other hosts the agents need to the proxy's [exceptions](/documentation/platform/agent-vault/proxies#exceptions))- **DNS:** agent pods still need DNS to find the proxy, and DNS lookups can carry data out of the pod, so a network policy doesn't close every channel- **APIs that echo requests:** if an endpoint returns the request's headers in its response, such as an echo or debug endpoint, the response exposes the credential that the proxy attached, so limit each service to the [methods and paths](/documentation/platform/agent-vault/http-apis#methods-and-paths) the agent needs- **Revoking a session:** the proxy stops attaching credentials for a revoked session within one [poll interval](/documentation/platform/agent-vault/proxies#poll-interval)diff --git a/docs/documentation/platform/agent-vault/guides/modal.mdx b/docs/documentation/platform/agent-vault/guides/modal.mdxindex eff4cd4d2b..29c6ec500a 100644--- a/docs/documentation/platform/agent-vault/guides/modal.mdx+++ b/docs/documentation/platform/agent-vault/guides/modal.mdx@@ -62,9 +62,7 @@ Every sidecar starts its proxy from the same proxy token, so you create the proxIn Agent Vault, go to **Proxies** and select **Create Proxy**.</Step><Step>- Enter a **Name**, such as `modal-sandboxes`, and expand **Advanced Options**. Under **Traffic Policy**, choose **Access bundle hosts only**, and add any hosts the agent needs without a credential to **Exceptions**, such as `registry.npmjs.org`.-- The sidecar can reach the internet, so with **Any host**, the agent could send requests through the proxy to any host. Learn more about the [traffic policy](/documentation/platform/agent-vault/proxies#traffic-policy).+ Enter a **Name**, such as `modal-sandboxes`.</Step><Step>Select **Create**, then copy the proxy token from the **Proxy Token** dialog. Infisical shows the token only once.@@ -669,7 +667,7 @@ To check which requests the agent made, [set up session logs](/documentation/plaThe agent's container can't connect to the internet directly, but it has two kinds of network access:- **DNS:** Modal answers DNS lookups in a sandbox even with an empty allowlist, so the agent can look up hostnames-- **Hosts through the proxy:** with **Access bundle hosts only**, the agent can reach the hosts that services in the session's access bundle cover, and the proxy's exceptions+- **Hosts through the proxy:** under the default [traffic policy](/documentation/platform/agent-vault/proxies#traffic-policy), **Any host**, the proxy forwards the agent's requests to any host on the internet (to allow only the hosts that services in the session's access bundle cover, set the traffic policy to **Access bundle hosts only** and add any other hosts the agent needs, such as `registry.npmjs.org`, to the proxy's [exceptions](/documentation/platform/agent-vault/proxies#exceptions))### Compromised sandboxes@@ -691,7 +689,7 @@ Each sidecar has a copy of the proxy token. If you think someone took control ofThe session expired or was revoked. Set the session's `ttl` a few minutes longer than the sandbox's `timeout`, so the session lasts as long as the sandbox can run.</Accordion><Accordion title="Requests to a host fail with a 403 from the start">- The proxy's traffic policy blocks hosts that no service in the access bundle covers. Add a service for the host, or add the host to the proxy's [exceptions](/documentation/platform/agent-vault/proxies#exceptions).+ If the proxy's traffic policy is **Access bundle hosts only**, the proxy blocks hosts that no service in the access bundle covers. Add a service for the host, or add the host to the proxy's [exceptions](/documentation/platform/agent-vault/proxies#exceptions).</Accordion><Accordion title="Can I use Modal's `proxy_traffic_via_sidecar` option instead?">No. That option sends the agent's HTTPS connections to the sidecar without a session token, and the proxy needs the session token to know which credentials to attach. Use `infisical agent-vault run`, or set the proxy in the agent's HTTP client.diff --git a/docs/snippets/agent-vault/SandboxAgentVaultSetup.mdx b/docs/snippets/agent-vault/SandboxAgentVaultSetup.mdxindex 31a47544e0..9192e110ad 100644--- a/docs/snippets/agent-vault/SandboxAgentVaultSetup.mdx+++ b/docs/snippets/agent-vault/SandboxAgentVaultSetup.mdx@@ -7,11 +7,7 @@ import MachineIdentitySetup from "/snippets/agent-vault/MachineIdentitySetup.mdxIn Agent Vault, go to **Proxies** and select **Create Proxy**.</Step><Step>- Enter a **Name**, such as `sandboxes`, and expand **Advanced Options**. Under **Traffic Policy**, choose **Access bundle hosts only**. Then add any other hosts the agent needs to reach to **Exceptions** (for example, `registry.npmjs.org`).-- <Note>- Make sure you select the **Access bundle hosts only** [traffic policy](/documentation/platform/agent-vault/proxies#traffic-policy). The proxy can reach the internet, so if you leave the traffic policy set to **Any host**, the agent can send requests through the proxy to any host.- </Note>+ Enter a **Name**, such as `sandboxes`.</Step><Step>Select **Create**, then copy the proxy token from the **Proxy Token** dialog. Infisical shows the token only once.