Skip to content

DopplerVault

Defined in: plugins/holocron-plugin-doppler/src/capabilities/vault.ts:59

vault capability for Doppler, with references shaped doppler://<project>/<config>/<name>.

  • Vault

new DopplerVault(client, opts): DopplerVault

Defined in: plugins/holocron-plugin-doppler/src/capabilities/vault.ts:68

() => object

DopplerVaultOptions

DopplerVault

readonly key: "vault"

Defined in: plugins/holocron-plugin-doppler/src/capabilities/vault.ts:61

Capability key; always "vault".

Vault.key


readonly providerName: "doppler" = "doppler"

Defined in: plugins/holocron-plugin-doppler/src/capabilities/vault.ts:63

Provider name; always "doppler".

Vault.providerName

ensureEnvironment(project, name): Promise<EnsureResult>

Defined in: plugins/holocron-plugin-doppler/src/capabilities/vault.ts:192

Optional — create a named environment/config inside a project (e.g., Doppler config dev / stg / prd). Idempotent. Providers whose data model has a single flat namespace omit this.

string

string

Promise<EnsureResult>

Vault.ensureEnvironment


ensureProject(name): Promise<EnsureResult>

Defined in: plugins/holocron-plugin-doppler/src/capabilities/vault.ts:182

Optional — create the top-level project container in the vault if it does not exist. Idempotent: alreadyExists: true when the project was already there. Providers whose data model has no project notion (or that gate this behind a paid tier) omit this.

string

Promise<EnsureResult>

Vault.ensureProject


ensureRelaySource(input): Promise<EnsureRelaySourceResult>

Defined in: plugins/holocron-plugin-doppler/src/capabilities/vault.ts:132

Make the Doppler webhook for a relay source, found again by its URL in the project (options.project, else the vault’s). scope is the config slugs it applies to; events has no meaning here (a Doppler webhook is sent on secret changes) and is ignored. The secret in the input is the signing secret and is sent only on create; Doppler never returns it. An existing webhook is adopted unchanged: no update call is made, inspectRelaySource reports a difference. Doppler does not document which token type may manage webhooks, so a 401/403 is a todo.

EnsureRelaySourceInput

Promise<EnsureRelaySourceResult>

Vault.ensureRelaySource


environments(): Promise<string[]>

Defined in: plugins/holocron-plugin-doppler/src/capabilities/vault.ts:107

Optional environment notion within the vault (e.g., 1P Environments — named KEY=VALUE bundles). Adapters without environments return [].

Promise<string[]>

Vault.environments


inspectRelaySource(input): Promise<RelaySourceState>

Defined in: plugins/holocron-plugin-doppler/src/capabilities/vault.ts:159

Read the webhook back by URL: whether it exists, is enabled, covers every declared config and has a secret.

InspectRelaySourceInput

Promise<RelaySourceState>

Vault.inspectRelaySource


list(): Promise<string[]>

Defined in: plugins/holocron-plugin-doppler/src/capabilities/vault.ts:100

List secret keys available to the project.

Promise<string[]>

Vault.list


read(reference): Promise<string>

Defined in: plugins/holocron-plugin-doppler/src/capabilities/vault.ts:84

Read a secret by reference. The reference format is provider-specific (1P: “op://Vault/Item/field”; HashiCorp Vault: “kv/path#field”; etc.). Adapters validate the reference shape.

string

Promise<string>

Vault.read


readEnvironment(environmentId): Promise<Record<string, string>>

Defined in: plugins/holocron-plugin-doppler/src/capabilities/vault.ts:112

Optional bulk read of an environment’s KEY=VALUE pairs. Powers the holocron sync secrets flow where the orchestrator pulls a whole environment from the vault then fans the values out to destinations (CI secrets, deployment env vars, local .env).

string

Promise<Record<string, string>>

Vault.readEnvironment


readSecret(name): Promise<string>

Defined in: plugins/holocron-plugin-doppler/src/capabilities/vault.ts:90

Optional — read a secret by its bare name from the project and config this vault was set up with, instead of by a full reference. For a provider whose references name the project and config the options already carry (Doppler).

string

Promise<string>

Vault.readSecret


write(reference, value): Promise<void>

Defined in: plugins/holocron-plugin-doppler/src/capabilities/vault.ts:95

Write or update a secret.

string

string

Promise<void>

Vault.write