Skip to content

Vault

Defined in: cli/cli/src/plugin/capabilities/capabilities.type.ts:1686

A secret store, the source of truth that holocron sync secrets reads from.

readonly key: "vault"

Defined in: cli/cli/src/plugin/capabilities/capabilities.type.ts:1688

Identifies this provider as the vault capability.

ProviderIdentity.key


readonly providerName: string

Defined in: cli/cli/src/plugin/capabilities/capabilities.type.ts:56

The provider’s name, e.g. github or vercel.

ProviderIdentity.providerName

optional ensureEnvironment(project, name): Promise<EnsureResult>

Defined in: cli/cli/src/plugin/capabilities/capabilities.type.ts:1744

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>


optional ensureProject(name): Promise<EnsureResult>

Defined in: cli/cli/src/plugin/capabilities/capabilities.type.ts:1737

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>


optional ensureRelaySource(input): Promise<EnsureRelaySourceResult>

Defined in: cli/cli/src/plugin/capabilities/capabilities.type.ts:1881

Make or adopt the vendor’s webhook for input.url and say what was done, with the secret when it was just set.

EnsureRelaySourceInput

Promise<EnsureRelaySourceResult>

RelaySourceMethods.ensureRelaySource


optional environments(): Promise<string[]>

Defined in: cli/cli/src/plugin/capabilities/capabilities.type.ts:1714

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

Promise<string[]>


optional inspectRelaySource(input): Promise<RelaySourceState>

Defined in: cli/cli/src/plugin/capabilities/capabilities.type.ts:1883

Read the webhook back without changing anything (holocron doctor notifications). Never reads the secret.

InspectRelaySourceInput

Promise<RelaySourceState>

RelaySourceMethods.inspectRelaySource


list(): Promise<string[]>

Defined in: cli/cli/src/plugin/capabilities/capabilities.type.ts:1707

List secret keys available to the project.

Promise<string[]>


read(reference): Promise<string>

Defined in: cli/cli/src/plugin/capabilities/capabilities.type.ts:1695

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>


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

Defined in: cli/cli/src/plugin/capabilities/capabilities.type.ts:1722

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>>


optional readEnvironmentEntries(environmentId): Promise<EnvironmentEntry[]>

Defined in: cli/cli/src/plugin/capabilities/capabilities.type.ts:1729

Optional — like readEnvironment, but each entry says whether the vault holds it concealed (a secret) or visible (a plain value). holocron doctor secrets --shared compares only the concealed ones. The values are for in-memory comparison and are never printed. A provider that cannot tell omits this.

string

Promise<EnvironmentEntry[]>


optional readSecret(name): Promise<string>

Defined in: cli/cli/src/plugin/capabilities/capabilities.type.ts:1701

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>


write(reference, value): Promise<void>

Defined in: cli/cli/src/plugin/capabilities/capabilities.type.ts:1704

Write or update a secret.

string

string

Promise<void>