Repository navigation
ToolBoundary v1.0.5
ToolBoundary v1.0.5
Release type: Security
This release closes several ways a denied or limited action could get through, and makes emergency stops, proxy tokens and evidence behave as documented. All users should upgrade.
Security fixes
- Kill switch for running agents: new
kill_switch_fileis checked on every call, so creating the file halts a running agent. A running process's environment can't be changed from outside, sokill_switch_envonly works if set before the agent starts. Earlier documentation was wrong about this. - AgentKey fails closed:
AgentKeyProviderno longer allows every call when no client is configured. Demo mode now requiressimulate=True. - Proxy tokens are narrower: tokens carry the call's access mode, so read-only tokens can't use write methods. Tokens can also be bound to one exact method, path and body with
request_method,request_pathandrequest_body, and routes can require this withrequire_request_binding=True. - Limits apply to every argument style:
max_valueandmax_recordsnow cover positional LangChain input and**kwargsfunctions. - No redirects off-route: the proxy returns upstream redirects to the client instead of following them with the client's credentials.
- Block-lists are harder to evade: blocked operations match regardless of case, surrounding spaces or character width.
- Better secret handling: nested secrets and more credential names are redacted from audit metadata, and providers no longer receive secret-named arguments.
- Dependencies and release pipeline: the
langchainextra now requires alangchain-corerelease patched for CVE-2025-68664, GitHub Actions are pinned to commit SHAs, and packages are built outside the publishing job.
Fixes
- Async
@guarded_toolfunctions now record their real outcome. - Positional LangChain arguments are bound into the call digest.
- Enforced provider denials and outages are audited as
DENY. - Malformed token signatures now get a 403 and call
on_denied. InMemoryTokenStoreis thread-safe.- Proxy response size and idle connections are limited.
guard_toolworks with LangChain@toolfunctions.
Upgrade notes
AgentKeyProvider()without a client now raisesConfigurationError. Pass your client, orsimulate=Truefor demos only.- Proxy
POST,PUT,PATCHandDELETErequests need a token withWRITEaccess or higher, so pass the realaccess_modetocheck_and_authorize(). - If you relied on the proxy following upstream redirects, your client must now follow them.
- Use
kill_switch_filefor emergency stops.
Known limitations
- Code in a process holding the
TokenIssuercan still mint tokens. To defend against a compromised agent, run theBoundary, issuer and proxy in a separate process. Tracked in #25. - Tools guarded without an explicit access mode are treated as
READ_ONLY, so set the real mode on every tool that writes or executes. Tracked in #26.
Install
pip install --upgrade toolboundaryFull details are in the changelog.