You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 32cb270
Browse filesBrowse the repository at this point in the historyBrowse files
fix(trigger): keep secret text out of env sync errors and refuse an unknown sync target (#9672)
* fix(trigger): keep secret text out of env sync errors and refuse an unknown sync target
A malformed env-vars secret failed with the JSON parser's message, which quotes the text around
the fault, and the Trigger.dev deploy prints that error to a public CI log; the error now names
only the failure. TRIGGER_ENV_SYNC_TARGETS was split on commas without trimming or validation, so
a typo or a space silently kept an environment on its old configuration; it is now parsed by
parseTriggerEnvSyncTargets, which trims entries and refuses a name with no mapped secret (by own
key, so prototype names cannot pass), and the deploy logs which path it took.
Comments now say the CLI applies synced variables when it uploads the version and that the sync
never deletes, describe the retry as every failed request, and point the worker marker at
TRIGGER_CONSTANT_VARS.
* fix(trigger): accept only the exact sync-target list the deploy workflows match
The workflows grant the secret-read credentials by matching TRIGGER_ENV_SYNC_TARGETS as an exact
comma list, so a trimmed parser could accept a padded entry the credential step skipped and fail
inside the sync instead. The parser now refuses a padded, empty, or unknown entry with a message
naming the expected format.
`TRIGGER_ENV_SYNC_TARGETS must be a comma list of ${Object.keys(APP_ENV_SECRET_IDS).join(', ')} with no spaces; refused: ${invalid.map((target)=>JSON.stringify(target)).join(', ')}`
91
+
)
92
+
}
93
+
returnnewSet(targets)
94
+
}
95
+
77
96
/** Reads the app env-vars secret mapped to `environment` and builds its Trigger.dev variables. */
0 commit comments