New: Store API keys and certificates as secrets in your automations

API keys, tokens, and certificates for a code step no longer need to live in the code itself. Add them once as Secrets on the automation and load them by name in any of its code steps. Secrets are available now.

What is new

  • A Secrets panel on every automation. Open the ... menu in the automation builder and choose Secrets to add, replace, or delete API keys, tokens, and certificates.
  • Encrypted and never shown again. A value is encrypted when you save it. It is not shown again, not in the editor and not in the run logs.
  • Load a secret by name. In a code step, load a secret with await tekst.secrets.load("ERP_API_KEY"). The code editor suggests the names of the automation's secrets as you type.
  • Only for editors. Only people who can edit the automation can see and change its secrets.

Why it matters

Code steps that call an ERP, a CRM, or another API need a key or a certificate, and until now that value sat right in the code. Changing a key meant finding and editing every code step that used it. With secrets, your keys are handled the way your IT team expects: encrypted and kept in one place. Rotating a key is a single click on Replace value, with no code to touch.

Good to know

  • A secret name uses letters, numbers, and underscores, and starts with a letter or an underscore, for example SALESFORCE_TOKEN.
  • Values shorter than 6 characters are not hidden in a step's logs or output.

Getting started

Open an automation, choose ... and then Secrets, and click Add secret. Then load the secret by name in a code step. New to code steps? Start with Use a code step in an automation.

Was this article helpful?

0 out of 0 found this helpful

0 comments

Please sign in to leave a comment.