Skip to content
Français

GcpSecretSourceOptions

import type { GcpSecretSourceOptions } from "@elie-laloum/outpost/secrets/gcp";
  • clientRequired
    Pick<SecretManagerServiceClient, "accessSecretVersion">
    Caller-owned SecretManagerServiceClient authenticated on the host; only accessSecretVersion is used. fromSecrets bounds waiting but cannot cancel an already-started SDK call; the caller closes the client.
  • secretsRequired
    Readonly<Record<string, string>>
    Environment-name mapping to projects/<project>/secrets/<secret>/versions/<version>, optionally with locations/<location> after the project. Version is latest or a positive integer; only selected resources are accessed.
import type { SecretManagerServiceClient } from "@google-cloud/secret-manager";

export interface GcpSecretSourceOptions {
  readonly client: Pick<SecretManagerServiceClient, "accessSecretVersion">;
  readonly secrets: Readonly<Record<string, string>>;
}