Skip to main content
skill CX Codex

infisical-dynamic-secrets — Claude Code skill: install guide

Guides the configuration of on-demand, ephemeral credentials across 30 Infisical providers. Useful when CI pipelines or developers need temporary database or cloud access.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add Infisical/ai-skills --skill infisical-dynamic-secrets -a claude-code
Open on GitHub

What infisical-dynamic-secrets does

This skill guides developers through configuring Infisical dynamic secrets for databases, cloud IAM, SSH certificates, and Kubernetes. Unlike secret rotation in infisical-secret-rotation, which updates an existing static credential on a schedule, dynamic secrets generate a fresh temporary credential for every lease request. The skill covers 30 supported services, including PostgreSQL, MySQL, Redis, AWS IAM, and GCP.

Infisical cannot bootstrap permissions by itself. You must provide an existing admin user or IAM role so the system can create and revoke temporary accounts. If the target database sits inside a private VPC, traffic must go through an Infisical Gateway, an Enterprise feature.

Keep expiration limits in mind. GCP service account tokens and Kubernetes tokens rely on signed JWTs, so revoking a lease in Infisical will not invalidate the token before its TTL ends. SSH certificates cannot be renewed either; you must request a new lease.

What it helps with

  • configure temporary database accounts for PostgreSQL or MySQL
  • issue short-lived AWS IAM or GCP tokens for CI jobs
  • set up signed SSH certificates instead of static keys
  • define lease durations and custom creation SQL statements

Example prompts for the agent

  • Help me configure Infisical dynamic secrets for a PostgreSQL database
  • How do I set up temporary AWS IAM credentials for CI builds with Infisical?
  • Walk me through generating short-lived SSH certificates using Infisical

How to install infisical-dynamic-secrets

1Skills CLI (Vercel)

npx skills add Infisical/ai-skills --skill infisical-dynamic-secrets -a claude-code

2Manually: put the files in place

~/.claude/skills/infisical-dynamic-secrets/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/infisical-dynamic-secrets/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about infisical-dynamic-secrets

How do I install infisical-dynamic-secrets in Claude Code?

Run npx skills add Infisical/ai-skills --skill infisical-dynamic-secrets -a claude-code. The file will be placed in ~/.claude/skills/infisical-dynamic-secrets/SKILL.md.

How do dynamic secrets differ from secret rotation?

Dynamic secrets create a fresh temporary credential for each request and delete it after the lease expires. Secret rotation changes an existing static credential on a schedule.

What is required before configuring dynamic secrets?

You must supply an existing database admin user or IAM role with account management permissions. Infisical relies on this account to provision and revoke leases.

Source text

SKILL.md · MIT
---
name: infisical-dynamic-secrets
description: "Guide for configuring Infisical Dynamic Secrets — on-demand, short-lived credentials for databases, cloud IAM, SSH, and Kubernetes. Covers all 30 providers including PostgreSQL, MySQL, MSSQL, Oracle, Redis, AWS ElastiCache, AWS MemoryDB, MongoDB, Elasticsearch, Couchbase, Milvus, AWS IAM, GCP IAM, Azure Entra ID, SSH certificates, Kubernetes service accounts, LDAP, GitHub, Tailscale, IBM API Connect, and TOTP. Use this skill when someone asks about: dynamic secrets, ephemeral database credentials, short-lived tokens, rotating database users, dynamic PostgreSQL/MySQL/Redis credentials, SSH certificates, temporary AWS IAM users, lease renewal, or 'how do I generate temporary credentials with Infisical'. For brand-new short-lived credentials created per request. Not for changing an existing credential on a schedule (infisical-secret-rotation), nor for recorded human/agent access without a credential (infisical-pam). Covers SSH certificates; TLS certificates are infisical-pki."
---
# Infisical Dynamic Secrets Guide

You are a setup assistant helping users configure Infisical Dynamic Secrets — on-demand, short-lived credentials that are unique per identity and automatically expire.

## Not this skill

The critical distinction is **dynamic secrets vs secret rotation**:

- **Dynamic secret** — Infisical *creates a brand-new short-lived credential* per lease. Every
  consumer gets a different one. Nothing exists until requested. **This skill.**
- **Secret rotation** — an *existing* credential you own is changed on a timer, at a stable secret
  path every consumer reads. `infisical-secret-rotation`.

"I want temporary credentials per CI job" is dynamic secrets. "Our Postgres password hasn't changed
in two years" is rotation.

| If the user wants... | Use |
|----------------------|-----|
| An existing credential rotated on a schedule | `infisical-secret-rotation` |
| A **human or AI agent** to reach a database with session recording, never seeing a credential | `infisical-pam` |
| Leases managed inside Kubernetes | `infisical-kubernetes-operator` |
| Dynamic credentials rendered to a file by the Agent | `infisical-agent` |
| To reach a database with no public endpoint | `infisical-gateway` |
| X.509/TLS certificates | `infisical-pki` — note SSH certificates *are* here, TLS ones are not |

## How to use this skill

Start by understanding what resource the user needs dynamic credentials for, then guide them through:

1. **Prerequisites** — What database user, IAM role, or service account needs to exist first
2. **Provider selection** — Choose the right dynamic secret type
3. **Configuration** — Host, port, credentials, TTL settings, creation statements
4. **Lease management** — How to generate, renew, and revoke leases
5. **Gateway setup** — If accessing private resources (databases behind VPNs/VPCs)

Read the relevant reference file(s) for the user's provider, then walk them through step by step.

## Reference files

| File | When to read |
|------|-------------|
| `references/overview.md` | User asks general questions about how dynamic secrets work, concepts, lease lifecycle, or which providers exist |
| `references/sql-databases.md` | User wants dynamic credentials for PostgreSQL, MySQL, MSSQL, Cassandra, Oracle, SAP ASE/HANA, Snowflake, Vertica, ClickHouse, or Azure SQL |
| `references/nosql-and-cache.md` | User wants dynamic credentials for Redis, AWS ElastiCache, AWS MemoryDB, MongoDB, MongoDB Atlas, Elasticsearch, Couchbase, RabbitMQ, or Milvus |
| `references/cloud-iam.md` | User wants dynamic AWS IAM users/credentials, GCP service account tokens, or Azure Entra ID credentials |
| `references/ssh-and-kubernetes.md` | User wants SSH certificates, Kubernetes service account tokens, LDAP, GitHub tokens, Tailscale keys, IBM API Connect, or TOTP |

## Guiding principles

- **Short TTLs for security.** Recommend the shortest practical TTL. Dynamic secrets are meant to be ephemeral — minutes to hours, not days.
- **Gateway for private networks.** If the database is in a VPC/private subnet, they need an Infisical Gateway deployed in the same network. This is an Enterprise feature.
- **Pre-existing admin user required.** The user must have a database admin user (or IAM role) that Infisical can use to create/revoke dynamic credentials. Infisical doesn't create this for them.
- **SQL statements matter.** For SQL databases, the default creation statements grant broad access. Recommend customizing them to follow least privilege (specific tables, read-only, etc.).
- **Some tokens can't be revoked.** GCP service account tokens and Kubernetes tokens are JWTs with baked-in expiration — revoking the lease in Infisical removes the record but the token stays valid until TTL expiry. Emphasize short TTLs.
- **SSH certificates can't be renewed.** The TTL is baked in at signing time. Users must create a new lease for a fresh certificate.
- **AWS STS has duration limits.** AssumeRole: max 1 hour. Access Key/IRSA: max 12 hours. Infisical auto-adjusts if exceeded.

© Infisical · MIT · Infisical/ai-skills

Similar skills

All skills for Security →

From the same set6

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor