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:
- In Infisical, open Organization → Access Control → Identities and create an identity, for example
wtree-cloud. - Add the Universal Auth method and create a Client Secret. Copy the Client ID and secret.
- Add the identity to the project with a role that can read secrets.
- In Infisical, open Organization → Access Control → Identities and create an identity, for example
Connect
Open Integrations › Secret vaults › Add provider and choose Infisical.
| Field | Value |
|---|---|
| Name | Reference name, for example infisical-prod |
| Site URL | https://app.infisical.com for Cloud, or your instance URL |
| Client ID / Client Secret | From the Universal Auth method |
| Project ID | Shown in the Infisical project settings |
| Environment | Environment slug, for example dev, staging, prod |
| Secret Path | Default / |
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.
