Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
fix: addressing pr feedback
IgorHortaeb8d01a0c260
diff --git a/docs/documentation/platform/secret-rotation/auth0-client-secret.mdx b/docs/documentation/platform/secret-rotation/auth0-client-secret.mdxindex fc2c47284b..a379d3e660 100644--- a/docs/documentation/platform/secret-rotation/auth0-client-secret.mdx+++ b/docs/documentation/platform/secret-rotation/auth0-client-secret.mdx@@ -4,9 +4,9 @@ description: "Learn how to automatically rotate Auth0 Client Secrets."---<Note>- **Rotation Type: [Single-Instance](/documentation/platform/secret-rotation/overview#single-instance-rotation)**+ **Rotation Type: [Single-Phase](/documentation/platform/secret-rotation/overview#single-phase-rotation)**- This rotation updates a single credential set in place. Old credentials become invalid immediately upon rotation.+ This rotation updates a single credential set in place. Old credentials become invalid immediately upon rotation. This means that clients using the previous credentials will fail to authenticate until they retrieve the new credentials.This is a limitation of the Auth0 platform and cannot be rectified by Infisical.</Note>diff --git a/docs/documentation/platform/secret-rotation/ldap-password.mdx b/docs/documentation/platform/secret-rotation/ldap-password.mdxindex 2144623a6d..711c1a144d 100644--- a/docs/documentation/platform/secret-rotation/ldap-password.mdx+++ b/docs/documentation/platform/secret-rotation/ldap-password.mdx@@ -4,9 +4,9 @@ description: "Learn how to automatically rotate LDAP passwords."---<Note>- **Rotation Type: [Single-Instance](/documentation/platform/secret-rotation/overview#single-instance-rotation)**+ **Rotation Type: [Single-Phase](/documentation/platform/secret-rotation/overview#single-phase-rotation)**- This rotation updates a single credential set in place. Old credentials become invalid immediately upon rotation.+ This rotation updates a single credential set in place. Old credentials become invalid immediately upon rotation. This means that clients using the previous credentials will fail to authenticate until they retrieve the new credentials.This is a limitation of the LDAP provider and cannot be rectified by Infisical.</Note>diff --git a/docs/documentation/platform/secret-rotation/overview.mdx b/docs/documentation/platform/secret-rotation/overview.mdxindex e58603a01f..b45d48f4db 100644--- a/docs/documentation/platform/secret-rotation/overview.mdx+++ b/docs/documentation/platform/secret-rotation/overview.mdx@@ -15,140 +15,109 @@ Examples of rotated secrets include:## How Rotation Works-Infisical supports two rotation models: **Dual-Phase** (used by most providers) and **Single-Instance**. This section describes dual-phase rotation, the recommended approach that ensures zero downtime. See [Single-Instance Rotation](#single-instance-rotation) for providers with limitations.+Infisical supports two rotation models: **Dual-Phase** (used by most providers) and **Single-Phase**. Select a tab below to learn how each model works.-Dual-phase rotation systematically replaces secrets at regular intervals while ensuring zero downtime for your applications. This overlapping lifecycle approach maintains continuous availability while enhancing your security posture.+<Tabs>+ <Tab title="Dual-Phase">+ Dual-phase rotation is the recommended approach that ensures zero downtime for your applications. This model systematically replaces secrets at regular intervals using an overlapping lifecycle that maintains continuous availability while enhancing your security posture.-### Visual Timeline+ ### Visual Timeline-```mermaid-gantt- title Credential Lifecycle (Interval = 30 days)- dateFormat YYYY-MM-DD- axisFormat %b %d-- section Credentials 1- Active :active, a1, 2023-01-01, 30d- Inactive :done, i1, after a1, 30d- Revoked :crit, r1, after i1, 30d-- section Credentials 2- Active :active, a2, 2023-01-31, 30d- Inactive :done, i2, after a2, 30d- Revoked :crit, r2, after i2, 30d-- section Credentials 3- Active :active, a3, 2023-03-02, 30d- Inactive :done, i3, after a3, 30d- Revoked :crit, r3, after i3, 30d-```--### Credential States--Each set of credentials transitions through three distinct states:--- **Active**: The primary credentials that will be used for new connections-- **Inactive**: These credentials are still valid but are no longer issued for new connections- <Note>- Some rotation providers utilize a single credential set due to technical constraints. As a result, inactive credentials for these providers will immediately become invalid once rotated.-- To avoid service interruptions, Infisical recommends manually rotating these credentials to prevent downtime.- </Note>-- **Revoked**: Permanently invalidated and deleted from the system--### Rotation Cycle Example (30-Day Interval)--Using a __30-Day__ rotation interval as an example, here's how the process unfolds:--1. __Day 0__- - `Credential set 1` is issued and set to **Active**- - Applications begin using this set for authentication--2. __Day 30__- - `Credential set 2` is issued and set to **Active**- - `Credential set 1` transitions to **Inactive** but remains valid- - New connections utilize set 2 while existing connections with set 1 continue to work-- <Note>- This overlapping validity period ensures that at any point during the active period of a credential set, you are guaranteed that retrieved credentials will be valid for the specified rotation period.- </Note>--3. __Day 60__- - `Credential set 3` is issued and set to **Active**- - `Credential set 2` transitions to **Inactive** but remains valid- - `Credential set 1` is **Revoked** and securely deleted- - By now, all applications should have transitioned to using set 2 or 3--4. __Day 90__- - `Credential set 4` is issued and set to **Active**- - `Credential set 3` transitions to **Inactive** but remains valid- - `Credential set 2` is **Revoked** and securely deleted- - The cycle continues...--### Benefits of This Approach--- **Zero Downtime**: Applications always have valid credentials-- **Grace Period**: The inactive period gives applications time to update to new credentials-- **Reduced Risk**: Credentials are regularly cycled, limiting the impact of potential compromise-- **Predictable Schedule**: Makes credential management more systematic and easier to automate--### Implementation Considerations--- Choose a rotation interval appropriate for your security requirements and operational needs-- Ensure your applications can handle credential updates gracefully-- Monitor for applications still using credentials nearing revocation--## Single-Instance Rotation--Some providers have technical limitations that prevent dual-phase rotation. These providers use **single-instance rotation**, which updates a single credential in place. When rotation occurs, old credentials become invalid immediately there is no overlap period.--<Warning>-Single-instance rotation may cause brief service interruptions. For these providers, we recommend disabling auto-rotation and performing manual rotations during scheduled maintenance windows.-</Warning>--## Provider Rotation Types--| Provider | Rotation Type | Zero-Downtime |-|----------|---------------|---------------|-| [PostgreSQL Credentials](./postgres-credentials) | Dual-Phase | Yes |-| [Microsoft SQL Server Credentials](./mssql-credentials) | Dual-Phase | Yes |-| [MySQL Credentials](./mysql-credentials) | Dual-Phase | Yes |-| [OracleDB Credentials](./oracledb-credentials) | Dual-Phase | Yes |-| [MongoDB Credentials](./mongodb-credentials) | Dual-Phase | Yes |-| [Redis Credentials](./redis-credentials) | Dual-Phase | Yes |-| [AWS IAM User Secret](./aws-iam-user-secret) | Dual-Phase | Yes |-| [Okta Client Secret](./okta-client-secret) | Dual-Phase | Yes |-| [Azure Client Secret](./azure-client-secret) | Dual-Phase | Yes |-| [Databricks Service Principal](./databricks-service-principal-secret) | Dual-Phase | Yes |-| [DBT Service Token](./dbt-service-token) | Dual-Phase | Yes |-| [OpenRouter API Key](./openrouter-api-key) | Dual-Phase | Yes |-| [Auth0 Client Secret](./auth0-client-secret) | Single-Instance | No |-| [LDAP Password](./ldap-password) | Single-Instance | No |-| [Unix/Linux Local Account](./unix-linux-local-account) | Single-Instance | No |-| [Windows Local Account](./windows-local-account) | Single-Instance | No |--## FAQ--<AccordionGroup>- <Accordion title="What is the difference between single-instance and dual-phase rotation?">- **Dual-Phase Rotation:**- - Maintains two credential sets that cycle between active and inactive states- - New credentials are created before old ones are revoked- - Provides an overlap period where both credential sets are valid- - Enables zero-downtime rotation-- **Single-Instance Rotation:**- - Rotates a single credential in place- - Old credentials become invalid immediately upon rotation- - May cause brief service interruptions during rotation- - Recommended to use manual rotation during maintenance windows- </Accordion>- <Accordion title="Why do certain rotations only use a single credential set?">- Some credential providers have limitations that affect rotation patterns:+ ```mermaid+ gantt+ title Credential Lifecycle (Interval = 30 days)+ dateFormat YYYY-MM-DD+ axisFormat %b %d++ section Credentials 1+ Active :active, a1, 2023-01-01, 30d+ Inactive :done, i1, after a1, 30d+ Revoked :crit, r1, after i1, 30d++ section Credentials 2+ Active :active, a2, 2023-01-31, 30d+ Inactive :done, i2, after a2, 30d+ Revoked :crit, r2, after i2, 30d++ section Credentials 3+ Active :active, a3, 2023-03-02, 30d+ Inactive :done, i3, after a3, 30d+ Revoked :crit, r3, after i3, 30d+ ```++ ### Credential States++ Each set of credentials transitions through three distinct states:++ - **Active**: The primary credentials that will be used for new connections+ - **Inactive**: These credentials are still valid but are no longer issued for new connections+ - **Revoked**: Permanently invalidated and deleted from the system++ ### Rotation Cycle Example (30-Day Interval)++ Using a __30-Day__ rotation interval as an example, here's how the process unfolds:++ 1. __Day 0__+ - `Credential set 1` is issued and set to **Active**+ - Applications begin using this set for authentication++ 2. __Day 30__+ - `Credential set 2` is issued and set to **Active**+ - `Credential set 1` transitions to **Inactive** but remains valid+ - New connections utilize set 2 while existing connections with set 1 continue to work++ <Note>+ This overlapping validity period ensures that at any point during the active period of a credential set, you are guaranteed that retrieved credentials will be valid for the specified rotation period.+ </Note>++ 3. __Day 60__+ - `Credential set 3` is issued and set to **Active**+ - `Credential set 2` transitions to **Inactive** but remains valid+ - `Credential set 1` is **Revoked** and securely deleted+ - By now, all applications should have transitioned to using set 2 or 3++ 4. __Day 90__+ - `Credential set 4` is issued and set to **Active**+ - `Credential set 3` transitions to **Inactive** but remains valid+ - `Credential set 2` is **Revoked** and securely deleted+ - The cycle continues...++ ### Benefits++ - **Zero Downtime**: Applications always have valid credentials+ - **Grace Period**: The inactive period gives applications time to update to new credentials+ - **Reduced Risk**: Credentials are regularly cycled, limiting the impact of potential compromise+ - **Predictable Schedule**: Makes credential management more systematic and easier to automate++ ### Implementation Considerations++ - Choose a rotation interval appropriate for your security requirements and operational needs+ - Ensure your applications can handle credential updates gracefully+ - Monitor for applications still using credentials nearing revocation+ </Tab>+ <Tab title="Single-Phase">+ Some providers have technical limitations that prevent dual-phase rotation. These providers use **single-phase rotation**, which updates a single credential in place. When rotation occurs, old credentials become invalid immediately—there is no overlap period.++ This means that clients using the previous credentials will fail to authenticate until they retrieve the new credentials.++ <Warning>+ Single-phase rotation may cause brief service interruptions. For these providers, we recommend disabling auto-rotation and performing manual rotations during scheduled maintenance windows.+ </Warning>++ ### Why Single-Phase?++ Some credential providers have limitations that require single-phase rotation:- The third-party provider's API only supports managing one active credential set at a time- The specific use-case (such as personal login accounts) is inherently limited to a single active credential- In either scenario, when service continuity is critical, Infisical recommends disabling auto-rotation and performing manual credential rotation during scheduled maintenance windows.- </Accordion>-</AccordionGroup>+ ### Recommendations++ When using single-phase rotation with service continuity requirements:++ - **Disable auto-rotation** and perform manual rotations during scheduled maintenance windows+ - **Coordinate with dependent services** to ensure they can quickly retrieve new credentials+ - **Monitor authentication failures** after rotation to detect any services that failed to update+ </Tab>+</Tabs>+diff --git a/docs/documentation/platform/secret-rotation/unix-linux-local-account.mdx b/docs/documentation/platform/secret-rotation/unix-linux-local-account.mdxindex 3f1ca9cef6..00f45e8d88 100644--- a/docs/documentation/platform/secret-rotation/unix-linux-local-account.mdx+++ b/docs/documentation/platform/secret-rotation/unix-linux-local-account.mdx@@ -4,9 +4,9 @@ description: "Learn how to automatically rotate Unix/Linux local account passwor---<Note>- **Rotation Type: [Single-Instance](/documentation/platform/secret-rotation/overview#single-instance-rotation)**+ **Rotation Type: [Single-Phase](/documentation/platform/secret-rotation/overview#single-phase-rotation)**- This rotation updates a single credential set in place. Old credentials become invalid immediately upon rotation.+ This rotation updates a single credential set in place. Old credentials become invalid immediately upon rotation. This means that clients using the previous credentials will fail to authenticate until they retrieve the new credentials.This is a limitation of the SSH provider and cannot be rectified by Infisical.</Note>diff --git a/docs/documentation/platform/secret-rotation/windows-local-account.mdx b/docs/documentation/platform/secret-rotation/windows-local-account.mdxindex 2d57591572..fdbf034f19 100644--- a/docs/documentation/platform/secret-rotation/windows-local-account.mdx+++ b/docs/documentation/platform/secret-rotation/windows-local-account.mdx@@ -4,9 +4,9 @@ description: "Learn how to automatically rotate Windows local account passwords---<Note>- **Rotation Type: [Single-Instance](/documentation/platform/secret-rotation/overview#single-instance-rotation)**+ **Rotation Type: [Single-Phase](/documentation/platform/secret-rotation/overview#single-phase-rotation)**- This rotation updates a single credential set in place. Old credentials become invalid immediately upon rotation.+ This rotation updates a single credential set in place. Old credentials become invalid immediately upon rotation. This means that clients using the previous credentials will fail to authenticate until they retrieve the new credentials.This is a limitation of the rotation mechanism and cannot be rectified by Infisical.</Note>diff --git a/docs/snippets/RotationsBrowser.jsx b/docs/snippets/RotationsBrowser.jsxindex 77b35588c2..e48a450ccd 100644--- a/docs/snippets/RotationsBrowser.jsx+++ b/docs/snippets/RotationsBrowser.jsx@@ -14,6 +14,7 @@ export const RotationsBrowser = () => {description:"Learn how to automatically rotate AWS IAM user access keys.",category: "Cloud Providers",+ rotationType: "Dual-Phase",},{name: "Azure Client Secret",@@ -21,6 +22,7 @@ export const RotationsBrowser = () => {path: "/documentation/platform/secret-rotation/azure-client-secret",description: "Learn how to automatically rotate Azure client secrets.",category: "Cloud Providers",+ rotationType: "Dual-Phase",},{name: "Databricks Service Principal Secret",@@ -29,6 +31,7 @@ export const RotationsBrowser = () => {description:"Learn how to automatically rotate Databricks service principal OAuth secrets.",category: "Cloud Providers",+ rotationType: "Dual-Phase",},{name: "DBT Service Token",@@ -36,6 +39,7 @@ export const RotationsBrowser = () => {path: "/documentation/platform/secret-rotation/dbt-service-token",description: "Learn how to automatically rotate DBT service tokens.",category: "Data Analytics",+ rotationType: "Dual-Phase",},{name: "Auth0 Client Secret",@@ -43,6 +47,7 @@ export const RotationsBrowser = () => {path: "/documentation/platform/secret-rotation/auth0-client-secret",description: "Learn how to automatically rotate Auth0 client secrets.",category: "Identity & Auth",+ rotationType: "Single-Phase",},{name: "Okta Client Secret",@@ -50,6 +55,7 @@ export const RotationsBrowser = () => {path: "/documentation/platform/secret-rotation/okta-client-secret",description: "Learn how to automatically rotate Okta client secrets.",category: "Identity & Auth",+ rotationType: "Dual-Phase",},{name: "LDAP Password",@@ -57,6 +63,7 @@ export const RotationsBrowser = () => {path: "/documentation/platform/secret-rotation/ldap-password",description: "Learn how to automatically rotate LDAP user passwords.",category: "Identity & Auth",+ rotationType: "Single-Phase",},{name: "Unix/Linux Local Account",@@ -64,6 +71,7 @@ export const RotationsBrowser = () => {path: "/documentation/platform/secret-rotation/unix-linux-local-account",description: "Learn how to automatically rotate Unix/Linux local account passwords.",category: "Networking & DNS",+ rotationType: "Single-Phase",},{name: "MySQL",@@ -72,6 +80,7 @@ export const RotationsBrowser = () => {description:"Learn how to automatically rotate MySQL database credentials.",category: "Databases",+ rotationType: "Dual-Phase",},{name: "PostgreSQL",@@ -80,6 +89,7 @@ export const RotationsBrowser = () => {description:"Learn how to automatically rotate PostgreSQL database credentials.",category: "Databases",+ rotationType: "Dual-Phase",},{name: "Redis",@@ -88,6 +98,7 @@ export const RotationsBrowser = () => {description:"Learn how to automatically rotate Redis database credentials.",category: "Databases",+ rotationType: "Dual-Phase",},{name: "Microsoft SQL Server",@@ -96,6 +107,7 @@ export const RotationsBrowser = () => {description:"Learn how to automatically rotate Microsoft SQL Server credentials.",category: "Databases",+ rotationType: "Dual-Phase",},{name: "Oracle Database",@@ -104,6 +116,7 @@ export const RotationsBrowser = () => {description:"Learn how to automatically rotate Oracle Database credentials.",category: "Databases",+ rotationType: "Dual-Phase",},{name: "MongoDB Credentials",@@ -111,6 +124,7 @@ export const RotationsBrowser = () => {path: "/documentation/platform/secret-rotation/mongodb-credentials",description: "Learn how to automatically rotate MongoDB credentials.",category: "Databases",+ rotationType: "Dual-Phase",},{name: "Windows Local Account",@@ -118,6 +132,7 @@ export const RotationsBrowser = () => {path: "/documentation/platform/secret-rotation/windows-local-account",description: "Learn how to automatically rotate Windows local account passwords.",category: "Networking & DNS",+ rotationType: "Single-Phase",},{name: "OpenRouter API Key",@@ -126,6 +141,7 @@ export const RotationsBrowser = () => {description:"Learn how to automatically rotate OpenRouter API keys.",category: "AI & LLM",+ rotationType: "Dual-Phase",},].sort(function (a, b) {return a.name.toLowerCase().localeCompare(b.name.toLowerCase());@@ -227,9 +243,18 @@ export const RotationsBrowser = () => {<h3 className="text-base font-medium text-gray-900 leading-none m-0">{rotation.name}</h3>- <span className="ml-3 inline-flex items-center px-3 py-1 rounded-full text-xs font-medium bg-yellow-100 text-yellow-700 flex-shrink-0">- {rotation.category}- </span>+ <div className="ml-3 flex items-center gap-2 flex-shrink-0">+ <span className={`inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium ${+ rotation.rotationType === "Dual-Phase"+ ? "bg-green-100 text-green-700"+ : "bg-orange-100 text-orange-700"+ }`}>+ {rotation.rotationType}+ </span>+ <span className="inline-flex items-center px-3 py-1 rounded-full text-xs font-medium bg-yellow-100 text-yellow-700">+ {rotation.category}+ </span>+ </div></div><p className="text-sm text-gray-600 leading-relaxed">{rotation.description}