Setu-TS
    Preparing search index...

    Class HashiCorpVaultProvider

    HashiCorp Vault (KV v2) provider.

    0.1.0

    Implements

    • SecretProvider
    Index
    • Reads a secret from Vault's KV v2 engine.

      Parameters

      • name: string

        The secret path (relative to the mount)

      Returns Promise<string | null>

      The value, or null when absent

      When Vault cannot be reached or does not answer within requestTimeoutMs

      On a non-404 HTTP error or a body that is not JSON

    • Probes Vault's unauthenticated /v1/sys/health (M90b). Any HTTP response proves the server answered — Vault reports its standby and sealing states through STATUS CODES on this endpoint, all of which mean "reachable" — and a network failure does not. No secret is read and the auth token is not sent: the health endpoint is unauthenticated by design, and a read is not a probe.

      Returns Promise<boolean>

      true when the Vault server answers

      0.5.0

    • Writes a new secret version to Vault's KV v2 engine.

      Parameters

      • name: string

        The secret path (relative to the mount)

      • value: string

        The new value

      Returns Promise<void>

      When Vault cannot be reached or does not answer within requestTimeoutMs

      On any HTTP error