Aller au contenu
English

InfisicalSecretSourceOptions

import type { InfisicalSecretSourceOptions } from "@elie-laloum/outpost/secrets/infisical";
  • clientRequis
    { secrets(): { getSecret(options: GetSecretOptions): Promise<Pick<Secret, "secretValue" | "secretValueHidden">>; }; }
    Client hôte authentifié par l’appelant exposant secrets().getSecret(), comme InfisicalSDK pour les instances cloud ou auto-hébergées. L’appelant choisit l’URL et l’authentification, gère le renouvellement et conserve le client.
  • projectIdRequis
    string
    Identifiant explicite du projet Infisical appliqué à chaque lecture de nom sélectionné.
  • environmentRequis
    string
    Identifiant non vide de l’environnement Infisical, comme dev ou prod, appliqué à chaque lecture sélectionnée.
  • pathOptionnel
    string | undefined
    Chemin absolu du dossier Infisical sans traversée, / par défaut. Imports et développement des références restent désactivés indépendamment du chemin.
import type { GetSecretOptions, Secret } from "@infisical/sdk";

export interface InfisicalSecretSourceOptions {
  readonly client: {
    secrets(): {
      getSecret(
        options: GetSecretOptions,
      ): Promise<Pick<Secret, "secretValue" | "secretValueHidden">>;
    };
  };
  readonly projectId: string;
  readonly environment: string;
  readonly path?: string;
}