Connected tools

Give agents a service's key without putting the key in the sandbox

Not available yet Tools can be connected, but keys are attached to a sandbox's traffic only once enforcement ships.

A connected tool is a service's key together with the traffic that key may be attached to. Pod keeps the key outside every sandbox. A sandbox whose policy grants the tool holds only a placeholder, and Pod puts the real key on the request on its way out. The agent never sees the key, so it cannot leak it, paste it elsewhere or use it on traffic the tool does not allow.

Connect a tool

In the Pod dashboard, open Permissions, then Connected tools. A tool has:

A tool
tool payment-keys
  host     payments.example.com
  traffic  POST /v1/refunds*   GET /v1/charges/*
  attach   Authorization: Bearer <key>
FieldWhat it says
NameHow a policy refers to the tool, such as payment-keys.
hostThe one host the key is sent to.
trafficMethods, each followed by the path prefixes they apply to. Up to 100 entries. A tool with no traffic is refused.
attachWhere the key goes, with <key> in its place, usually a header.
KeyThe secret itself, written once and stored encrypted under your organization's key. No call ever reads it back.

Connecting a tool is an action for a person with the admin role and a fresh second factor. No API key can connect one or change its key. connectTool is the call behind the dashboard.

Changing a tool's host needs a new key with it: a key is never sent to a host it was not given for.

Grant it

A policy grants a tool with use:

Allow  use  payment-keys

or asks a person first:

Ask  use  payment-keys

Granting a tool switches traffic reading on for the sandboxes under that policy, since Pod has to read a request to attach a key to it. Connecting once serves every sandbox the rule names.

What the sandbox sees

When a sandbox under the policy starts, Pod gives it a random placeholder for the tool, tied to that sandbox. Point the program at the placeholder the way it expects a key, for example in an environment variable.

When a request through Pod carries the placeholder, Pod checks three things before it swaps in the real key:

  1. The placeholder belongs to the sandbox the request came from.
  2. The request matches the tool's host, method and path.
  3. The policy's verdict is Allow, or a person allowed it.

A request that carries a placeholder and fails a check is refused and recorded. It is never sent on without the key. Where Pod sees the real key in a response, it removes it.

A fork or a copy made from a snapshot never reuses its parent's placeholder. If the copy is granted the tool, it gets a new one.

Revoke it

Revoking a tool destroys its stored key, tells every server to drop it, and publishes again every policy that granted it, so no sandbox can use it. An API key with permissions:write can revoke a tool (revokeTool), since revoking only narrows.

Key kinds

KindWhat the key is
headerGoes into the attach line as it is. The default.
aws_sigv4An access key pair Pod uses to sign each request again, written <access key id>:<secret access key>.
oauth_refreshA sign-in that renews: a token address and a refresh token, written as form fields. Pod renews the access token and attaches it.

Not available yet Keys of the `aws_sigv4` and `oauth_refresh` kinds are stored, and are attached once Pod's servers take those kinds.

Rules on tool calls

A tool that speaks MCP or JSON-RPC can carry rules on each call, with tests on its arguments:

Allow  call  payment-keys  refunds.create  where amount <= 5000 and currency in usd,eur

The tool must say how its requests carry calls, with a calls mcp or calls json-rpc line. Tool rules has the full form.

Not available yet Rules on message topics and on tool calls are checked and compiled, and decide Deny until the sandboxes read them.

Keys you type into a sandbox

A key a person or an agent types into a sandbox is not a connected tool. It lands on the sandbox's disk, where every process can read it, and may show in a screen recording. Connect a tool instead.