secrets variable lets you reference stored secrets — API keys, tokens, and passwords — inside Liquid templates. Instead of hardcoding sensitive values into your workflow configurations, you reference a secret by name and Rootly resolves the actual value at runtime, so the value itself never appears in your workflow definition.
Variables
Rootly uses the Liquid template language. The available variables are:Ruby
Usage
Secrets are most commonly used in workflow tasks that call external systems, such as HTTP request actions that need an authorization header. Because the expression is just Liquid, you can combine secrets with filters like any other variable. For example, to build a Basic authentication header:Ruby
Ruby
Managing secret definitions is restricted to Rootly owners and admins by default. If you need a new secret reference, ask an admin to create it for you.
Related pages
- Liquid templating overview — how Liquid works in Rootly workflows
- Liquid filters — the full list of filters you can chain with secrets
- HashiCorp Vault integration — read secrets from your Vault cluster at runtime