Skip to content

Variables and secrets

Variables are named values stored in your workspace and reused across workflows and scripts. A secret is a variable whose value is encrypted at rest and never returned in plaintext through the API or UI.

Variables hold non-sensitive configuration such as a base URL, a feature flag, or a default region. They are defined once and referenced wherever they are needed, so you change a value in one place rather than editing every workflow.

Terminal window
orvanta variable add https://api.example.com u/me/base_url
orvanta variable list

Variables live at a path (e.g. u/me/base_url or f/folder/base_url) and are referenced by that path from a flow input or script.

A secret is simply a variable marked secret. For credentials, API keys, and tokens. Secrets are encrypted with the workspace key and are:

  • Write-only. You can set or rotate a secret, but never read its plaintext back through the UI or API.
  • Injected at execution time. The value is decrypted only when a script or flow step that references it runs.
  • Redacted in logs. Secret values are masked if they appear in output.

Create a secret variable from the UI (toggle secret), or with the CLI and a secret spec:

Terminal window
orvanta variable get f/folder/stripe_api_key

A script reads it by referencing the variable’s path; the value is resolved and injected at runtime.

Both variables and secrets are scoped to a workspace and can be further restricted by role, so only authorised users and workflows can reference a given secret.