class GcpSecretManagerProvider
implements SecretProvider
Since 0.1.0

GCP Secret Manager provider.

Constructors

GcpSecretManagerProvider(options?: GcpSecretManagerProviderOptions)
Parameters

GCP connection/injection options

Properties

Since 0.5.0
optional
isHealthy: () => Promise<boolean>

Reachability probe, present only when the resolved client supplies one (M90b). The GCP SDK facade has no non-mutating probe of its own, so the adapted (lazy) path stays undefined and the indicator reports reachable: 'unknown'; an injected facade that exposes isHealthy publishes real reachability.

Methods

connect(): Promise<void>

Establishes any backing connection/client. No-op for stateless providers.

disconnect(): Promise<void>

Releases any backing connection/client. No-op for stateless providers.

get(name: string): Promise<string | null>

Reads a secret from GCP Secret Manager.

isReady(): boolean

Reports whether the provider is ready to serve reads.

set(
name: string,
value: string
): Promise<void>

Adds a new secret version.

Usage

import { GcpSecretManagerProvider } from "secrets-plugin/src/index.ts";