Skip to content

ToolBoundary v1.0.5

Choose a tag to compare

@Jaycubic Jaycubic released this 10 Nov 09:47
· 7 commits to main since this release

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_file is checked on every call, so creating the file halts a running agent. A running process's environment can't be changed from outside, so kill_switch_env only works if set before the agent starts. Earlier documentation was wrong about this.
  • AgentKey fails closed: AgentKeyProvider no longer allows every call when no client is configured. Demo mode now requires simulate=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_path and request_body, and routes can require this with require_request_binding=True.
  • Limits apply to every argument style: max_value and max_records now cover positional LangChain input and **kwargs functions.
  • 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 langchain extra now requires a langchain-core release patched for CVE-2025-68664, GitHub Actions are pinned to commit SHAs, and packages are built outside the publishing job.

Fixes

  • Async @guarded_tool functions 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.
  • InMemoryTokenStore is thread-safe.
  • Proxy response size and idle connections are limited.
  • guard_tool works with LangChain @tool functions.

Upgrade notes

  • AgentKeyProvider() without a client now raises ConfigurationError. Pass your client, or simulate=True for demos only.
  • Proxy POST, PUT, PATCH and DELETE requests need a token with WRITE access or higher, so pass the real access_mode to check_and_authorize().
  • If you relied on the proxy following upstream redirects, your client must now follow them.
  • Use kill_switch_file for emergency stops.

Known limitations

  • Code in a process holding the TokenIssuer can still mint tokens. To defend against a compromised agent, run the Boundary, 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 toolboundary

Full details are in the changelog.