Skip to main content

Vault Client

The Vault client provides secure credential management with AES-256-GCM encryption. Store usernames, passwords, and other sensitive data for use in workflow executions.
All sensitive fields (user_name, password, and tfa_secret) are automatically encrypted by the SDK before being sent to CloudCruise servers. Plaintext credentials are never transmitted or stored.

Setup

The encryptionKey is required for vault operations. Get it from CloudCruise Settings.

Creating a Vault Entry

Use client.vault.create() to store new credentials:

Parameters

Options Object

Provider-Backed Credentials (1Password)

If your workspace has a 1Password connection, you can bind a vault entry to a 1Password item instead of storing a user_name and password. CloudCruise resolves the username, password, and one-time code from 1Password at run time — the secret values are never stored in CloudCruise. Use client.secretProviders to discover the connection and item reference, then pass secret_provider_id and secret_ref to create() (or update()):

SecretProvider Fields

SecretProviderItem Fields

Validation enforced by the SDK before the request is sent:
  • secret_provider_id and secret_ref must be provided together.
  • A provider-backed entry cannot also include user_name, password, or tfa_secret — those are resolved from the provider.
  • secret_cache_ttl_seconds requires secret_provider_id/secret_ref and must be a non-negative integer.

Getting Vault Entries

Retrieve vault entries with optional filtering:

Filter Options

When filtering, both domain and permissioned_user_id must be provided together.

Updating a Vault Entry

Update an existing vault entry:

Required Fields for Update

A direct update still requires both user_name and password. For a provider-backed update, omit them and pass secret_provider_id and secret_ref instead — the same mutual-requirement and conflict rules apply as on create:

Deleting a Vault Entry

Delete a vault entry by domain and user ID:

Using Vault Entries in Workflows

Reference vault credentials in workflow runs by passing the permissioned_user_id as an input variable:
The input variable name (e.g., USER) depends on how your workflow is configured. Check your workflow’s input schema in the CloudCruise dashboard.