Infisical Integration Guide
What is Infisical?
@infisical/sdk 5.0.2 (Node 20+), CLI 0.44 with `infisical sm`, and OIDC from Vercel and GitHub, so there's no client secret anywhere.
The Node SDK only ships universalAuth and awsIamAuth helpers. For Vercel OIDC, call getVercelOidcToken() from @vercel/oidc inside the handler, POST { identityId, jwt } to /api/v1/auth/oidc-auth/login, and pass the token to client.auth().accessToken(). In GitHub Actions, use Infisical/secrets-action@v1.0.18 with method: oidc and id-token: write. CLI 0.44 moved secrets commands under `infisical sm`, switched project config to .infisical.yaml, and requires --projectId for machine identities. Linux packages moved off Cloudsmith in September 2026. Rotation (Stripe mints restricted rk_ keys) and dynamic secrets need the Advanced plan at $40 per identity per month; Free covers 5 identities, and machine identities count. For codeAmani, Hazina keeps the local bootstrap creds and Infisical serves deployed workloads. Never let both write the same Vercel keys.
Five Infisical primitives
Identity in, secrets out: pick the delivery path that needs the least code.
██╗███╗ ██╗███████╗██╗███████╗██╗ ██████╗ █████╗ ██╗
██║████╗ ██║██╔════╝██║██╔════╝██║██╔════╝██╔══██╗██║
██║██╔██╗ ██║█████╗ ██║███████╗██║██║ ███████║██║
██║██║╚██╗██║██╔══╝ ██║╚════██║██║██║ ██╔══██║██║
██║██║ ╚████║██║ ██║███████║██║╚██████╗██║ ██║███████╗
╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═════╝╚═╝ ╚═╝╚══════╝Infisical Integration Guide
Focus: Centralize codeAmani's deployed secrets (Anthropic/OpenAI keys, Stripe, Supabase/Neon URLs, Cloudflare R2, and Daraja/M-Pesa for Kenya-targeted projects) in one open-source, self-hostable platform. Workloads authenticate as a Machine Identity: Universal Auth anywhere, or OIDC from Vercel and GitHub Actions so there's no long-lived secret at all. Inject locally with
infisical sm run, push to platforms with Secret Syncs, and catch leaks withinfisical scan.
Overview
Infisical is an open-source (MIT core) security platform. Its products are now Secrets Management, Certificate Management (PKI), KMS, Privileged Access (PAM), Agent Vault (a credential-brokering proxy for AI agents), and Secret Scanning. For codeAmani, Secrets Management is the main one. Secrets are organized as project → environment → folder path.
Ways to consume secrets, from least to most code:
| Surface | What it does | When codeAmani uses it |
|---|---|---|
| Secret Syncs | Infisical pushes a project path into Vercel env vars, GitHub Actions secrets, Netlify, Cloudflare Workers, Supabase, and 50+ other destinations. Changes propagate automatically | Default for Vercel apps: no runtime code, no cold-start fetch |
CLI infisical sm run -- <cmd> | Injects secrets as env vars into a child process; nothing is written to disk | Local dev, scripts, containers |
GitHub Action Infisical/secrets-action | Fetches secrets into a job via OIDC or Universal Auth | CI/CD |
Infisical Agent (infisical agent) | Daemon that renews tokens and renders secrets/leases to files through Go templates | VMs, containers, sidecars |
SDK @infisical/sdk (Node), infisicalsdk (Python) | Fetches at runtime; also handles dynamic-secret leases and KMS encrypt/sign | Long-running servers, rotation-aware code |
MCP server @infisical/mcp | Lets Claude/Cursor list, read, and create secrets through tools | Admin chores from an agent, with read-only tools and masking on |
How it relates to Hazina
codeAmani's own Hazina vault (packages/hazina) is local-only. It keeps
developer-machine credentials encrypted under Windows DPAPI, and coding agents see only
${VAULT:…} references. Infisical is the deployed, team-scale layer: it serves secrets
to running workloads, CI, and teammates, and it adds rotation, dynamic secrets, syncs, and
audit logs. The two fit together:
- The Infisical bootstrap credentials (
INFISICAL_CLIENT_ID/INFISICAL_CLIENT_SECRET) live in Hazina on dev machines (hazina add infisical/...), never in a loose.env. - Hazina's
push --provider verceland Infisical's Vercel Sync overlap. Pick one source of truth per Vercel project. Two writers to the same env vars will overwrite each other. - Hazina never deploys. Anything a production workload reads at runtime belongs in Infisical (or a platform-native store).
Official Documentation
Versions verified 2026-10-20
| Thing | Version | Source |
|---|---|---|
@infisical/sdk (Node) | 5.0.2; requires Node.js 20+ | npm view, Node SDK docs |
@infisical/cli | 0.44.3 (released 2026-10-19) | npm view, github.com/Infisical/cli/releases |
@infisical/mcp | 0.0.24 (bundles @infisical/sdk 4.0.1) | npm view |
infisicalsdk (Python) | 1.0.17 | PyPI JSON |
Infisical/secrets-action | v1.0.18 (docs examples still show v1.0.16) | GitHub releases |
@vercel/oidc | 4.0.1 | npm view |
Server image infisical/infisical | v0.166.8 (2026-10-15) | Docker Hub, GitHub releases |
1. Machine identities: pick the auth method
A Machine Identity is the non-human principal that your app, CI job, or agent logs in as. You give it an organization role, then add it to each project with a project role. Each identity can hold several auth methods. Remove Universal Auth from identities that should only log in via OIDC; otherwise the client-secret path stays open.
| Where the code runs | Auth method | Long-lived secret? |
|---|---|---|
| Vercel Functions | OIDC Auth with Vercel's OIDC token | None |
| GitHub Actions | OIDC Auth (method: oidc) | None |
| AWS Lambda / EC2 | AWS IAM Auth (SDK awsIamAuth.login) | None |
| Kubernetes | Kubernetes Auth (Agent / Operator) | None |
| Anything else (Netlify, Render, a laptop) | Universal Auth (client ID + client secret) | Yes, so rotate it |
Universal Auth defaults (from the Universal Auth docs):
- Access-token TTL and max TTL are 2,592,000 s (30 days).
- Client secrets never expire (TTL
0) unless you set a TTL. - Logins lock out after 3 failures, for 5 min.
- On Cloud, restricting client secrets to trusted IPs is a Pro-tier feature.
Secret zero: set an Access Token Period to get a renewable, non-expiring token, and
give the client secret Max Uses = 1. The workload logs in once, then calls
POST /api/v1/auth/universal-auth/renew (SDK: client.auth().universalAuth.renew()) before
each period ends.
Bootstrap credentials (Universal Auth only)
These two values are the only ones that stay outside Infisical. Keep them in Hazina locally and in the platform's encrypted env store in production:
INFISICAL_CLIENT_ID=your-machine-identity-client-id
INFISICAL_CLIENT_SECRET=your-machine-identity-client-secretNon-secret settings go in plain config:
| Variable | Example | Notes |
|---|---|---|
INFISICAL_SITE_URL | https://app.infisical.com | US Cloud default. EU Cloud: https://eu.infisical.com. Self-hosted: your URL |
INFISICAL_PROJECT_ID | <project-uuid> | The CLI and SDK require it when you authenticate as a machine identity |
INFISICAL_ENV | dev | staging | prod | Environment slug; match the slugs your project uses |
INFISICAL_IDENTITY_ID | <machine-identity-uuid> | OIDC Auth only (Vercel / GitHub). Not a secret |
2. SDK: fetch secrets at runtime (Node)
npm install @infisical/sdk@5.0.2 # v5 requires Node.js 20+; 4.0.0 is the oldest supported lineimport { InfisicalSDK } from "@infisical/sdk";
// Defaults to https://app.infisical.com. Pass { siteUrl } for EU Cloud or self-hosted.
const client = new InfisicalSDK({ siteUrl: process.env.INFISICAL_SITE_URL });
await client.auth().universalAuth.login({
clientId: process.env.INFISICAL_CLIENT_ID!,
clientSecret: process.env.INFISICAL_CLIENT_SECRET!,
});
const secret = await client.secrets().getSecret({
secretName: "STRIPE_SECRET_KEY",
projectId: process.env.INFISICAL_PROJECT_ID!,
environment: "prod",
secretPath: "/payments",
expandSecretReferences: true,
});
// Use secret.secretValue. Never log it.SDK v5 facts, checked against the 5.0.2 type declarations:
- Clients:
auth(),secrets(),dynamicSecrets(),projects(),environments(),folders(),kms(). - The only built-in auth methods are
universalAuthandawsIamAuth. For OIDC (Vercel, GitHub), call the REST login yourself and pass the token toclient.auth().accessToken(token)(see §3). listSecrets({ projectId, environment, secretPath?, recursive?, includeImports?, expandSecretReferences?, viewSecretValue?, tagSlugs?, attachToProcessEnv? }).attachToProcessEnv: truecopies every secret intoprocess.env.listSecretsWithImports(...)returns a flatSecret[]with imports merged in.viewSecretValuedefaults totrue. Withfalse,secretValuecomes back as<hidden-by-infisical>.getSecretthrows on a missing secret (HTTP 404). Let that crash startup instead of running withundefined.
Full helper: examples/fetch-secrets.ts.
3. OIDC from Vercel: no client secret at all
Vercel signs a short-lived OIDC JWT for each deployment. Infisical checks it against Vercel's discovery document and returns an access token. Nothing long-lived is stored.
Set up the identity under Authentication → OIDC Auth:
| Field | Value (team issuer mode) |
|---|---|
| OIDC Discovery URL | https://oidc.vercel.com/<team-slug> |
| Issuer | https://oidc.vercel.com/<team-slug> |
| Subject | owner:<team-slug>:project:<project-name>:environment:production |
| Audiences | https://vercel.com/<team-slug> |
- In global issuer mode, use
https://oidc.vercel.comfor both the discovery URL and the issuer. - Vercel's
environmentclaim isdevelopment,preview,production, or a custom environment slug. Use one identity per Vercel environment. - Pin the subject exactly. Infisical's glob treats
*as**, so*also matches:and/. - Renaming the Vercel team or project changes the claims and breaks the trust.
In the function, use getVercelOidcToken() from @vercel/oidc 4.x:
- It reads the
x-vercel-oidc-tokenrequest header first, then the file atVERCEL_OIDC_TOKEN_FILE, then theVERCEL_OIDC_TOKENenv var. - Call it inside the request handler, not at module scope.
- Don't cache the JWT. Function tokens last 2 h (preview/production); build tokens last 1 h.
import { getVercelOidcToken } from "@vercel/oidc";
import { InfisicalSDK } from "@infisical/sdk";
const siteUrl = process.env.INFISICAL_SITE_URL ?? "https://app.infisical.com";
export async function infisicalFromVercelOidc(): Promise<InfisicalSDK> {
const jwt = await getVercelOidcToken();
const res = await fetch(`${siteUrl}/api/v1/auth/oidc-auth/login`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ identityId: process.env.INFISICAL_IDENTITY_ID, jwt }),
});
if (!res.ok) throw new Error(`Infisical OIDC login failed: HTTP ${res.status}`);
const { accessToken } = (await res.json()) as { accessToken: string };
return new InfisicalSDK({ siteUrl }).auth().accessToken(accessToken);
}Full version with token caching: examples/vercel-oidc-auth.ts.
Simpler option: if the app only needs values as env vars, skip runtime fetching and use a Vercel Secret Sync (§6). Reach for OIDC + SDK when you need dynamic-secret leases, KMS, or secrets that change without a redeploy.
4. CLI: local dev, export, scanning
Install with npm install -g @infisical/cli, brew install infisical/get-cli/infisical,
winget install infisical, or scoop install infisical. The Linux packages moved to
artifacts-cli.infisical.com. Cloudsmith stopped serving them on 2026-09-16, and a stale
apt source now makes apt-get update fail for every package on the machine.
Changes in the CLI 0.44 line that can break existing scripts:
- Secrets commands now live under
infisical sm:sm run,sm export,sm secrets,sm dynamic-secrets,sm agent-proxy, andsm projects. CLI 0.43.145 and earlier only understand the old top-level forms (infisical run). Upgrade the CLI everywhere before you switch scripts. - Project config moved from
.infisical.jsonto.infisical.yaml, which needs CLI 0.43.145 or later. From 0.44.3, the CLI writes the YAML file for you the first time it reads the JSON one. Commit.infisical.yamland delete.infisical.json. - Service tokens are deprecated. Use machine identities instead.
infisical sshwas removed. SSH access moved into PAM (infisical pam access).
infisical login # browser; falls back to terminal prompts
infisical init # writes .infisical.yaml (project id only)
infisical sm run -- npm run dev # dev env by default
infisical sm run --env=prod --path=/shared --path=/backend -- node server.js # last --path wins
infisical sm run --watch -- npm run dev # restart when secrets change
# Machine identity (CI / scripts): --projectId is REQUIRED
export INFISICAL_TOKEN=$(infisical login --method=universal-auth \
--client-id="$INFISICAL_CLIENT_ID" --client-secret="$INFISICAL_CLIENT_SECRET" --silent --plain)
infisical sm run --projectId="$INFISICAL_PROJECT_ID" --env=prod -- npm start
eval "$(infisical sm export --format=dotenv-eval)" # safe-quoted shell export
infisical scan # code + git history; exits 1 on findings
infisical scan install --pre-commit-hookPatterns: examples/infisical-run.sh. Cheatsheet:
reference/cli-cheatsheet.md.
5. CI/CD: GitHub Actions with OIDC
Prefer OIDC: GitHub mints a JWT for each job, and Infisical exchanges it for an access token. No client secret lives in GitHub.
Configure the identity's OIDC Auth:
- Discovery URL and issuer:
https://token.actions.githubusercontent.com. - Audience:
https://github.com/<owner>, unless you setoidc-audience. - Subject: for example
repo:<owner>/<repo>:environment:production.
New GitHub subject format: on GitHub.com, repos created after 2026-07-15 use immutable subjects that include numeric IDs, for example
repo:octocat@583231/example-repo@1296269:ref:refs/heads/main. Decode a real token withgithub/actions-oidc-debuggerbefore you set the subject.
# .github/workflows/deploy.yml
permissions:
id-token: write # required to request the OIDC JWT
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v4
- uses: Infisical/secrets-action@v1.0.18
with:
method: "oidc"
identity-id: ${{ vars.INFISICAL_IDENTITY_ID }} # not a secret
project-slug: "your-project-slug" # v1.0.18 also accepts project-id
env-slug: "prod"
secret-path: "/"
# domain: "https://eu.infisical.com" # EU Cloud or self-hosted
- run: npm run deploy # secrets are now env varsAction inputs, from the docs:
| Input | Default | Notes |
|---|---|---|
method | universal | Or oidc, aws-iam |
project-slug, env-slug | — | Required |
identity-id | — | Required for oidc and aws-iam |
client-id, client-secret | — | Required for universal |
oidc-audience | — | Custom aud claim |
secret-path | / | |
recursive | false | Include subfolders |
include-imports | true | |
export-type | env | Or file |
file-output-path | /.env | Used when export-type is file |
domain | https://app.infisical.com | |
extra-headers | — | For instances behind a header-based firewall |
Release v1.0.17 added secret-name (fetch a single secret), and v1.0.18 added project-id.
Full workflow: examples/github-actions-oidc.yml.
6. Secret Syncs: push to Vercel and GitHub
A Secret Sync combines an App Connection (credentials for the destination), a source (project environment + path), a destination, and options. With Auto-Sync on, changes propagate automatically.
- Vercel Sync: pick the Vercel app and environment, and optionally a preview branch.
The initial sync behavior is one of Overwrite Destination, Import (prioritize
Infisical), or Import (prioritize Vercel). Vercel's sensitive env vars can't be
imported, because their values are hidden. API:
POST /api/v1/secret-syncs/vercel. - GitHub Sync: the scope is Organization, Repository, or Repository Environment. GitHub can't export secret values, so overwrite is the only initial behavior.
- Always set a Key Schema, such as
{{secretKey}}orINF_{{secretKey}}while you migrate, so Infisical only touches the keys it owns. - Turn on Disable Secret Deletion if other tools (or Hazina's push) also write to the destination.
- The sync is the source of truth. Edits made directly in Vercel or GitHub get overwritten on the next sync.
- "Include secrets from all subfolders" flattens the paths, and duplicate key names across subfolders make the sync fail.
Plan limits: 10 syncs on Free, 25 on Pro, 50 on Advanced, unlimited on Enterprise.
7. Secret rotation and dynamic secrets
Rotation replaces a stored credential on an interval. Most providers are dual-phase: two credential sets overlap (active → inactive → revoked), so there's no downtime. Each rotation needs an App Connection with permission to create and revoke keys.
Rotation providers relevant to codeAmani:
- Stripe API Key: mints restricted
rk_...keys, neversk_..., and never touches your original key. - Supabase API Key, OpenAI, OpenRouter.
- Cloudflare API Token and Cloudflare R2 Access Key.
- PostgreSQL, MySQL, Redis, MongoDB.
- Auth0, Okta, AWS IAM.
Dynamic secrets generate a fresh credential for each lease, with a TTL, and revoke it when the lease ends. Supported targets include PostgreSQL, MySQL, Redis, MongoDB/Atlas, AWS/GCP IAM, Kubernetes, GitHub, SSH, and TOTP. To lease from the SDK:
const { lease } = await client.dynamicSecrets().leases.create({
dynamicSecretName: "neon-readonly",
projectSlug: "your-project-slug",
environmentSlug: "prod",
ttl: "15m", // vercel/ms string; defaults to the secret's default TTL
});
// lease.data holds the credentials; lease.expiresAt tells you when to renew.
await client.dynamicSecrets().leases.renew(lease.id, {
projectSlug: "your-project-slug", environmentSlug: "prod", ttl: "15m",
});Plan gate: on Cloud, full rotation and dynamic secrets need the Advanced plan ($40/identity/mo, billed annually). Pro only rotates public databases and has no dynamic secrets. Self-hosted instances need an Enterprise licence for these features.
Example: examples/leases-and-kms.ts.
8. Infisical Agent (token renewal + file injection)
Use the Agent on VMs and containers where you can't change the app code. Run
infisical agent --config agent.yaml. The Agent:
- authenticates with universal-auth, kubernetes, azure, gcp-id-token, gcp-iam, or aws-iam;
- keeps the access token renewed and writes it into sinks;
- renders templates to files, using
listSecrets,listSecretsByProjectSlug,getSecretByName, anddynamicSecret; - can run a command when values change (
config.execute.command); - can revoke leases and tokens on shutdown (
revoke-credentials-on-shutdown).
Sample config: examples/agent-config.yaml.
Two similarly named features are different things:
- The Agent Proxy (
infisical sm agent-proxy) is a caching proxy for secret reads. - Agent Vault (
infisical agent-vault run -- <cmd>, aliasav) is a separate product. It's an HTTPS forward proxy that attaches real credentials to an AI agent's outbound calls, so the agent never holds the token. It has guides for Claude Code, Codex, and OpenCode, and it's billed per brokered request.
9. KMS and PKI
- KMS: keys live in a KMS project and never leave Infisical. It supports
encrypt/decrypt, sign/verify, MAC, key rotation, and import/export, through the API, SDK,
KMIP, Kubernetes encryption-at-rest, and Sigstore Cosign. The SDK takes base64 input:
client.kms().encryption().encrypt({ keyId, plaintext: b64 })returns the ciphertext as a string. Use it to envelope-encrypt PII columns instead of holding the key in the app. - Certificate Management (PKI): internal root and intermediate CAs; external CAs (Let's Encrypt, DigiCert, AWS Private CA, ADCS); certificate applications, policies, and profiles; ACME/EST/SCEP enrollment; certificate syncs; discovery; alerts; and code signing. If you set up PKI before applications existed, follow the migration guide. The Free tier allows up to 2 internal CAs and 10 active SANs.
10. MCP servers: setup and troubleshooting
Infisical has two MCP servers. Don't mix them up:
| Server | Transport | Auth | Use |
|---|---|---|---|
Docs MCP https://infisical.com/docs/mcp | Remote HTTP | None | Search and read the current docs |
Infisical MCP @infisical/mcp 0.0.24 | Local stdio (npx) | Machine identity | Manage secrets, projects, environments, folders |
claude mcp add --transport http infisical-docs https://infisical.com/docs/mcp@infisical/mcp reads these env vars:
INFISICAL_AUTH_METHOD:universal-auth(default) oraccess-token.INFISICAL_UNIVERSAL_AUTH_CLIENT_IDandINFISICAL_UNIVERSAL_AUTH_CLIENT_SECRET, orINFISICAL_TOKEN.INFISICAL_HOST_URL.
It exposes 10 tools: list-secrets, get-secret, create-secret, update-secret,
delete-secret, list-projects, create-project, create-environment, create-folder, and
invite-members-to-project.
Lock it down: set INFISICAL_ENABLED_TOOLS=list-projects,list-secrets,get-secret and
INFISICAL_MASK_SECRET_VALUES=true, so secret values never enter the model's context. Back it
with a read-only identity scoped to one project.
CONNECT_TIMEOUT after 30000 ms (the error the codeAmani session hit on 2026-10-20) has
these usual causes:
- Cold
npx -ydownload. The first run downloads the package and its dependencies, which can take longer than Claude Code's 30 s connect window. Pre-install it (npm i -g @infisical/mcp@0.0.24) and point the config atnode <npm-root -g>/@infisical/mcp/dist/index.js. Or startclaudewithMCP_TIMEOUT=60000to widen the window. - Windows +
npx. A barenpxcommand can hang on Windows. Use"command": "cmd", "args": ["/c", "npx", "-y", "@infisical/mcp@0.0.24"], or thenodepath above. - Missing env vars fail fast; they don't time out. The server validates its env with zod at startup and exits, which shows up as connection closed. Login is lazy (it happens on the first tool call), so a bad client secret shows up as a tool error, not a connect failure.
- Pin the version and skip the global bin. The global bin is named
mcp, which can collide with other packages, so prefer the explicitnode …/dist/index.jspath. - Test outside Claude: run
npx @modelcontextprotocol/inspector node <path>/dist/index.jswith the env vars set.
Full walkthrough: reference/mcp-setup.md.
11. Pricing (Secrets Management, checked 2026-10-20)
| Plan | Price | Identities | Envs / project | Syncs | Rotation | Dynamic | Audit log |
|---|---|---|---|---|---|---|---|
| Free | $0 | 5 (human + machine) | 3 | 10 | No | No | n/a |
| Pro | $20/identity/mo annual · $23 monthly | Unlimited | 6 | 25 | Public DBs only | No | 30 days |
| Advanced | $40/identity/mo annual · $46 monthly | Unlimited | 12 | 50 | Yes | Yes | 90 days |
| Enterprise | Custom (annual) | Unlimited | Unlimited | Unlimited | Yes | Yes | Custom |
Machine identities count as identities, so a project with 3 developers and 3 workload identities already exceeds Free's limit of 5. Paid plans include a 30-day trial.
Other products are priced separately:
- PAM: Pro is $20/user/mo.
- PKI: Free tier, then Enterprise.
- Agent Vault: Pro includes 5,000 requests/mo, then $2 per 1,000.
12. Self-hosting
The MIT-licensed core is free to self-host. Enterprise features (SSO enforcement, gateways, rotation and dynamic secrets, HSM) need a licence.
- Deploy options: Docker (single container), Docker Compose (with Postgres and Redis), the
Helm chart, Linux packages, AWS (ECS Fargate + RDS + ElastiCache), and GCP (GKE + Cloud SQL
- Memorystore).
- Minimum env:
ENCRYPTION_KEY,AUTH_SECRET,DB_CONNECTION_URI,REDIS_URL,SITE_URL. - Image:
infisical/infisical:<version>. Pin a version, for examplev0.166.8. - Point every client at your instance: SDK
siteUrl, CLI--domain(orgeneral.domainin.infisical.yaml), the action'sdomain, and the MCP server'sINFISICAL_HOST_URL.
For EU data residency without self-hosting, use EU Cloud at https://eu.infisical.com.
codeAmani notes
- Secret Syncs first, SDK second. For Vercel apps, a Vercel Sync with a Key Schema is the default: no cold-start fetch and no bootstrap secret. Use the SDK (via Vercel OIDC) only for leases, KMS, or values that must change without a redeploy.
- Hazina vs Infisical: Hazina holds dev-machine credentials, including Infisical's
bootstrap pair. Infisical holds deployed secrets. Never let both Hazina's
push --provider verceland an Infisical Vercel Sync write the same keys. - Server-side only. The SDK, client secrets, and access tokens never reach the browser.
NEXT_PUBLIC_*values aren't secret, so never store real secrets under that prefix. - Payments: Stripe is the default. Infisical's Stripe API Key rotation issues
restricted keys, so grant only the permissions the app uses. Daraja/M-Pesa credentials
(consumer key/secret, passkey) go under
/payments/mpesa, only for Kenya-targeted projects. Infisical has no Daraja rotation, so rotate those manually in the Safaricom portal. - AI keys: Anthropic (primary) and OpenAI (secondary) keys live under
/ai. Infisical can rotate OpenAI and OpenRouter keys but not Anthropic keys, so rotate Anthropic keys manually. - Least privilege: one identity per app per environment, with a read-only project role scoped to the paths it reads. Remove Universal Auth from OIDC-only identities.
- Security: run
infisical scan(or gitleaks, per the secret-hygiene gate) before every push and deploy. LogsecretKey, neversecretValue. SeeSECURITY.md. - Compliance: US Cloud is the default for US-first projects. For Kenya-targeted projects
with KDPA 2019 data-residency needs, self-host or use EU Cloud. See
COMPLIANCE_GUIDE.md. - Cost watch: the Free tier's 5-identity cap counts machine identities. Budget for Pro ($20/identity) once a project has CI, prod, and preview identities. Needing rotation or dynamic secrets moves you to Advanced.