Secrets & variables
Secrets and variables are named values that workflows, Apps and Agents read by name. Manage them at Settings › Secrets & variables.
| Type | What it holds | Can you read it back? |
|---|---|---|
| Secret | A credential, encrypted in Rollout | Never. You can replace it |
| Secret from a source | A reference to a secret manager, read each time it's used | Rollout stores only the reference |
| Variable | Plain configuration, such as a repository or a chat ID | Yes. Anyone who can use it can read it |
A secret is write-only: nobody can view its value after it's saved, in the UI or anywhere else. Secrets stay out of workflow configuration, run history and logs. See Security for the encryption scheme and key handling.
Keep credentials in secrets. A variable's value shows in the list, in run outputs and in inspection, and it's never redacted.
Add a secret or variable
- Open Settings › Secrets & variables and choose New.
- Enter a Name and pick a Type.
- Enter the Value, and optionally a Description.
- Under Who can use it, keep Private or pick a Team.
- Choose Save secret or Save variable.
Write down what a token is for and where it came from in its Description, up to 500 characters. Once a value is sealed, the description is the only way to tell two tokens apart. You can edit it in the details at any time.
A variable's value can be up to 32,768 characters.
Names
Names are UPPER_SNAKE_CASE: a letter, then uppercase letters, digits or underscores, up to 63 characters, such as DEPLOY_TOKEN. Rollout converts what you type and shows the result under the field. A name is unique in the workspace among live entries.
A name is permanent. To use a new one, open the entry and choose Duplicate as…, which copies the value, description and access to the new name. The original stays until you delete it.
Import a .env file
- Choose Import .env.
- Paste the file, or drop it on the box. The text is read in your browser. Rollout sees names and lengths for the preview, and the values only when you import.
- Check the preview. A new name starts as a secret when it looks like a credential and as a variable otherwise, and you can flip it. Names are fixed to UPPER_SNAKE_CASE, and the fix is shown.
- For a name that already exists, keep Skip or choose Replace value. The row shows what uses it, and the entry keeps its type.
- Pick Who can use it for the whole batch, then import.
A name repeated in the file keeps its last line. One import takes up to 200 entries.
Rotate a value
Open the secret, then choose Replace value in its actions menu and enter the new value. The name, description, sharing and everything that uses it stay as they are. Steps pick up the new value the next time they read it, and Apps at their next cold start. The old value is overwritten and can't be recovered.
Replace value appears only for secrets stored in Rollout, and only for people who can manage them. For a secret from a source, rotate it at the source.
To change a variable, open it and choose Edit value. Runs that start from then on read the new value, and runs already going keep theirs.
Secrets from a source
A secret can point at a secret manager instead of holding a value. Today that source is 1Password.
- Connect the source under Connections, if you haven't.
- Under New, choose Secret from a source.
- Under From, pick the Connection.
- Enter the Item reference, such as
op://vault/item/field. In 1Password, open the field's menu and choose Copy Secret Reference. - Choose Check to test it, then save.
Rollout reads the value through the Connection each time a step uses the secret, and the value never touches Rollout's database. A secret from a source can't be shared wider than its Connection.
Sharing and access
Only you can use a new entry until you share it. Workspace admins don't bypass Private secrets, unless you're removed from the workspace and an admin adopts your Private area into a Team.
Open the entry and use Access in its details:
- Lives in is its Team or your Private area. Members there can use it.
- Who can use it lets people outside that Team use it: Chosen Teams or Workspace.
- Owner is the person who answers for it, and it can be handed over.
The same access is checked when a workflow that references a secret is saved, and again every time a step reads the value. Revoking access takes effect on the next save or step.
Use a secret in a workflow
Secret fields
Some node settings are secret fields, such as the HTTP request node's authentication: the Token of Bearer, the Password of Basic, the Key value of an API key, or a Signature's Signing key. Pick a secret from the field's list, or create one in place with Save and use.
The node stores only the secret's name. The value is read when the step runs and redacted from run output and history. Secret fields aren't template fields, so {{ }} expressions don't resolve in them.
Store the raw credential. The secret resolves to its stored value, and the HTTP request's Authentication method adds any scheme: Bearer token sends Authorization: Bearer abc123 from a secret stored as abc123, and an API key's optional prefix (Token) goes in front of the same raw value. One secret can serve several header shapes, and rotating it never means retyping a prefix.
Environment variables in shell steps
The Run shell script node has a Secrets section listing names to inject. A secret named DEPLOY_TOKEN is available as $DEPLOY_TOKEN.
- Values are decrypted at step start, redacted from run history and never persisted.
- An injected secret overrides an
enventry with the same name. - Injection and redaction work the same on Rollout and SSH targets, including SSH carried through a connectivity service.
A workflow's Environment can also list a secret. Those reach Run shell script steps as environment variables and can't be read as {{env.NAME}}.
When a secret can't be read
Reading a secret fails closed. If it was deleted or no longer reaches the workflow, the step fails with a structured error and never runs with an empty value. A workflow in a Private area reads as its owner. A Team workflow reads as its Team, so it can't use a secret that's private to the person who started the run. In the editor, a field whose secret is gone keeps the name and flags it.
A secret that can't be read shows Can't be read in the list, with the cause. Fix it there with Replace value, or from its details for a secret from a source.
Use a variable in a workflow
Add the variable to the workflow's Environment, then read it as {{env.NAME}}. A run reads variables when it starts, and every step sees the same value. Editing a variable reaches every workflow that uses it on its next run. A run whose variable is missing or no longer shared with the workflow doesn't start.
A variable isn't a secret: secret fields and secret reads don't resolve it.
Secrets and MCP clients
An AI client connected over MCP can list the secrets and variables it may use: name, kind, description, access, and when each was created, rotated and last used. It can read a variable's value. It can never read a secret's value, and a name it can't use is reported without saying whether the name is missing or not shared with it.
The description travels with the name. It's free text a connected client can read and search, so treat whatever you write there as visible to every client the workspace connects, the same way it's visible to everyone who can see the row.
Creating, rotating and deleting a secret stay on this page. A value sent to an MCP tool would pass through the model's context and the client's transcript before it reached encryption, and an agent-written audit entry can't be attributed to a person.
Delete a secret or variable
Open the entry and choose Delete in its actions menu. The confirmation lists what you can open that uses it: workflows (marked Current release, Draft or both) and, for a secret, Apps. An App's line says App source or names the Tool it goes through. You can still delete it, and the button then reads Delete anyway. The same Used by list is in the entry's details.
Deleting frees the name. A deleted secret's value can't be recovered, and any step that reads it fails, including in runs already going. Runs that reference a deleted variable fail to start until it exists again.
Audit trail
Secret activity goes into the audit log: creation, value changes, deletion, sharing changes and reads, including reads by workflow runs and lookups of names that don't exist. Entries record the actor, action, outcome and time, and never the value.
Workspace admins review it at Settings › Audit log. The Last used column on this page comes from the same trail. Audit log covers what it records and how it's protected.
Related pages
- Security: encryption at rest, workspace isolation and the full audit log
- Integrations: Connections, including 1Password
- HTTP request: the node most often paired with secrets