wtree Cloud

Phase

Read secrets from a Phase app and environment with a service account token.

Before you start

  1. In the Phase Console, create a Service Account with access to the app and environment wtree Cloud should read.
  2. Generate a REST API token for it. Don't use the CLI/SDK token that starts with pss_.
  3. Copy the app's App ID from its settings.

The app must have Server-side Encryption (SSE) enabled. Without it the REST secrets API returns no values and Test connection fails, asking you to enable it.

Connect

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

FieldValue
NameReference name, for example phase-prod
Service Account REST API TokenThe token only, without the ServiceAccount prefix
App IDUUID of the Phase app
EnvironmentEnvironment name, for example Production
Secret PathFolder to read. Default /
API URLDefault https://api.phase.dev. For self-hosted Phase, your public API URL, by default ${HTTP_PROTOCOL}${HOST}/service/public

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

Use it

References carry only the secret key:

DATABASE_URL=${{vault.phase-prod.DATABASE_URL}}
API_KEY=${{vault.phase-prod.API_KEY}}

Limits

A provider covers one app, environment and path. Create another provider for a different environment or path.

On this page