Skip to main content
Enterprise Edition

Overview

An external secret store lets a workspace secret point at a value that stays in AWS Secrets Manager, Bitwarden Secrets Manager or Azure Key Vault. Tracecat stores only the reference: the store, the secret’s name, ARN or ID, and the key mapping. Workflows read ${{ SECRETS.<name>.<key> }} exactly as they do for local secrets. Organization admins own stores under Organization settings, and authorize the workspaces that may reference each one. Workspace members then create externally backed secrets against an authorized store.

Trust model

Tracecat assumes a role you own in your AWS account:
  • Tracecat calls sts:AssumeRole on the role ARN you register, using its own workload identity and an external ID that Tracecat generates when you create the store. The external ID is server-owned and never changes.
  • The assumed session reads the AWSCURRENT version of the secret with secretsmanager:GetSecretValue. Tracecat requests no list, write, delete, or rotation permissions.
  • Tracecat persists no remote value. Each resolution fetches from AWS, injects the value into the action sandbox, and discards it. Nothing is cached between runs.
  • Failures are sanitized. Error messages carry a failure code and the AWS error code, never any part of the secret value.

Prerequisites

Your Tracecat deployment must expose the AWS principal that assumes your role. The operator sets both variables on every Tracecat service: On self-hosted deployments, set them in your .env and restart the stack; the Docker Compose files already pass them through. Until they are set, the trust policy shows a <tracecat-principal-arn> placeholder instead of the Tracecat principal. The Tracecat workload also needs sts:AssumeRole permission on the role ARNs it will assume.

Create the IAM role

Create one role per store in the AWS account that holds your secrets.
1

Create the store in Tracecat first

Tracecat generates the external ID when the store is created, so add the store before you write the trust policy. You enter the role ARN after you create the role.
2

Attach the trust policy

Select the store name to expand it, then copy the Trust policy tab. It names the Tracecat principal and conditions the assumption on your store’s external ID:
The sts:ExternalId condition is what prevents a confused deputy. Keep it.
3

Attach the permissions policy

Scope secretsmanager:GetSecretValue to the exact secrets you intend to share. The Permissions policy tab shows a wildcard starting point; narrow the Resource list before you use it in production:
The kms:Decrypt statement is required only for secrets encrypted with a customer-managed KMS key. Scope its Resource to that key ARN when you use one.

Add a store

Go to Organization settings → Secret stores, select Add store, and choose AWS Secrets Manager. You need the org:secret:create scope. Create an AWS Secrets Manager store Select Continue. Tracecat saves the store disabled and shows its trust policy and permissions policy. Create the IAM role with those policies, enter the role ARN, such as arn:aws:iam::123456789012:role/tracecat-secrets-reader, and select Save and enable. Entering the role ARN and enabling the store needs the org:secret:update scope. To finish later, select Finish later. The store shows Setup incomplete, and its actions menu offers Finish setup, until you save the role ARN. You can enable a store only after you save its role ARN. After setup, open the store’s actions menu and choose Disable store to block resolution for every reference at once. To show the external ID and policies again, select the store name to expand it. A store reads secrets in one region only. Create a second store for a second region. Expanded store with external ID, trust policy, and permissions policy To change a store’s name, role ARN, or region, open its actions menu and choose Edit store. This works during setup too, for example to fix the region before you enter a role ARN. The external ID stays the same for the life of the store. Edit the store connection

Authorize workspaces

Open the Workspaces picker on the store row. Choose All workspaces to allow every current and future workspace in your organization. Choose Selected workspaces to manage access using individual workspace checkboxes. Switching to Selected workspaces preserves individual authorizations and access for workspaces that already reference the store. Remove those references before unchecking a workspace. To stop secret resolution everywhere, choose Disable store in the store’s actions menu. Workspace users see the store’s name, description, provider, region, and enabled flag, never its external ID or role ARN. Authorize a workspace on the store

Create an AWS-backed secret

In the workspace, open /credentials, select Add credential, and change Secret source from Tracecat to an AWS store. The picker lists only enabled stores authorized for this workspace. A friendly name is looked up in the store’s region. A full ARN must be in the store’s region; Tracecat rejects the reference at save time otherwise. AWS-backed secrets are always the custom type, and they never accept key values. To change one, edit its reference or key mapping. Create an AWS-backed secret with a JSON field mapping

Value mapping

Whole string → one key binds the entire SecretString to exactly one key:
JSON object → selected fields parses the SecretString as a JSON object and maps selected top-level fields onto keys you name. The field must exist and its value must be a string:
Selecting port would fail with non_string_field because its value is a number. Output keys must be unique, and a mapping declares at most 100 keys or fields.

Verify a reference

Use Edit on an externally backed credential to change its store, remote reference (an AWS secret name or ARN, a Bitwarden secret ID, or a Key Vault secret name), and key mapping without deleting the credential. Edit an AWS secret reference and key mapping Check access resolves the reference server-side. The button then shows Reachable, with the resolved key names on hover, or a failure such as Access denied with the fix below the credential. The check never returns the remote value to the browser. Run a check after you create a reference, after you change an IAM policy, a Bitwarden machine account’s access, or a Key Vault role assignment or access policy, and after you move a secret between accounts, regions or projects. AWS-backed credentials showing Reachable checks

Runtime behavior

When an action requests an externally backed secret, Tracecat loads the reference rows, closes the database session, then resolves every reference in parallel. Reads are deduplicated per store and remote reference within one resolution, so a secret mapped onto two aliases costs one read (for AWS, one GetSecretValue call). A configured externally backed secret fails loudly even when the action declares it optional: a missing store grant or an unreadable remote secret raises rather than silently skipping the credential. The error names the secret and environment, and carries the resolution error code. For AWS, connection attempts time out after 5 seconds, reads after 10 seconds, and the AWS SDK retries up to 3 times. Bitwarden’s limits are in its section below.

Lifecycle rules

  • You cannot delete a store while any workspace secret references it. Delete the references first; until then, Delete store is disabled and the actions menu shows the reference count.
  • You cannot revoke a workspace authorization while that workspace still holds secrets referencing the store. Delete those secrets first.
  • Disabling a store fails every resolution with store_disabled while keeping the references intact. Use it to cut access without deleting configuration.
  • Git sync pushes the store name, secret name or ARN, and key mapping, never values. Pulling into another workspace recreates the reference on the enabled, authorized store with the same name. If there is none, or its region doesn’t match the ARN, the pull preview asks you to choose a store for that name, which applies to every secret using it. Secrets you leave unlinked fail in workflows until you choose a store with Edit.
  • Deleting an organization deletes its stores and authorizations.
  • Deleting a workspace deletes its store authorizations.

Troubleshooting

Resolution failures surface one of these codes in the action error. Check access shows the matching label and fix:

Bitwarden Secrets Manager

A Bitwarden store reads secrets from one Bitwarden Secrets Manager organization, on the US cloud, the EU cloud, or a self-hosted server reachable over HTTPS at a public address. Tracecat checks that address when the store is saved and again before each read. Tracecat reads with one machine account. Which projects that account may read is managed in Bitwarden.
1

Create a machine account

In Bitwarden Secrets Manager, create a machine account, give it Can read access to the projects Tracecat should use, and create an access token for it.
2

Add the store

Add a Bitwarden Secrets Manager store with the server and the Bitwarden organization ID, then paste the access token. Tracecat stores the token encrypted and never shows it again; the store only reports whether one is set. A store cannot be enabled until it has a token. Adding the store needs the org:secret:create scope; saving or replacing its token, enabling it, and authorizing workspaces need org:secret:update.
3

Reference secrets

Authorize workspaces as for any store. A Bitwarden-backed secret’s reference is the Bitwarden secret’s ID in lowercase, as Bitwarden shows it, for example 9b8a7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d. The value maps onto keys as described under Value mapping.
Each resolution logs in with the access token and reads all of a store’s references in one request, in a short-lived process that Tracecat stops after 20 seconds. If that request fails, for example because one ID is wrong, the process reads the IDs one at a time until the first failure, so the error names the right secret; those extra reads count toward Bitwarden’s rate limits. Nothing is cached: the next run reads the current value, so rotating a secret in Bitwarden needs no change in Tracecat. The server and organization of a store cannot change while secrets reference it; its access token can be replaced at any time. Bitwarden rate-limits requests per source. Bursts of more than a few reads per second can fail with throttled; Tracecat retries a rate-limited read while time allows.

Azure Key Vault

An Azure Key Vault store reads secrets from one vault, in the Azure public, US Government or China cloud. Tracecat signs in to Microsoft Entra ID as one app registration (service principal) with a client secret. Which secrets that app may read is managed in Azure.
1

Create an app registration

In Microsoft Entra ID, register an app (or reuse one) and create a client secret under Certificates & secrets. Note the directory (tenant) ID and application (client) ID from its overview page.
2

Grant read access on the vault

On a vault that uses Azure RBAC, assign the app the Key Vault Secrets User role on the vault or on individual secrets. On a vault that uses access policies, add a policy that grants the app Get on secrets. If the vault’s firewall is on, allow the addresses Tracecat connects from.
3

Add the store

Add an Azure Key Vault store with the vault URI and the app’s IDs, then paste the client secret. Tracecat stores the client secret encrypted and never shows it again; the store only reports whether one is set. A store cannot be enabled until it has one. Adding the store needs the org:secret:create scope; saving or replacing its client secret, enabling it, and authorizing workspaces need org:secret:update.
4

Reference secrets

Authorize workspaces as for any store. An Azure-backed secret’s reference is the secret’s name in the vault, for example prod-api-key. The value maps onto keys as described under Value mapping.
Each resolution signs in once and reads the current version of each of a store’s secrets, within 20 seconds in total. Nothing is cached: the next run reads the current version, so rotating a secret in Key Vault needs no change in Tracecat. The vault of a store cannot change while secrets reference it; its tenant ID, client ID and client secret can change at any time. Client secrets expire, so replace the store’s client secret before Entra ID retires the old one.

Limits

  • AWS Secrets Manager, Bitwarden Secrets Manager and Azure Key Vault are the supported providers.
  • One AWS store reads one region; one Bitwarden store reads one organization; one Azure store reads one vault.
  • Tracecat reads the AWSCURRENT version stage only, and the current version of a Key Vault secret only. Staged, previous and pinned versions are not addressable.
  • A key mapping declares at most 100 output keys.
  • Rotating a secret in AWS needs no change in Tracecat: the next resolution reads the new AWSCURRENT value. Agent LLM requests can keep using the previous value for up to 60 seconds.
  • The LiteLLM service resolves AWS-backed agent LLM credentials with its own AWS principal. When that principal differs from the one in your trust policy, as on the Fargate deployment, those requests fail with assume_role_failed. Store agent LLM credentials as local secrets on those deployments.
  • On the AWS Fargate deployment, create the store’s role in a different AWS account than Tracecat. By default the executor can’t assume roles in its own account; see AWS role assumption.
  • See Secrets for local secrets, secret types, environments, and expression syntax.
  • See Environment variables for where the operator sets the AWS AssumeRole variables on a self-hosted deployment.
  • See RBAC for the org:secret:* scopes that gate store management.