Skip to main content

Secrets

Connecting to an outside system usually means providing some kind of credential, like a password, a token, or a certificate. Pasting that credential directly into a configuration makes it hard to know everywhere it's used, and hard to update once it expires or needs to be rotated.

Secrets let you store credentials and other sensitive values once and reference them by name instead of pasting the value into a configuration. Automations v2 reads a Secret's current value when a node uses it, including when the node uses a saved connection that references the Secret.

Secret Types

When you create a Secret, you give it a name and choose one of five types. Some types also store metadata alongside the secret value: descriptive fields that say how to use the secret but aren't secret themselves. Metadata stays visible after you save the Secret, unlike the value itself.

Basic Secret

Basic holds a username and password, the same combination you would type into a login form. The username is stored as metadata; the password is the secret value.

Token Secret

Token holds a single credential, such as an API key or access token, that a service issues to you instead of a username and password. Many services expect a token to travel with each request.

A Token Secret can also hold an incoming webhook URL or a signing key. When a connection uses a token in a request header or URL query parameter, the Secret can store the header or parameter name as metadata.

Headers Secret

Headers holds one or more custom headers. A header is a small piece of information sent along with a web request, separate from the file or data the request carries.

Use a Headers Secret to store complete header values, including any required prefixes, or to send several headers together.

Certificate Secret

Certificate, used for TLS client authentication, holds a certificate and its private key. This is a way of proving your identity to a server using a pair of cryptographic files issued by an organization, rather than a username and password. Use this type when a service requires client certificate authentication for the connection itself.

Key/Value Secret

Key/Value holds an arbitrary set of named values you define yourself. Use this type when a connection needs several pieces of credential information that don't fit Basic, Token, Headers, or Certificate.

Storage and Visibility

Your site always encrypts Secret values for storage. Once you save a Secret, you cannot view its value.

You can edit a Secret's name, description, and metadata without affecting its stored value. You can replace the stored value with a new secret value.

The values of secrets never appear in any logs.

Ownership and Access

Secrets belong to the site or to a Workspace, never to an individual person. A site-owned Secret doesn't belong to any Workspace.

Site Administrators can manage all Secrets, whether they're site-owned or belong to a Workspace.

Workspace Administrators can see and manage only the Secrets that belong to their Workspace. They can't see site-owned Secrets or Secrets belonging to other Workspaces.

Secrets in Automations v2

Create the Secret in the same Workspace as the Automation. A Site-owned Secret is available to Automations in the Default Workspace.

When a node references a Secret directly, select the Secret by name in the node. For Import into Database, select the Secret on the Database Destination and use that destination in the action.

For outbound messages, use a Token Secret for a webhook URL or signing key, a Headers Secret for custom request headers, or a Key/Value Secret for a message broker's credentials. For HTTP Request, choose a Basic, Token, or Headers Secret based on how the service authenticates requests.

For an application action, select the Secret on the application connection. Use the Secret type and credential fields required by the action.

To rotate a credential, replace the value on the existing Secret. The next execution of the action reads the new value. If you rotate a webhook signing key, update the receiver to use the same key.