# Trigger.dev: Trigger.dev: root API keys exposed environment variables for 0.66% of tenants

> **Safety notice:** Safe read-only API contract test for your own staging services.

- **Incident date:** Nov 1, 2026
- **Disclosed:** Nov 1, 2026
- **Source disclosure:** https://trigger.dev/blog/security-incident-report-nov-2026

## Reproduction lab
Verifies that management API keys in your own multi-tenant platform return only secret names and SHA-256 digests, never decrypted secret values.

```bash
# verify management API never echoes plaintext secret values
curl -sS -H "Authorization: Bearer $STAGING_API_KEY" https://staging.example.internal/v1/env | jq '.[] | {key, digest, value}'
```

## Policies and detection rules

### `write-only-env-policy.json`
Scoped API token policy separating task-trigger privileges from secret administration, and disabling plaintext secret readback. Breaks step 3.

```json
{
  "tokenScope": "runtime-trigger-only",
  "permissions": {
    "runs:trigger": true,
    "runs:read": "own-project-only",
    "env:write": false,
    "env:readPlaintext": false
  },
  "secretDelivery": "ephemeral-oidc-broker"
}
```

### `rotate-exposed-env-secrets.sh`
Customer triage checklist after an environment-variable exposure: prioritise cloud IAM and database credentials before downstream webhooks.

```sh
# 1. Rotate Trigger.dev API keys (revoked automatically for impacted envs)
# 2. Rotate high-blast-radius third-party credentials stored in env vars:
#    - Cloud IAM / service account keys -> replace with OIDC
#    - Production Postgres / Redis connection strings
#    - Payment (Stripe) and LLM provider API keys
# 3. Audit provider access logs starting Nov 1, 2026 00:00 UTC
```

## Indicators of compromise
- **url:** `https://trigger.dev/blog/security-incident-report-sunday-november-1st` (Official Nov 6 follow-up report listing all affected metadata fields.)
