Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

doc: updates after restructuring

Sheen Capadngan088e83510a0d
diff --git a/docs/docs.json b/docs/docs.json
index df99dcea67..407ead234f 100644
--- a/docs/docs.json
+++ b/docs/docs.json
@@ -817,6 +817,7 @@
{
"group": "Product Reference",
"pages": [
+ "documentation/platform/pam/product-reference/access-policies",
"documentation/platform/pam/product-reference/auditing",
"documentation/platform/pam/product-reference/session-recording",
"documentation/platform/pam/product-reference/credential-rotation"
diff --git a/docs/documentation/platform/pam/getting-started/accounts.mdx b/docs/documentation/platform/pam/getting-started/accounts.mdx
index 4ed0616f8f..8efab94e17 100644
--- a/docs/documentation/platform/pam/getting-started/accounts.mdx
+++ b/docs/documentation/platform/pam/getting-started/accounts.mdx
@@ -13,12 +13,12 @@ Accounts belong to Resources. A single Resource can have multiple Accounts assoc
For example, your database would normally have multiple accounts. You might have a superuser account for admins, a standard read/write account for applications, and a read-only account for reporting.
In PAM, these are represented as:
-- **Resource**: `Production Database` (PostgreSQL)
+- **Resource**: `production-database` (PostgreSQL)
- **Account 1**: `postgres` (Superuser)
- - **Account 2**: `app_user` (Read/Write)
+ - **Account 2**: `app-user` (Read/Write)
- **Account 3**: `analytics` (Read-only)
-When a user requests access in PAM, they request access to a specific **Account** on a **Resource**.
+When a user accesses a PAM account, they access a specific **Account** on a **Resource**. Users navigate to a resource, then select an account within it to gain access.
## Creating an Account
@@ -26,15 +26,11 @@ When a user requests access in PAM, they request access to a specific **Account*
**Prerequisite**: You must have at least one [Resource](/documentation/platform/pam/getting-started/resources) created before adding accounts.
</Info>
-To add an account, navigate to the **Accounts** tab in your PAM project and click **Add Account**.
+To add an account, navigate to the **Resources** tab in your PAM project, click into the resource you want to add an account to, and then click **Add Account**.
![Add Account Button](/images/pam/getting-started/accounts/add-account-button.png)
-Next, select the **Resource** that this account belongs to.
-
-![Select Resource](/images/pam/getting-started/accounts/select-resource.png)
-
-After selecting a resource, provide the credentials (username, password, etc.) for this account. The required fields vary depending on the resource type. For example, for a Linux server, you would enter the username and the corresponding password or SSH key.
+Provide the credentials (username, password, etc.) for this account. The required fields vary depending on the resource type. For example, for a Linux server, you would enter the username and the corresponding password or SSH key.
![Create Account](/images/pam/getting-started/accounts/create-account.png)
diff --git a/docs/documentation/platform/pam/getting-started/resources/aws-iam.mdx b/docs/documentation/platform/pam/getting-started/resources/aws-iam.mdx
index 662d76b5e4..58b58a8138 100644
--- a/docs/documentation/platform/pam/getting-started/resources/aws-iam.mdx
+++ b/docs/documentation/platform/pam/getting-started/resources/aws-iam.mdx
@@ -201,8 +201,8 @@ A PAM Account represents a specific Target Role that users can request access to
</Step>
<Step title="Create the Account in Infisical">
- 1. Navigate to the **Accounts** tab in your PAM project
- 2. Click **Add Account** and select the AWS IAM resource you created
+ 1. Navigate to the **Resources** tab in your PAM project and open the AWS IAM resource you created
+ 2. Click **Add Account**
3. Fill in the account details:
![Create AWS IAM Account](/images/pam/resources/aws-iam/create-account.png)
@@ -236,16 +236,16 @@ Once your resource and accounts are configured, users can request access through
![Create AWS IAM Resource](/images/pam/resources/aws-iam/access-account.png)
<Steps>
- <Step title="Navigate to Accounts">
- Go to the **Accounts** tab in your PAM project.
+ <Step title="Navigate to the resource">
+ Go to the **Resources** tab in your PAM project and open the AWS IAM resource.
</Step>
- <Step title="Find the Account">
- Find the AWS Console account you want to access.
+ <Step title="Select the account">
+ In the resource’s accounts section, find the AWS Console account you want to access.
</Step>
<Step title="Request Access">
- Click the **Access** button.
+ Click the **Access** button for that account.
Infisical will:
1. Assume the Resource Role using your project's External ID
diff --git a/docs/documentation/platform/pam/getting-started/resources/kubernetes.mdx b/docs/documentation/platform/pam/getting-started/resources/kubernetes.mdx
index a92ec51c7d..1a9d7d1a3d 100644
--- a/docs/documentation/platform/pam/getting-started/resources/kubernetes.mdx
+++ b/docs/documentation/platform/pam/getting-started/resources/kubernetes.mdx
@@ -165,12 +165,12 @@ Once you have configured the PAM resource, you'll need to configure a PAM accoun
A PAM Account represents a specific service account that users can request access to. You can create multiple accounts per resource, each with different permission levels.
<Steps>
- <Step title="Navigate to Accounts">
- Go to the **Accounts** tab in your PAM project.
+ <Step title="Navigate to Resource">
+ Go to the **Resources** tab in your PAM project and open the Kubernetes resource you created.
</Step>
<Step title="Add New Account">
- Click **Add Account** and select the Kubernetes resource you created.
+ Click **Add Account**.
</Step>
<Step title="Fill in Account Details">
@@ -184,9 +184,9 @@ Once your resource and accounts are configured, users can request access through
<Steps>
<Step title="Get the Access Command">
- 1. Navigate to the **Accounts** tab in your PAM project
- 2. Find the Kubernetes account you want to access
- 3. Click the **Access** button
+ 1. Navigate to the **Resources** tab in your PAM project and open the Kubernetes resource
+ 2. In the resource’s accounts section, find the account you want to access
+ 3. Click the **Access** button for that account
4. Copy the provided CLI command
</Step>
diff --git a/docs/documentation/platform/pam/getting-started/resources/redis.mdx b/docs/documentation/platform/pam/getting-started/resources/redis.mdx
index ba39d5ad90..379beee79c 100644
--- a/docs/documentation/platform/pam/getting-started/resources/redis.mdx
+++ b/docs/documentation/platform/pam/getting-started/resources/redis.mdx
@@ -112,12 +112,12 @@ Once you have configured the PAM resource, you'll need to configure a PAM accoun
A PAM Account represents a specific set of credentials that users can request access to. You can create multiple accounts per resource, each with different permission levels.
<Steps>
- <Step title="Navigate to Accounts">
- Go to the **Accounts** tab in your PAM project.
+ <Step title="Navigate to Resource">
+ Go to the **Resources** tab in your PAM project and open the Redis resource you created.
</Step>
<Step title="Add New Account">
- Click **Add Account** and select the Redis resource you created.
+ Click **Add Account**.
</Step>
<Step title="Fill in Account Details">
@@ -153,9 +153,9 @@ Once your resource and accounts are configured, users can request access through
<Steps>
<Step title="Get the Access Command">
- 1. Navigate to the **Accounts** tab in your PAM project
- 2. Find the Redis account you want to access
- 3. Click the **Access** button
+ 1. Navigate to the **Resources** tab in your PAM project and open the Redis resource
+ 2. In the resource’s accounts section, find the account you want to access
+ 3. Click the **Access** button for that account
4. Copy the provided CLI command
</Step>
diff --git a/docs/documentation/platform/pam/getting-started/resources/ssh.mdx b/docs/documentation/platform/pam/getting-started/resources/ssh.mdx
index c3e994832c..2df61b575a 100644
--- a/docs/documentation/platform/pam/getting-started/resources/ssh.mdx
+++ b/docs/documentation/platform/pam/getting-started/resources/ssh.mdx
@@ -119,12 +119,12 @@ A PAM Account represents a specific user account on the SSH server. You can crea
### Password Authentication
<Steps>
- <Step title="Navigate to Accounts">
- Go to the **Accounts** tab in your PAM project.
+ <Step title="Navigate to Resource">
+ Go to the **Resources** tab in your PAM project and open your SSH resource.
</Step>
<Step title="Add Account">
- Click **Add Account** and select your SSH resource.
+ Click **Add Account**.
</Step>
<Step title="Configure Password Auth">
@@ -260,13 +260,16 @@ Once your resource and accounts are configured, users can access SSH servers thr
</Step>
<Step title="Connect to SSH Server">
+ Specify the **resource name** and **account name** as shown in Infisical:
+
```bash
- infisical pam ssh access-account <account-path> --project-id <project-id> --duration <duration>
+ infisical pam ssh access --resource <resource-name> --account <account-name> --project-id <project-id> --duration <duration>
```
- For example:
+ For example, to access the account `ubuntu-admin` on the resource `production-server`:
+
```bash
- infisical pam ssh access-account /production-server/ubuntu-admin --project-id 00000000-0000-0000-0000-000000000000 --duration 1h
+ infisical pam ssh access --resource production-server --account ubuntu-admin --project-id 00000000-0000-0000-0000-000000000000 --duration 1h
```
</Step>
</Steps>
diff --git a/docs/documentation/platform/pam/getting-started/setup.mdx b/docs/documentation/platform/pam/getting-started/setup.mdx
index 8da9237128..0817c53c32 100644
--- a/docs/documentation/platform/pam/getting-started/setup.mdx
+++ b/docs/documentation/platform/pam/getting-started/setup.mdx
@@ -25,11 +25,11 @@ The following steps will guide you through the entire setup process, from deploy
[Learn about Resources](/documentation/platform/pam/getting-started/resources)
</Step>
<Step title="Add Accounts">
- Add **Accounts** to your Resource (e.g., `postgres` or `read_only_user`). These represent the actual PAM users or privileged identities that are utilized when a user connects.
+ Add **Accounts** to your Resource (e.g., `postgres` or `read-only-user`). These represent the actual PAM users or privileged identities that are utilized when a user connects.
[Learn about Accounts](/documentation/platform/pam/getting-started/accounts)
</Step>
<Step title="Connect">
- Users can now use the Infisical CLI to securely connect to the resource using the defined accounts, with full auditing and session recording enabled.
+ Users navigate to a resource in the UI, select an account within it, and connect via the Infisical CLI.
</Step>
</Steps>
diff --git a/docs/documentation/platform/pam/overview.mdx b/docs/documentation/platform/pam/overview.mdx
index 2b311c48c0..c90f3a0101 100644
--- a/docs/documentation/platform/pam/overview.mdx
+++ b/docs/documentation/platform/pam/overview.mdx
@@ -12,8 +12,8 @@ At its core, Infisical PAM is designed to decouple **user identity** from **infr
Here is how a typical access lifecycle looks:
-1. **Discovery**: A user logs into Infisical and sees a catalog of resources (databases, servers) and accounts they are allowed to access.
-2. **Connection**: The user selects a resource and an account (e.g., "Production DB" as `read_only`). They initiate the connection via the Infisical CLI.
+1. **Discovery**: A user logs into Infisical and sees a catalog of resources (databases, servers) and the accounts under each resource they are allowed to access. Access is **resource-centric**: users navigate to a resource first, then select an account within that resource.
+2. **Connection**: The user selects a resource and an account (e.g., `production-db` and `read-only`). They initiate the connection via the Infisical CLI.
3. **Credential Injection**: Infisical validates the request. If allowed, it establishes a secure tunnel and automatically injects the credentials for the target account. **The user never sees the underlying password or key.**
4. **Monitoring**: The session is established. All traffic is intercepted, logged, and recorded for audit purposes.
@@ -39,8 +39,8 @@ The hierarchy is structured as follows:
```mermaid
graph TD
- GW[Gateway] --> |Provides Access| DB[Resource: Production DB]
- GW[Gateway] --> |Provides Access| SRV[Resource: Linux Server]
+ GW[Gateway] --> |Provides Access| DB[Resource: production-db]
+ GW[Gateway] --> |Provides Access| SRV[Resource: linux-server]
DB --> A1[Account: admin]
DB --> A2[Account: readonly]
@@ -62,6 +62,7 @@ For a deep dive into the technical architecture and security model, see [Archite
## Core Capabilities
+- **[Access Policies](/documentation/platform/pam/product-reference/access-policies)**: Configure approval policies for PAM account access using resource and account name matching.
- **[Auditing](/documentation/platform/pam/product-reference/auditing)**: Track and review a comprehensive log of all user actions and system events.
- **[Session Recording](/documentation/platform/pam/product-reference/session-recording)**: Record and playback user sessions for security reviews, compliance, and troubleshooting.
- **[Automated Credential Rotation](/documentation/platform/pam/product-reference/credential-rotation)**: Automatically rotate credentials for supported resources to minimize the risk of compromised credentials.
diff --git a/docs/documentation/platform/pam/product-reference/access-policies.mdx b/docs/documentation/platform/pam/product-reference/access-policies.mdx
new file mode 100644
index 0000000000..b4f5498da3
--- /dev/null
+++ b/docs/documentation/platform/pam/product-reference/access-policies.mdx
@@ -0,0 +1,131 @@
+---
+title: "Approval Policies & Requests"
+sidebarTitle: "Approvals"
+description: "Learn how to configure approval workflows for PAM account access."
+---
+
+PAM approval workflows add a human review step before access is granted to privileged accounts, helping organizations enforce security controls and compliance requirements.
+
+## When to Use Approval Workflows
+
+Approval workflows are recommended when:
+
+- **Separation of duties is required**: Your organization requires different people to request and approve access to privileged accounts.
+- **Sensitive resources need oversight**: Access to production databases, critical servers, or administrative accounts requires additional review.
+- **Compliance mandates review**: Regulatory frameworks or internal policies require documented approval before granting access.
+- **Preventing unauthorized access**: You want to ensure privileged access is only granted after proper validation of the request.
+
+## Approval Policies
+
+An approval policy defines the workflow that must be completed before access is granted to specific resources and accounts. When an access request matches a policy's conditions, the request is placed in a pending state until the required approvers review and approve it.
+
+Key features of approval policies include:
+
+- **Condition-based matching**: Define which resources and accounts the policy applies to using glob patterns (e.g. `prod-*`, `*-admin`).
+- **Multi-step workflows**: Configure sequential approval steps where each step must be completed before the next begins.
+- **Flexible approvers**: Assign individual users or groups as eligible approvers for each step.
+- **Required approval count**: Specify how many approvals are needed per step (e.g., require 2 out of 5 eligible approvers).
+- **Access duration constraints**: Set minimum and maximum access durations for requests matching this policy.
+
+### Guide to Creating an Approval Policy
+
+To create an approval policy, navigate to your PAM Project > Approvals > Policies and click **Create Policy**.
+
+![pam approval policies](/images/pam/product-reference/access-policies/approval-policies.png)
+
+<Steps>
+ <Step title="Configuration">
+ Configure the basic policy settings:
+
+ - **Policy Name**: A descriptive name for the policy such as `production-db-approval`.
+ - **Conditions**: Define which resources and accounts this policy applies to:
+ - **Resource name**: Glob pattern for matching resource names (e.g. `prod-db`, `*-redis`).
+ - **Account name**: Glob pattern for matching account names (e.g. `admin`, `*readonly`).
+ - At least one of resource name or account name must be specified. If both are provided, they are ANDed together.
+ - **Access Duration**: Configure the minimum and maximum access duration allowed for requests matching this policy.
+
+ ![pam approval policy configuration](/images/pam/product-reference/access-policies/approval-policy-configuration.png)
+ </Step>
+ <Step title="Approval Sequence">
+ Configure the approval steps. Each step defines who can approve and how many approvals are required:
+
+ - **Step Name**: An optional name for the step such as `Manager Review`.
+ - **Approvers**: Select individual users or groups who are eligible to approve this step.
+ - **Required Approvals**: The number of approvals needed to complete this step.
+ - **Notify Approvers**: When enabled, eligible approvers receive a notification when their approval is required.
+
+ You can add multiple steps to create a sequential approval workflow. For example:
+ 1. **Manager Review**: Requires 1 approval from the managers group
+ 2. **Security Review**: Requires 2 approvals from the security team
+
+ Each step must be completed in order before access is granted.
+ </Step>
+ <Step title="Review">
+ Review your policy configuration and click **Create** to save the policy.
+ </Step>
+</Steps>
+
+## Approval Requests
+
+When an access request matches a policy's conditions, an approval request is created. Approvers can then review and approve or reject the request.
+
+### Viewing Requests
+
+![pam approval requests](/images/pam/product-reference/access-policies/approval-requests.png)
+
+Navigate to your PAM Project > Approvals > Requests to view all approval requests. You can filter requests by status:
+
+- **Open Requests**: Requests currently pending approval
+- **Approved**: Requests that have been approved and access granted
+- **Rejected**: Requests that were rejected by an approver
+- **Cancelled**: Requests cancelled by the requester
+- **Expired**: Requests that exceeded their maximum TTL
+
+### Approving a Request
+
+<Steps>
+ <Step title="Open the request">
+ Click on a pending request to view its details.
+ </Step>
+ <Step title="Review the access details">
+ Review the access request information including:
+ - Requester name and email
+ - Resource name and account name
+ - Requested access duration
+ - Justification (if provided)
+ </Step>
+ <Step title="Approve">
+ If you are an eligible approver for the current step, click **Approve** to approve the request.
+ </Step>
+</Steps>
+
+Once all required approvals for all steps are obtained, access is automatically granted.
+
+### Rejecting a Request
+
+<Steps>
+ <Step title="Open the request">
+ Click on a pending request to view its details.
+ </Step>
+ <Step title="Review the access details">
+ Review the access request information.
+ </Step>
+ <Step title="Reject">
+ If you are an eligible approver for the current step, click **Reject** to reject the request. Optionally add a comment explaining the rejection.
+ </Step>
+</Steps>
+
+When a request is rejected, the workflow ends and no access is granted.
+
+## FAQ
+
+<AccordionGroup>
+ <Accordion title="I approved a request but access wasn't granted">
+ If the approval policy has multiple steps, your approval may have completed only one step. Access is granted only after all approval steps are completed. Check the request details to see which step is currently pending and ensure all required approvers have approved.
+ </Accordion>
+ <Accordion title="I don't see the Approve button on a request">
+ The Approve button only appears if you are an eligible approver for the current step. Verify that:
+ - You are listed as an approver (either directly or through a group) for the current approval step
+ - The request is still in a pending state
+ </Accordion>
+</AccordionGroup>
diff --git a/docs/documentation/platform/pam/product-reference/auditing.mdx b/docs/documentation/platform/pam/product-reference/auditing.mdx
index e716b7f762..00a464a1ed 100644
--- a/docs/documentation/platform/pam/product-reference/auditing.mdx
+++ b/docs/documentation/platform/pam/product-reference/auditing.mdx
@@ -10,7 +10,7 @@ Infisical logs a wide range of actions to provide a complete audit trail for you
- Session Start and End
- Fetching session credentials
-- Creating, updating, or deleting resources, accounts, folders, and sessions
+- Creating, updating, or deleting resources, accounts, and sessions
<Info>
Please note: Audit logs track metadata about sessions (e.g., start/end times), but not the specific commands executed *within* them. For detailed in-session activity, check out [Session Recording](/documentation/platform/pam/product-reference/session-recording).
diff --git a/docs/images/pam/getting-started/accounts/add-account-button.png b/docs/images/pam/getting-started/accounts/add-account-button.png
index 7ff6c459ed..1b937a7a58 100644
Binary files a/docs/images/pam/getting-started/accounts/add-account-button.png and b/docs/images/pam/getting-started/accounts/add-account-button.png differ
diff --git a/docs/images/pam/getting-started/accounts/create-account.png b/docs/images/pam/getting-started/accounts/create-account.png
index af79dc365a..075a60be69 100644
Binary files a/docs/images/pam/getting-started/accounts/create-account.png and b/docs/images/pam/getting-started/accounts/create-account.png differ
diff --git a/docs/images/pam/getting-started/resources/add-resource-button.png b/docs/images/pam/getting-started/resources/add-resource-button.png
index 0769b572c2..369d48703f 100644
Binary files a/docs/images/pam/getting-started/resources/add-resource-button.png and b/docs/images/pam/getting-started/resources/add-resource-button.png differ
diff --git a/docs/images/pam/getting-started/resources/create-resource.png b/docs/images/pam/getting-started/resources/create-resource.png
index 8477d62971..43df7d604f 100644
Binary files a/docs/images/pam/getting-started/resources/create-resource.png and b/docs/images/pam/getting-started/resources/create-resource.png differ
diff --git a/docs/images/pam/getting-started/resources/select-resource-type.png b/docs/images/pam/getting-started/resources/select-resource-type.png
index e14b2ab3a8..7a000414e8 100644
Binary files a/docs/images/pam/getting-started/resources/select-resource-type.png and b/docs/images/pam/getting-started/resources/select-resource-type.png differ
diff --git a/docs/images/pam/product-reference/access-policies/approval-policies.png b/docs/images/pam/product-reference/access-policies/approval-policies.png
new file mode 100644
index 0000000000..af2c804946
Binary files /dev/null and b/docs/images/pam/product-reference/access-policies/approval-policies.png differ
diff --git a/docs/images/pam/product-reference/access-policies/approval-policy-configuration.png b/docs/images/pam/product-reference/access-policies/approval-policy-configuration.png
new file mode 100644
index 0000000000..2392e6e192
Binary files /dev/null and b/docs/images/pam/product-reference/access-policies/approval-policy-configuration.png differ
diff --git a/docs/images/pam/product-reference/access-policies/approval-requests.png b/docs/images/pam/product-reference/access-policies/approval-requests.png
new file mode 100644
index 0000000000..30fd8b7ddc
Binary files /dev/null and b/docs/images/pam/product-reference/access-policies/approval-requests.png differ
diff --git a/docs/images/pam/resources/aws-iam/access-account.png b/docs/images/pam/resources/aws-iam/access-account.png
index 6e6a57e1ef..ff21e07e7c 100644
Binary files a/docs/images/pam/resources/aws-iam/access-account.png and b/docs/images/pam/resources/aws-iam/access-account.png differ
diff --git a/docs/images/pam/resources/aws-iam/create-account.png b/docs/images/pam/resources/aws-iam/create-account.png
index 4d2203667c..183eae9ead 100644
Binary files a/docs/images/pam/resources/aws-iam/create-account.png and b/docs/images/pam/resources/aws-iam/create-account.png differ
diff --git a/docs/images/pam/resources/aws-iam/create-resource.png b/docs/images/pam/resources/aws-iam/create-resource.png
index 766b86ffc5..408502e99e 100644
Binary files a/docs/images/pam/resources/aws-iam/create-resource.png and b/docs/images/pam/resources/aws-iam/create-resource.png differ
diff --git a/docs/internals/permissions/project-permissions.mdx b/docs/internals/permissions/project-permissions.mdx
index 6033e0c7b8..b0581a9723 100644
--- a/docs/internals/permissions/project-permissions.mdx
+++ b/docs/internals/permissions/project-permissions.mdx
@@ -395,4 +395,19 @@ Supports conditions and permission inversion.
| `connect` | Connect AI clients to MCP endpoints |
**Condition Properties:**
-- `name`: Control access based on endpoint name
\ No newline at end of file
+- `name`: Control access based on endpoint name
+
+### Privileged Access Management (PAM)
+
+#### Subject: `pam-accounts`
+
+Supports conditions and permission inversion.
+
+| Action | Description |
+| -------- | ------------------------------------------------ |
+| `read` | View PAM accounts the identity is allowed to use |
+| `access` | Request or use access to PAM accounts |
+
+**Condition Properties (PAM accounts only support these two):**
+- `resourceName` – Restrict by resource name (glob patterns supported where applicable).
+- `accountName` – Restrict by account name (glob patterns supported where applicable).