Skip to content

Infisical Plugin

@theholocron/holocron-plugin-infisical vault

npm · GitHub

Install

pnpm add -D @theholocron/holocron-plugin-infisical

Capabilities

CapabilityToken
vaultHOLOCRON_INFISICAL_TOKEN (infisical)
providers: {
vault: ["infisical", {
// Required: Infisical project/workspace id
projectId: "abc123",
// Required: Environment slug
environment: "prod",
// Optional: Secret path (default: "/")
path: "/",
}],
}
Option Required Description
projectId Yes Infisical workspace/project id
environment Yes Environment slug (e.g. "prod", "dev")
path No Secret folder path (default: "/")

The plugin uses Infisical Universal Auth (machine identity). This lets a machine identity authenticate without a user session.

  1. Go to app.infisical.com → Access Control → Machine Identities
  2. Click Create identity, give it a name, and set the role (e.g. member)
  3. Under Authentication → Universal Auth, click Add Client Secret
  4. Copy the Client Secret (shown once)
Terminal window
holocron auth set infisical <client-secret>

Or via env var:

Terminal window
export HOLOCRON_INFISICAL_TOKEN=<client-secret>
  • read(key) — reads a single secret from the configured project + environment + path
  • write(key, value) — creates or updates a secret
  • list() — lists all secret keys in the configured path
  • readEnvironment?(environment) — reads all KEY=VALUE pairs from an environment (powers holocron secrets sync)