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

    Class InfisicalSecretsProvider

    The SPEC §3 secrets interface on top of Infisical (client.provider). Names may contain /: the last segment is the key, the rest is the folder below the base path. set creates missing folders, resolves tag slugs (creating missing tags) and returns the new version.

    Hierarchy (View Summary)

    Index
    basePath: string

    Base path of every name.

    • get activeWatchers(): number

      Number of active watchers.

      Returns number

    • get closed(): boolean

      Whether close was called.

      Returns boolean

    • 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

    • Lists the secrets directly under a folder. prefixOrPath is a folder below the base path (app/ or app); when no such folder exists it is a key prefix inside its parent folder (app/DB_ lists keys starting with DB_ in app). A missing folder lists nothing.

      Parameters

      Returns Promise<SecretMetadata[]>

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

    • Provider name of a secret at secretPath/key (relative to the base path).

      Parameters

      • secretPath: string
      • key: string

      Returns string