Overview
@saflib/vendors-infisical wires Infisical as the production backend for @saflib/secret-store.
What this package provides
configureSecretStore()— idempotent startup helper; registersInfisicalSecretStorefrom envInfisicalSecretStore— implementsSecretStore; fetches secrets by name from an Infisical project/environmentgetSecretStore()/resetSecretStoreForTests— read or reset the configured store
Integration
Call configureSecretStore() at process startup before wiring email, object storage, or other integrations that read secrets. Locally use EnvSecretStore or set INFISICAL_TOKEN=mock for placeholder resolution.
Environment (see env.schema.json):
INFISICAL_TOKEN— access token;mockselects the mock clientINFISICAL_PROJECT_ID— project id (optional when token ismock)INFISICAL_ENVIRONMENT— environment slug (e.g.dev,staging,prod)
Vendor packages such as @saflib/vendors-brevo fetch API keys through the configured store.