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
docs(pam): add view credentials documentation (#6009)
Saif Ur Rahman36616fb4e7a4
diff --git a/docs/docs.json b/docs/docs.jsonindex fe8f993470..81dc2f9a46 100644--- a/docs/docs.json+++ b/docs/docs.json@@ -899,6 +899,7 @@"documentation/platform/pam/product-reference/session-recording","documentation/platform/pam/product-reference/ai-session-insights","documentation/platform/pam/product-reference/credential-rotation",+ "documentation/platform/pam/product-reference/view-credentials",{"group": "Web Access","pages": [diff --git a/docs/documentation/platform/pam/product-reference/view-credentials.mdx b/docs/documentation/platform/pam/product-reference/view-credentials.mdxnew file mode 100644index 0000000000..066d35ec95--- /dev/null+++ b/docs/documentation/platform/pam/product-reference/view-credentials.mdx@@ -0,0 +1,28 @@+---+title: "View Credentials"+sidebarTitle: "View Credentials"+description: "View the current password or private key for a PAM account directly from the Infisical dashboard."+---++When Infisical manages and [rotates](/documentation/platform/pam/product-reference/credential-rotation) an account's credentials, it becomes the source of truth for the current password. You can reveal the current password or private key from the account details page. Common use cases include:++- Retrieving the current password managed by Infisical as the source of truth, e.g. after a rotation.+- Entering credentials directly into systems or tooling that don't connect through the Gateway.++On the account details page, public fields like **username** are always visible. To reveal sensitive fields like **password** or **private key**, click the **View Credentials** button.++++++<Info>+ The button only appears for account types that have sensitive fields. Accounts like **SSH (certificate auth)** and **AWS IAM** don't have hidden credentials beyond what is already shown.+</Info>++## Access Controls++Revealing credentials is gated by a dedicated permission and optionally by MFA:++- **Permission**: Requires the **Read Credentials** permission on PAM accounts. Without this permission, users with **Read** can still view account details and users with **Access** can still connect to resources through Infisical, but neither can see the raw password or private key. Add **Read Credentials** to the appropriate role in your project's role settings.+- **MFA**: Accounts with MFA enabled require users to complete MFA verification before credentials are revealed.+- **Audit Log**: Every reveal is recorded as a `pam-account-read-credentials` event with the account ID, account name, resource ID, and resource type.diff --git a/docs/images/pam/product-reference/view-credentials/view-credentials-button.png b/docs/images/pam/product-reference/view-credentials/view-credentials-button.pngnew file mode 100644index 0000000000..e8c0081e38Binary files /dev/null and b/docs/images/pam/product-reference/view-credentials/view-credentials-button.png differdiff --git a/docs/images/pam/product-reference/view-credentials/view-credentials-revealed.png b/docs/images/pam/product-reference/view-credentials/view-credentials-revealed.pngnew file mode 100644index 0000000000..1b88bd176aBinary files /dev/null and b/docs/images/pam/product-reference/view-credentials/view-credentials-revealed.png differdiff --git a/docs/internals/permissions/project-permissions.mdx b/docs/internals/permissions/project-permissions.mdxindex 6afdcbd0cb..a225341a55 100644--- a/docs/internals/permissions/project-permissions.mdx+++ b/docs/internals/permissions/project-permissions.mdx@@ -442,11 +442,12 @@ Supports conditions and permission inversion.| Action | Description | Condition keys || ------------------ | -------------------------------------------------------- | ----- |-| `read` | View PAM accounts the identity is allowed to use | `resourceName`, `accountName`, `resourceType`, `metadata` |-| `access` | Request or use access to PAM accounts | `resourceName`, `accountName`, `resourceType`, `metadata` |-| `create` | Create new PAM accounts | `resourceName`, `accountName`, `resourceType`, `metadata` |-| `edit` | Modify existing PAM accounts | `resourceName`, `accountName`, `resourceType`, `metadata` |-| `delete` | Remove PAM accounts | `resourceName`, `accountName`, `resourceType`, `metadata` |+| `read` | View PAM accounts the identity is allowed to use | `resourceName`, `accountName`, `resourceType`, `metadata` |+| `access` | Request or use access to PAM accounts | `resourceName`, `accountName`, `resourceType`, `metadata` |+| `create` | Create new PAM accounts | `resourceName`, `accountName`, `resourceType`, `metadata` |+| `edit` | Modify existing PAM accounts | `resourceName`, `accountName`, `resourceType`, `metadata` |+| `delete` | Remove PAM accounts | `resourceName`, `accountName`, `resourceType`, `metadata` |+| `read-credentials` | View sensitive account credentials like passwords and private keys | `resourceName`, `accountName`, `resourceType`, `metadata` |## Condition Operatorsdiff --git a/frontend/src/pages/project/RoleDetailsBySlugPage/components/ProjectRoleModifySection.utils.tsx b/frontend/src/pages/project/RoleDetailsBySlugPage/components/ProjectRoleModifySection.utils.tsxindex 74f754f064..2a54118e87 100644--- a/frontend/src/pages/project/RoleDetailsBySlugPage/components/ProjectRoleModifySection.utils.tsx+++ b/frontend/src/pages/project/RoleDetailsBySlugPage/components/ProjectRoleModifySection.utils.tsx@@ -3142,9 +3142,9 @@ export const PROJECT_PERMISSION_OBJECT: TProjectPermissionObject = {description: "Delete PAM accounts"},{- label: "View Credentials",+ label: "Read Credentials",value: ProjectPermissionPamAccountActions.ReadCredentials,- description: "View full account credentials and connection details"+ description: "View sensitive account credentials like passwords and private keys"}]},