Skip to content
Français

SecretSource

import type { SecretSource } from "@elie-laloum/outpost/core";
  • nameRequired
    string
    Stable name identifying the secret-manager implementation; must be nonempty when passed to fromSecrets.
  • resolveRequired
    (names: readonly string[], options?: SecretResolveOptions) => Promise<Readonly<Record<string, string | undefined>>>
    Read only requested names, optionally honoring the supplied signal, and return own data properties with string values or undefined for missing secrets. Do not write values to disk, mutate the host environment or enumerate undeclared secrets. Call through fromSecrets for bounded waiting and sanitized errors.
export interface SecretSource {
  readonly name: string;
  resolve(
    names: readonly string[],
    options?: SecretResolveOptions,
  ): Promise<Readonly<Record<string, string | undefined>>>;
}