Trigger.dev v4.9.1

Secret Proxy support in `trigger env set` (in preview) and 2 server improvements.

1 new feature and 2 server changes.

Highlights

Secret Proxy is in preview and must be enabled for your organization.

Secret Proxy for environment variables

Secret Proxy lets you store a sensitive value so tasks never receive the real thing. The task only gets a placeholder, and the proxy substitutes the real value into the request headers you allow, right before the outbound call. Services that echo arbitrary headers back can't return the value to your task.

Pass --secret-proxy with --allowed-domain to store a secret in Secret Proxy. Use --allowed-header to control which request headers the real value can appear in (Authorization and x-api-key by default):


# Store a new secret in Secret Proxy
trigger env set MY_API_KEY --secret-proxy --allowed-domain api.example.com
# Restrict to a specific header
trigger env set MY_API_KEY --secret-proxy --allowed-domain api.example.com --allowed-header Authorization
# Move an existing variable into Secret Proxy (omit the value)
trigger env set MY_API_KEY --secret-proxy --allowed-domain api.example.com

Server changes

These changes are included in the v4.9.1 Docker image and are already live on Trigger.dev Cloud:

  • Secret Proxy only injects a secret's value into the request headers you explicitly allow for that secret, so services that echo other request headers back cannot return the real value to your task.
  • MCP tools for AI clients now return refusals that say what to do next: they list the projects and environments available, point to the right environment when a run is in another one, and find a run's project and environment automatically when a run ID is provided. Tool argument descriptions are shorter, run lists are more compact, and error groups indicate whether they first appeared before or after the current deploy.

How to upgrade

Update the trigger.dev/* packages to v4.9.1 using your package manager:


npx trigger.dev@latest update # npm
pnpm dlx trigger.dev@latest update # pnpm
yarn dlx trigger.dev@latest update # yarn
bunx trigger.dev@latest update # bun

Self-hosted users: update your Docker image to ghcr.io/triggerdotdev/trigger.dev:v4.9.1.

Deploy your first agent today

Get set up in minutes, either on your own or with your coding assistant.

Start for free