Saved credentials for code workflows, so keys stay out of your code
Store API keys, tokens and passwords once as saved credentials, then refer to them by name in code workflows and Code Library scripts.
Action needed: Credentials created before this release keep working with a temporary .* host. The next time you edit one, replace .* with the real hosts.
What it is
Store API keys, tokens and passwords once as saved credentials, then refer to them by name in code workflows and Code Library scripts. Atomicwork fills in the value when the request is sent.
Why it matters
Keys pasted into code are easy to leak. They end up in version history, run results and logs, and they look like ordinary text when the request runs. With saved credentials, the secret never appears in any of those places, and each credential can only be sent to the vendor it belongs to.
How it works
-
Save a credential in Settings › Security › Credentials, then reference it in code.
-
In headers:
aw.secretHeader("okta-api-token", { prefix: "SSWS " }) -
In JSON or form fields:
aw.secret("azure-client-secret")
- The value is never visible in code, history, run results or logs.
- Allowed hosts are now required on every credential, such as
acme.okta.comor*.atomicwork.com. Changing the hosts asks you to re-enter the secret, so no one can quietly add a host. - Credentials created earlier keep working with a temporary
.*host. The next time you edit one, replace.*with the real hosts.