wtree Cloud

Infisical

Read secrets from Infisical Cloud or a self-hosted instance with a machine identity.

wtree Cloud authenticates to Infisical with a machine identity using Universal Auth. Cloud and self-hosted instances both work, including one you run on wtree Cloud from a template.

Before you start

  • An Infisical project and environment to expose.
  • A machine identity:
    1. In Infisical, open Organization → Access Control → Identities and create an identity, for example wtree-cloud.
    2. Add the Universal Auth method and create a Client Secret. Copy the Client ID and secret.
    3. Add the identity to the project with a role that can read secrets.

Connect

Open Integrations › Secret vaults › Add provider and choose Infisical.

FieldValue
NameReference name, for example infisical-prod
Site URLhttps://app.infisical.com for Cloud, or your instance URL
Client ID / Client SecretFrom the Universal Auth method
Project IDShown in the Infisical project settings
EnvironmentEnvironment slug, for example dev, staging, prod
Secret PathDefault /

Click Test connection, save, and assign projects and environments.

Use it

References carry the secret name:

DB_PASSWORD=${{vault.infisical-prod.DB_PASSWORD}}
STRIPE_KEY=${{vault.infisical-prod.STRIPE_KEY}}

Autocomplete lists the secrets of the configured environment.

Limits

A provider covers one Infisical project and environment. Create one provider per environment, for example infisical-dev and infisical-prod, and assign each to the matching wtree Cloud environments.

On this page