Connectors
Make Tracehold the only way in
Close the second path: agents that also hold their own cloud credentials can act without Tracehold.
Tracehold decides every call that goes through it. An agent that also holds cloud credentials of its own (an AWS profile on a laptop, a broad role on the machine it runs on) has a second way into your cloud that nothing decides. Close it, so that the Tracehold tools are the agent's only way to act.
Block the credential, not the command. There are endless ways to run a command, and only a few places credentials live. Command rules give the agent a clear refusal; taking the credential away is what holds.
Agents that run in your cloud#
For autonomous agents running on ECS, EKS, Cloud Run, a VM or similar, the boundary is the identity they run as:
| Cloud | Do this |
|---|---|
| AWS | Give the agent's task, pod or instance role no permissions beyond what it needs to run (logs, its own queue). It reaches AWS only through its Tracehold server's tools. TraceholdAgentRole trusts only your connector, so the agent cannot assume it. |
| Google Cloud | Give the agent's service account no roles on the project. Only your connector may act as tracehold-agent. |
| Azure | Give the agent's managed identity no role assignments. Only your connector's identity holds a role on the subscription. |
Then check it: from the agent's runtime, a direct call such as
aws s3 ls fails with AccessDenied, while the same request through the
Tracehold tool is decided, and runs if it is allowed.
Agents on people's laptops#
The agent inherits the person's credentials: ~/.aws, ~/.config/gcloud,
~/.azure and the usual environment variables. Remove them from the agent's
reach with your client's administrator settings. Connect the agent to a
server people sign in to: its config then holds only an
address, and every call it makes through Tracehold is recorded as that
person's.
Claude Code#
Deploy managed settings, which no user, project or command-line setting can override:
| Platform | File |
|---|---|
| macOS | /Library/Application Support/ClaudeCode/managed-settings.json |
| Linux and WSL | /etc/claude-code/managed-settings.json |
| Windows | C:\Program Files\ClaudeCode\managed-settings.json |
{
"permissions": {
"deny": [
"Bash(aws *)",
"Bash(aws-vault *)",
"Bash(gcloud *)",
"Bash(az *)",
"Read(~/.aws/**)",
"Read(~/.config/gcloud/**)",
"Read(~/.azure/**)"
],
"disableBypassPermissionsMode": "disable"
},
"sandbox": {
"enabled": true,
"allowUnsandboxedCommands": false,
"failIfUnavailable": true,
"credentials": {
"files": [
{ "path": "~/.aws", "mode": "deny" },
{ "path": "~/.config/gcloud", "mode": "deny" },
{ "path": "~/.azure", "mode": "deny" }
],
"envVars": [
{ "name": "AWS_ACCESS_KEY_ID", "mode": "deny" },
{ "name": "AWS_SECRET_ACCESS_KEY", "mode": "deny" },
{ "name": "AWS_SESSION_TOKEN", "mode": "deny" },
{ "name": "AWS_PROFILE", "mode": "deny" },
{ "name": "GOOGLE_APPLICATION_CREDENTIALS", "mode": "deny" },
{ "name": "AZURE_CLIENT_SECRET", "mode": "deny" }
]
}
}
}
What each part does:
- The deny rules refuse the cloud CLIs and reading the credential folders,
with a clear message to the agent. They cover Claude Code's own file tools
and the file commands it recognizes (
cat,headand so on), but not a script that opens a file by itself. - The sandbox is the boundary that holds: the operating system blocks the
listed files for every command the agent runs and its child processes, and
removes the listed variables from their environment. It runs on macOS,
Linux and WSL2, not on native Windows.
failIfUnavailablestops commands from running unsandboxed when it cannot start. disableBypassPermissionsModekeeps anyone from switching the rules off for a session.
Also tell the agent why, so it stops trying and uses the tools instead: add a
line such as "Cloud access goes through the Tracehold tools; local cloud
credentials are blocked on purpose" to your CLAUDE.md.
Other clients#
Cursor, Codex, Claude Desktop and others have their own administrator policies (MDM profiles, locked configuration files). Use them the same way: deny the cloud CLIs, deny reads of the credential folders, and prefer an operating-system-level block. Where a client has none, run the agent as a separate operating system user that has no cloud credentials at all.
Do not install cloud MCP servers on laptops with the person's credentials. Put them behind Tracehold instead: your connector runs them, and every call is decided.
What Tracehold does not do yet#
Tracehold does not yet detect calls that bypassed it (for example by comparing CloudTrail with its own audit trail). The controls above prevent the bypass; they are the part that matters.