Connectors

The connector

The only thing that acts in your cloud. Tracehold decides; your connector runs each allowed call, in your cloud, with a key for that one call.

Tracehold decides; the connector acts. The connector is a small process you run in your own cloud. It is the only thing that ever acts there: Tracehold's cloud holds no access to your cloud, no keys, no roles. It is the model privileged-access platforms use: the vendor holds the decisions and the audit trail, and you hold everything that touches your cloud.

Tracehold's cloudYour connector
Decides each call (risk, environment, guardrails, exceptions, approvals in Slack)Yes
Keeps the tamper-evident audit trailYesKeeps your own copy
Holds access to your cloudNeverIts own identity, limited by your role
Runs the callYes, with a key for that one call
Where it runsTraceholdYour cloud, where you can read it, limit it and remove it

If no connector is online, nothing runs: allowed calls are refused, the agent is told why, and an approved call is not used up: if a connector is back within 15 minutes of the approval, it runs once.

How a call runs#

  1. You add a connector under Connectors. Tracehold shows its token once and keeps only a hash of it.
  2. You start it where it has an identity of its own in each cloud it acts in: an AWS task, instance or pod role; a Google service account; an Azure managed identity. It only calls out over HTTPS (heartbeat, fetch the next job, report the result), so it needs no inbound port or public address.
  3. It finds the account it acts in by itself: TraceholdAgentRole in its own AWS account, tracehold-agent in its Google project, the Azure subscription it has a role on. The AWS, Google Cloud and Azure installers create these; for a connector running anywhere else, Accounts your connector acts in (lower on the same page) gives a one-paste setup for each, naming the connector's identity. Nothing is pasted into Tracehold; the connector tests what it finds and reports it.
  4. For each allowed call, the connector gets a key for that call (on AWS, your role with a session policy naming only the allowed action, with your organization ID as the external ID), runs the call and reports the outcome. Tracehold records the key's scope and expiry, never the key.

An agent that calls Tracehold's endpoint gets its result back through Tracehold: jobs and results are encrypted at rest, and a result is erased as soon as it has been delivered. For agents inside your network, the connector can serve MCP itself, and results then never leave your network.

Start a connector#

The connector has an image of its own, and it holds the connector and nothing else from Tracehold. The image is not public: you pull it from Tracehold's registry (registry.tracehold.ai) with the connector's token as the password, and every installer below does that for you. A removed connector, or a replaced token, can no longer pull it.

After Add connector, the page shows the token once and asks where to run it: pick a tile, then how, and follow the one step it shows.

On AWS: ECS Fargate#

Choose the most your agents may ever do in this account (read and write, or read only), then either:

  • CloudFormation: click Launch stack in AWS (if the button is not shown, Download the CloudFormation template; the page lists the values to enter). Your organization ID and that access level are filled in. Paste the token into ConnectorToken, pick a VPC and subnets with outbound internet access, and create the stack.

  • Terraform: download tracehold-connector.tf (Terraform or OpenTofu, AWS provider 6 or later). Tracehold's address, your organization ID and the access level are filled in; the token is a variable, so it never lands in the file or your repository. In the folder you saved it to:

    export TF_VAR_connector_token=tcn_...
    terraform init
    terraform apply -var vpc_id=vpc-... -var 'subnet_ids=["subnet-..."]'
    

    The optional variables match the stack's parameters: target_role_arn, deny_actions, audit_bucket, mcp_port, mcp_allowed_cidr, assign_public_ip. Its outputs are task_role_arn, agent_role_arn and log_group.

That is the whole AWS setup: either way creates the role the connector acts through, and the connector reports the account. Both make:

ResourceWhat it is for
TraceholdAgentRoleWhat calls run as: PowerUserAccess or ReadOnlyAccess, trusted only by the task role below and only with your organization ID (OrganizationId, filled in by Launch stack). Not created if you set TargetRoleArn to a role you manage.
A task roleThe connector's identity. It may assume that role and read what it allows, and, if you set AuditBucket, write under tracehold/ there (and read its own position). Nothing else.
Two Secrets Manager secretsThe token, read by ECS when the task starts, and the registry login ECS pulls the image with (username tracehold, the token as password)
A security groupOutbound HTTPS only; inbound on McpPort from McpAllowedCidr only if you set a port
An ECS cluster, task definition and serviceOne Fargate task (0.25 vCPU, 512 MB) running python -m app.connector
A log group/tracehold/connector/<stack name> (Terraform: /tracehold/connector/tracehold-connector), kept 90 days

Its TaskRoleArn output (task_role_arn in Terraform) is the connector's identity.

On Google Cloud: Cloud Run#

Pick Google Cloud, choose the most your agents may ever do in the project (Editor, or Viewer for read only), click Open Cloud Shell, pick the project and paste the script shown (it starts with your token). Set REGION first to use another region than us-central1. It is safe to run again, and it makes:

ResourceWhat it is for
tracehold-connector@<project>The connector's identity. It may act as tracehold-agent and read its token, nothing else.
tracehold-agent@<project>What calls run as: Editor or Viewer on the project. Its description names your organization, and only the connector may act as it.
The secret tracehold-connector-tokenThe token, in Secret Manager. The script passes it on stdin, never on a command line.
The Artifact Registry repository traceholdA copy of the connector image. Cloud Run runs images from Artifact Registry, so the script logs in to Tracehold's registry with the token (on stdin), pulls the image and pushes it here.
The Cloud Run service tracehold-connectorOne instance, always on (CPU always allocated, 1 vCPU, 512 MiB), running python -m app.connector

Cloud Run needs a port, so the connector serves MCP on 8080. The service takes traffic only from inside your network (--ingress internal) and only with a Google identity (--no-allow-unauthenticated). To point agents in your network at it, set the service's URL as the connector's Agents use address and give their identity roles/run.invoker. Their client sends a Google identity token in the X-Serverless-Authorization header, next to its usual Authorization header (the server token, or its sign-in).

That is the whole Google Cloud setup: the connector finds tracehold-agent and reports the project.

On Azure: Container Instances#

Pick Azure, choose the most your agents may ever do in the subscription (Contributor, or Reader for read only), click Open Cloud Shell (Bash), make sure the subscription to use is the current one (az account set --subscription ...) and paste the script shown (it starts with your token). Set RESOURCE_GROUP or LOCATION first to use another resource group than tracehold-connector or another region than eastus. You need to be able to assign roles on the subscription (for example Owner). It makes:

ResourceWhat it is for
The resource group tracehold-connectorHolds the two resources below
The managed identity tracehold-connectorThe connector's identity, and what calls run as: Contributor or Reader on this subscription only. Each call gets a token for that one API.
The container group tracehold-connectorOne container, always running (0.5 vCPU, 1 GB), with no public address and no inbound port. The token is a secure environment variable, which Azure never shows back; Azure also keeps it as the registry password it pulls the image with.

That is the whole Azure setup: the connector reports the subscription. It does not serve MCP there; for agents inside your network, run it in your virtual network or on AKS (below).

On Kubernetes#

Pick Kubernetes and download tracehold-connector.yaml: a service account, one Deployment and a network policy that lets nothing in, in the namespace tracehold. The token stays out of the file. In the folder you saved it to:

export TRACEHOLD_CONNECTOR_TOKEN=tcn_...
kubectl create namespace tracehold
kubectl -n tracehold create secret generic tracehold-connector --from-literal=token="$TRACEHOLD_CONNECTOR_TOKEN"
kubectl -n tracehold create secret docker-registry tracehold-registry --docker-server=registry.tracehold.ai \
  --docker-username=tracehold --docker-password="$TRACEHOLD_CONNECTOR_TOKEN"
kubectl apply -f tracehold-connector.yaml

The second secret lets the cluster pull the image (the Deployment names it in imagePullSecrets).

The pod runs as a non-root user (10001) with a read-only filesystem, no added capabilities and no inbound port. It acts with its service account's identity in your cloud, so give it one: the file shows the annotation for EKS (IAM roles for service accounts; or associate the role with EKS Pod Identity), GKE (Workload Identity) and AKS (workload identity, plus a pod label). Set TRACEHOLD_CONNECTOR_CLOUDS in the file to the clouds it serves. Then connect the accounts it acts in, as for any machine (below): on AWS its role needs only the policy the page shows.

Anywhere else#

On a machine or container with an identity in the clouds it serves (an EC2 instance role, a VM's service account or managed identity, or a laptop for a trial with your own credentials):

export TRACEHOLD_CONNECTOR_TOKEN=tcn_...
printf %s "$TRACEHOLD_CONNECTOR_TOKEN" | docker login registry.tracehold.ai -u tracehold --password-stdin
docker run -d --name tracehold-connector --restart unless-stopped \
  -e TRACEHOLD_URL=https://api.tracehold.ai \
  -e TRACEHOLD_CONNECTOR_TOKEN \
  -e TRACEHOLD_CONNECTOR_CLOUDS=aws \
  -e TRACEHOLD_CONNECTOR_INSTALL=docker \
  registry.tracehold.ai/tracehold-connector:<release>

TRACEHOLD_CONNECTOR_CLOUDS is aws, gcp, azure, or several (aws,gcp). The page fills in the address, the token and the release.

On AWS its own identity needs only sts:AssumeRole and sts:SetSourceIdentity on TraceholdAgentRole (the second names the person an agent signed in as in CloudTrail; without it, calls still run) (and, so the page can warn about missing permissions, iam:ListAttachedRolePolicies and iam:GetRolePolicy on it; plus the audit bucket permissions below, if you use one). The page shows Waiting for your connector until it calls in, then its identity in each cloud and the setup that gives it an account to act in; it finds that account by itself. Run two in the same account for redundancy; either takes the next job there.

To act in several accounts of one cloud (production and staging, say), run a connector in each. Each finds its own account and the page lists them all, each with its own environment label. Each server acts in one of them: choose it on the server's page (with one account per cloud there is nothing to choose). A call goes only to a connector that acts in its server's account, and a connector refuses a call meant for another account.

Your own limits#

Your role is the hard limit. The connector adds a second one that only you control, because it is set where the connector runs:

VariableEffect
TRACEHOLD_CONNECTOR_ALLOWComma-separated action patterns the connector will run, such as aws:ec2:*,aws:s3:*. Default: everything.
TRACEHOLD_CONNECTOR_DENYPatterns it refuses whatever Tracehold decided, such as aws:iam:*,aws:*:Delete*. Deny wins; case does not matter.
TRACEHOLD_CONNECTOR_AUDIT_BUCKETAn S3 bucket in your account for your own records: one JSON file per call it ran (action, arguments, outcome, key scope, and the decision's hash in Tracehold's audit chain) under tracehold/YYYY/MM/DD/, and the whole audit trail as NDJSON under tracehold/audit/, brought up to date every minute. If Tracehold's chain were ever rewritten, your copy would no longer match. Needs s3:PutObject on tracehold/*, s3:GetObject on tracehold/audit/cursor.json and s3:ListBucket for the prefix tracehold/audit/.
TRACEHOLD_CONNECTOR_MCP_PORTServe MCP on this port for agents inside your network (below). TRACEHOLD_CONNECTOR_MCP_HOST sets the address it listens on (default all).
TRACEHOLD_CONNECTOR_MCP_CONFIGYour own MCP servers, which the connector runs (Your own MCP servers).

A refused call does not run, and the agent is told, for example, "Refused by your connector because it matches aws:iam:* in TRACEHOLD_CONNECTOR_DENY". The limits, the bucket and the MCP servers are shown on the connector's card.

Agents inside your network#

This is the recommended way to connect agents that run in your cloud, and the one Connect an agent offers first once a connector serves MCP, because results stay in your network. Set TRACEHOLD_CONNECTOR_MCP_PORT (McpPort in the stack) and point those agents at the connector instead of Tracehold, with the same server token or by signing in:

http://<connector address>:<port>/mcp/<server id>/

It speaks plain HTTP, like any internal service. Inside a private network that can be enough; otherwise put your HTTPS load balancer in front of it (for example an internal ALB) and give agents that address. McpAllowedCidr limits who can reach the port. Then, on the connector's card, set Agents use to that stable address; Connect an agent offers it. Without it, the page shows the machine's own address, which changes whenever the task restarts. For a server people sign in to, it is also the address Tracehold accepts for their sign-in.

The connector relays each request to Tracehold, which decides exactly as it always does. An allowed call comes back to the connector as a job; the connector runs it, answers the agent directly, and reports only the outcome to Tracehold. The listing of your buckets, the instance details, the secret an agent read: none of it reaches Tracehold. Only your organization's own connector can relay.

When the connector is down#

  • Stopped cleanly (SIGTERM, a deploy): it brings your audit copy up to date, tells Tracehold, and shows as offline at once.
  • Crashed or unreachable: it shows as offline 60 seconds after its last heartbeat.

While no connector is online, allowed calls are refused and the Overview says so. An approved call is not used up: if a connector is back within 15 minutes of the approval, the agent repeats the call (or keeps waiting) and it runs once.

Keeping it up to date#

The connector makes each call's key and runs the call, so a fix there reaches your connector only when you update it. Everything Tracehold decides (risk levels, guardrails, exceptions, approvals) already applies and needs nothing from you.

Each connector reports the release it runs and how it was installed. When it is older than Tracehold, Connectors marks it Update available with the steps for that install, and the Overview lists it under Insights:

Installed withUpdate
CloudFormationUpdate the stack, keep the template, set Image to the new release
Terraformterraform apply -var image=<new image>
Kuberneteskubectl -n tracehold set image deployment/tracehold-connector connector=<new image>
Cloud RunRun the Google Cloud setup again in the same project and region: it copies the new image into Artifact Registry and redeploys
AzureRun the Azure setup again with IMAGE=<new image> and the same resource group
Dockerdocker pull the new image (still logged in from the install), remove the container, and run it again the same way

With a second connector online in the same account, update one at a time: calls go to whichever is online there, so nothing waits.

A lost or leaked token#

The token is shown once. If it is lost or may have leaked, click New token on the connector: the old token stops working at once (a connector running with it is shut out), and the page shows the new one with the same install steps. Put the new token where the connector keeps it: the stack's ConnectorToken (update the stack), TF_VAR_connector_token (apply again), the Cloud Shell script (run it again), the two Kubernetes Secrets (then kubectl -n tracehold rollout restart deployment/tracehold-connector), or the container's environment and your docker login. The new token is also what pulls the image from then on. Every replacement is in the audit trail.

Removing a connector#

Remove asks first, then stops its token working at once; then delete what the installer made (the stack, terraform destroy, the Cloud Run service, the Azure resource group or kubectl delete namespace tracehold), or stop it, in your cloud. With no connector left, nothing runs anywhere, and your cloud setups ask you to add one.

When it cannot find an account#

Connectors shows, for each cloud, what the connector checked as a checklist that stops at the first failure: its identity there, finding the role (or service account, or subscription), using it with your organization ID, and what it allows. The failing line says what to fix.