Skip to content
Français

VaultSecretSourceOptions

import type { VaultSecretSourceOptions } from "@elie-laloum/outpost/secrets/vault";
  • addressRequired
    string
    Explicit absolute HTTP(S) server URL for Vault or OpenBao, optionally with a proxy base path; credentials, queries and fragments are refused.
  • tokenRequired
    string
    Declared host-side read token, sent only in X-Vault-Token headers. Must be nonempty without line breaks; never forwarded as a sandbox variable by this adapter.
  • mountRequired
    string
    KV v2 mount name, such as kv or secret; encoded path segments must be nonempty without traversal.
  • pathRequired
    string
    Document path relative to mount, such as outpost/prod. One document is fetched and its requested fields are selected; do not include the API data segment.
  • versionOptional
    number | undefined
    Positive integer KV v2 document version; omitted selects the service’s latest version.
  • namespaceOptional
    string | undefined
    Optional namespace header for the chosen Vault/OpenBao server, with no line breaks.
export interface VaultSecretSourceOptions {
  readonly address: string;
  readonly token: string;
  readonly mount: string;
  readonly path: string;
  readonly version?: number;
  readonly namespace?: string;
}