@grow-codes/openbao - v0.1.2
    Preparing search index...

    Class BaseSecretsProviderAbstract

    Implements the whole SecretsProvider interface from five primitives a service implements on top of its API (SPEC §3).

    Hierarchy (View Summary)

    Implements

    Index
    • Stops all watchers (the owning client calls this from close()); later calls fail with CANCELLED. Idempotent. Subclasses overriding it must call super.close().

      Returns Promise<void>

    • Throws CancelledError ("<operation>: client is closed", not retryable) once close was called (SPEC §2.4). The public operations call it before any I/O; service operations can call it too.

      Parameters

      • operation: string

      Returns void

    • Sets environment variables from secrets: a path (one variable per secret directly under it) or a mapping { ENV_NAME: "secret/name" }. Returns { envName: secretName } for the variables that were set (never values).

      Parameters

      • source: string | Readonly<Record<string, string>>
      • options: LoadEnvOptions = {}

      Returns Promise<Record<string, string>>

    • Writes a secret; returns the new version or "".

      Parameters

      • name: string
      • value: Uint8Array
      • options: SetOptions

      Returns Promise<string>

    • Stops every watcher started by this provider. Idempotent.

      Returns void