@outputai/core credentials init. Nothing in your workflow code needs to change. If a deploy ships the encrypted credentials file the worker would decrypt, without a valid matching key, the worker will refuse to start instead of running until the first credential read.
What changed
At worker startup, credentials init loads global credentials through the same path later reads use (loadGlobal):
config/credentials/<NODE_ENV>.yml.encwhenNODE_ENVisproductionordevelopmentand that file exists- otherwise
config/credentials.yml.encwhen that file exists
setProvider() skip this eager load.
A missing key names the expected env var and key file, for example:
Deploys that withhold the key on purpose
Some images copy an encrypted credentials file into the image and rely on never reading credentials in that environment, or on setting the key later. After v0.19.0 those workers crash-loop at boot whenever that file is the one the worker would load — including when a key is set but does not match the file. Pick one:- Provide a valid key - set the env var or mount the key file that matches the file on disk (
OUTPUT_CREDENTIALS_KEY_PRODUCTION/config/credentials/production.keyfor the env-scoped file, orOUTPUT_CREDENTIALS_KEY/config/credentials.keyfor the default file). An env-scoped file does not fall back to the global key. - Remove or rename the enc file in images that must not decrypt credentials, so the eager load finds nothing to decrypt.
- Use a custom provider - call
setProvider()before credentials init; the encrypted-YAML eager load runs only for the default provider.
Checklist
- Bump
@outputai/coreto0.19.0. - Confirm every worker deploy that includes
config/credentials/production.yml.enc,config/credentials/development.yml.enc, orconfig/credentials.yml.encalso supplies a valid matching key for the file that will be loaded. - If a deploy must ship an enc file without a valid key, remove that file from the image or switch to a custom credentials provider before upgrade.