SmoothDeploy Docs
Operations

Secrets

Secrets store encrypted key-value pairs that test steps reference by name at run time. Values are injected by the runner and masked in logs and results.

Secrets are organization-level key-value pairs — passwords, tokens, connection strings — that your test steps can reference by name. At run time the runner substitutes each reference with its value; the value is never stored in the step definition. Remote run logs, events and results mask secret values before they are stored.

Permissions

Members' tests can use secrets at run time. Admins and owners can view the secrets list, create, edit, and delete secrets. See Roles and Permissions.

Storage

Secret values are stored encrypted. The database keeps only the secret name and a version identifier — the plaintext value is never written to the database. The API (secrets.get, secrets.list) returns names and metadata only; it never returns values.

Create a Secret

  1. Go to Operations → Secrets in the sidebar.
  2. Click Create Secret.
  3. Fill in the fields:
FieldNotes
NameRequired. Letters, digits, and underscores only. Max 64 characters. Cannot be changed after creation.
ValueRequired. The console does not display a value after you save it.
DescriptionOptional. Describes what this secret is used for.

Names must follow environment variable naming rules (letters, digits, underscores; no spaces or special characters) because secrets are injected as environment variables at run time.

Edit a Secret

Click the edit icon on any row. You can update the Value and Description. The Name field is disabled — names cannot be changed after creation. Leave Value empty to keep the current value unchanged.

Delete a Secret

Click the delete icon on any row and confirm.

Deleting a secret is permanent

Any step that references the deleted secret will fail at run time because the variable will not be present.

Reference a Secret

The template syntax {{secrets.SECRET_NAME}} (replace SECRET_NAME with the exact name) injects a secret wherever dynamic values are accepted. The reference must be the whole field value; prefix-{{secrets.TOKEN}} is not substituted. The editor and config forms store the secret name internally; the plaintext value is never saved to the step or config.

In Code and Script steps, read a secret with _SECRETS['SECRET_NAME'].

Adding or changing a secret reference in a step needs the secrets:consume permission. API keys never have it, so steps.create and steps.update over the API return 403 when the step references a secret that no existing step already uses.

In a test step — input fields that support dynamic values (such as the value field in a Fill step) accept this syntax. For example, enter {{secrets.LOGIN_PASSWORD}} to inject a password.

In a config preset or project base URL — the base URL, HTTP headers, and HTTP credentials fields accept the same syntax. For example, set the base URL to {{secrets.STAGING_URL}}.

Next Steps