This loader allows WDK to be run in API mode while deploying SWADL files once from a designated location at startup. This allows secrets to be used in production when API-based deployments are not preferred.
- Enable WDK API mode by setting
wdk.workflows.pathto an empty string and enabling themonitoring-tokenandmanagement-token - Set
wdk.loader.pathto the actual path of where the SWADL files should be loaded fromwdk: workflows.path: "" loader.path: ./workflows encrypt.passphrase: mysecretpassphrase properties: monitoring-token: mysecretpassphrase management-token: mysecretpassphrase
- Add secrets via environment variables prefixed with
WDK_SECRET_in the runtime location- e.g. adding a
WDK_SECRET_secretTokenenvironment variable with aabcvalue will create a WDK secret at startup namedsecretTokenwith a value ofabc
- e.g. adding a