Skip to main content
Read a secret from a secret store while your automation runs. Intuned resolves the reference with your Project’s credentials for the store. Your code gets the secret’s value but never sees the credentials.

Supported stores

The reference’s scheme picks the store.

Available helpers

Function reference

resolveSecret

Resolves a secret reference and returns its value. Each call reads from the store again.
Call it inside withoutTracing. On a traced Run, calling it outside a withoutTracing block throws, so the secret can’t be captured by the browser trace, a screenshot, or an automation log. On a Run that isn’t traced, the block isn’t required.
Parameters
SecretReference
required
The secret reference. For 1Password, a secret reference: op://<vault>/<item>/<field>, or op://<vault>/<item>/<section>/<field>, optionally followed by a query such as ?attribute=otp.The type is checked at compile time. A string literal that isn’t a supported reference, such as "op://vault", doesn’t compile. A string variable has to be narrowed first with isSecretReference.
Returns Returns the secret’s value as a string. Throws
  • An Error if the Run is traced and no withoutTracing block is open.
  • A TypeError if reference isn’t a supported secret reference.
  • SecretResolveError if the secret can’t be read. This happens when the store’s integration isn’t enabled, its credentials are missing or can’t read the item, or the machine running the Run doesn’t answer in time. The message names the reference, never the secret.
For 1Password, every call counts toward your service account’s rate limits. Resolve a secret once per Run and reuse it rather than calling it in a loop.

isSecretReference

Returns true if value is a supported secret reference. Use it to pass a reference that arrives as a string, such as a Run parameter: