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: more improvements
Sheen Capadngan176898cbf70a
diff --git a/docs/contributing/platform/pam-development.mdx b/docs/contributing/platform/pam-development.mdxindex 468942888f..e457b49fd4 100644--- a/docs/contributing/platform/pam-development.mdx+++ b/docs/contributing/platform/pam-development.mdx@@ -170,5 +170,5 @@ docker compose -f docker-compose.dev.yml logs -f backend## Next Steps-- [Create PAM resources](/documentation/platform/pam/getting-started/resources) and test connections through the gateway-- Explore [session recording](/documentation/platform/pam/product-reference/session-recording) functionality+- [Launch your first session](/documentation/platform/pam/quick-starts/launch-first-session) and test connections through the gateway+- Explore [session recording](/documentation/platform/pam/sessions/session-recording) functionalitydiff --git a/docs/docs.json b/docs/docs.jsonindex cd9c0348ab..d30a12d94f 100644--- a/docs/docs.json+++ b/docs/docs.json@@ -940,7 +940,6 @@{"group": "Quickstarts","pages": [- "documentation/platform/pam/getting-started","documentation/platform/pam/quick-starts/launch-first-session"]},diff --git a/docs/documentation/platform/pam/accounts/overview.mdx b/docs/documentation/platform/pam/accounts/overview.mdxindex fcbe023e7f..26db27279e 100644--- a/docs/documentation/platform/pam/accounts/overview.mdx+++ b/docs/documentation/platform/pam/accounts/overview.mdx@@ -27,11 +27,8 @@ Accounts live inside folders. To add one:<Step title="Open the folder">Go to **Folders** and click on the folder where you want to add the account.</Step>- <Step title="Click Add Account">- Click **Add Account** and select the account type (PostgreSQL or SSH).- </Step>- <Step title="Select a template">- Choose which template this account should use. The template determines the session rules (duration, MFA, recording).+ <Step title="Add account and select a template">+ Click **Add Account** and select a template. The template determines the account type (PostgreSQL or SSH) and session rules (duration, MFA, recording).</Step><Step title="Enter connection details">Provide the hostname, port, and other connection information.@@ -40,11 +37,10 @@ Accounts live inside folders. To add one:Provide the username and password (or SSH key/certificate settings).</Step><Step title="Save">- Click **Create**. Infisical validates the connection before saving.+ Click **Create**.</Step></Steps>-If validation fails, check that the credentials are correct and that the account is reachable from your Gateway.## Connecting to an Account@@ -79,8 +75,8 @@ Most access is granted at the folder level — if you have access to the folder,But sometimes you need to grant access to just one account. For that, use direct account memberships:-1. Open the account and go to the **Memberships** tab-2. Click **Add Member**+1. Open the account and go to the **Permissions** tab+2. Click **Assign Access**3. Select the user/group, role, and optional expiration4. Click **Add**diff --git a/docs/documentation/platform/pam/accounts/postgresql.mdx b/docs/documentation/platform/pam/accounts/postgresql.mdxindex ab088ef7cb..28b68e4b4b 100644--- a/docs/documentation/platform/pam/accounts/postgresql.mdx+++ b/docs/documentation/platform/pam/accounts/postgresql.mdx@@ -12,11 +12,8 @@ PostgreSQL accounts let you manage access to your PostgreSQL databases. Users co<Step title="Open the folder">Go to **Folders** and click on the folder where you want to add the account.</Step>- <Step title="Add account">- Click **Add Account** and select **PostgreSQL**.- </Step>- <Step title="Select a template">- Choose which template to use. The template determines session rules (duration, MFA, recording). You can use the default `postgres` template or a custom one.+ <Step title="Add account and select a template">+ Click **Add Account** and select a PostgreSQL template (e.g., the default `postgres` or a custom one). The template determines session rules like duration, MFA, and recording.</Step><Step title="Enter connection details">| Field | Description |@@ -34,71 +31,43 @@ PostgreSQL accounts let you manage access to your PostgreSQL databases. Users co| **Password** | PostgreSQL password |</Step><Step title="Save">- Click **Create**. Infisical validates the connection before saving — if it fails, check your credentials and that the database is reachable from your Gateway.+ Click **Create**.</Step></Steps>-## Connecting via Web Access--Web Access provides a browser-based interface with two tools:--**Data Explorer** — browse tables, view data, filter and sort, edit rows (for tables with primary keys), and export to CSV/JSON.--**SQL Terminal** — write and run SQL queries, view results in a table, use transactions with BEGIN/COMMIT/ROLLBACK.--To connect:-1. Open the account and click **Access**-2. Click **Connect in Browser**-3. The interface opens in a new tab--<Tip>-**Run part of a query** — select text in the SQL Terminal and press Cmd+Enter (or Ctrl+Enter) to run just the selection.-</Tip>--<Note>-Each tab has its own connection, so transactions are isolated per tab. Queries time out after 30 seconds, and idle sessions close after 10 minutes.-</Note>--## Connecting via CLI--The CLI starts a local proxy that you connect to with your preferred PostgreSQL client.--```bash-infisical pam access /<folder>/<account>-```--For example:-```bash-infisical pam access /prod-databases/orders-db-```+## Connecting-Output:-```-Proxy running on localhost:5432-Connect with: psql "postgresql://localhost:5432/orders"+<Tabs>+ <Tab title="Web Access">+ Web Access provides a browser-based interface with two tools:-Session expires in 4 hours. Press Ctrl+C to disconnect.-```+ - **Data Explorer** — browse tables, view data, filter and sort, edit rows, export to CSV/JSON+ - **SQL Editor** — write and run SQL queries, use transactions-Then connect with any client:+ To connect:+ 1. Open the account and click **Access**+ 2. Click **Connect in Browser**-```bash-# psql-psql "postgresql://localhost:5432/orders"+ </Tab>+ <Tab title="CLI">+ The CLI starts a local proxy that you connect to with your preferred PostgreSQL client.-# Or configure pgAdmin/DBeaver to connect to localhost on the proxy port-```+ ```bash+ infisical pam access /prod-databases/orders-db+ ```-<Tip>-No password needed — the proxy handles authentication.-</Tip>+ Then connect:+ ```bash+ psql "postgresql://localhost:5432/orders"+ ```-### CLI Flags+ No password needed since the proxy handles authentication.-| Flag | What it does |-|------|--------------|-| `--port <port>` | Use a specific local port |-| `--reason <reason>` | Provide an access reason (if required by template) |+ **Flags:**+ - `--port <port>` — use a specific local port+ - `--reason <reason>` — provide an access reason (if required by template)+ </Tab>+</Tabs>## Next Stepsdiff --git a/docs/documentation/platform/pam/accounts/ssh.mdx b/docs/documentation/platform/pam/accounts/ssh.mdxindex 26472a93e1..9f7171adb8 100644--- a/docs/documentation/platform/pam/accounts/ssh.mdx+++ b/docs/documentation/platform/pam/accounts/ssh.mdx@@ -14,11 +14,8 @@ SSH accounts support three authentication methods: password, public key, and cer<Step title="Open the folder">Go to **Folders** and click on the folder where you want to add the account.</Step>- <Step title="Add account">- Click **Add Account** and select **SSH**.- </Step>- <Step title="Select a template">- Choose which template to use. The template determines session rules (duration, MFA, recording). You can use the default `ssh` template or a custom one.+ <Step title="Add account and select a template">+ Click **Add Account** and select an SSH template (e.g., the default `ssh` or a custom one). The template determines session rules like duration, MFA, and recording.</Step><Step title="Enter connection details">| Field | Description |@@ -32,97 +29,63 @@ SSH accounts support three authentication methods: password, public key, and cerSee the section below for each method.</Step><Step title="Save">- Click **Create**. For password and key auth, Infisical validates the connection. For certificate auth, you'll need to configure the server first.+ Click **Create**.</Step></Steps>## Authentication Methods-### Password--The simplest option — just provide the username and password.--| Field | Value |-|-------|-------|-| **Method** | Password |-| **Password** | The user's password |--<Note>-The server must have `PasswordAuthentication yes` in sshd_config.-</Note>--### Public Key--Authenticate with an SSH private key.--| Field | Value |-|-------|-------|-| **Method** | Public Key |-| **Private Key** | The private key (OpenSSH format) |--The corresponding public key must be in the user's `~/.ssh/authorized_keys` on the server.--### Certificate (Recommended)--The most secure option. Instead of storing static credentials, Infisical mints a short-lived certificate for each session.--| Field | Value |-|-------|-------|-| **Method** | Certificate |--After creating the account, you need to configure the server to trust Infisical's CA. The account detail page provides a setup script you can run on the server.--See the [SSH Certificate Auth guide](/documentation/platform/pam/guides/ssh-certificate-auth) for a full walkthrough.--## Connecting via Web Access--Web Access provides an interactive terminal in your browser.--To connect:-1. Open the account and click **Access**-2. Click **Connect in Browser**-3. A terminal opens in a new tab+<Tabs>+ <Tab title="Password">+ The simplest option. Provide the username and password.-You get a full shell — run commands, use vim, transfer files. The session is recorded.+ The server must have `PasswordAuthentication yes` in sshd_config.+ </Tab>+ <Tab title="Public Key">+ Authenticate with an SSH private key (OpenSSH format).-To disconnect: type `exit` or close the tab.+ The corresponding public key must be in the user's `~/.ssh/authorized_keys` on the server.+ </Tab>+ <Tab title="Certificate (Recommended)">+ The most secure option. Instead of storing static credentials, Infisical mints a short-lived certificate for each session.-## Connecting via CLI+ After creating the account, configure the server to trust Infisical's CA. The account detail page provides a setup script.-The CLI starts a local proxy that you connect to with your SSH client.+ See the [SSH Certificate Auth guide](/documentation/platform/pam/guides/ssh-certificate-auth) for a full walkthrough.+ </Tab>+</Tabs>-```bash-infisical pam access /<folder>/<account>-```+## Connecting-For example:-```bash-infisical pam access /prod-servers/web-01-```+<Tabs>+ <Tab title="Web Access">+ Web Access provides an interactive terminal in your browser.-Output:-```-Proxy running on localhost:2222-Connect with: ssh deploy@localhost -p 2222+ 1. Open the account and click **Access**+ 2. Click **Connect in Browser**+ 3. A terminal opens in a new tab-Session expires in 8 hours. Press Ctrl+C to disconnect.-```+ You get a full shell. To disconnect, type `exit` or close the tab.+ </Tab>+ <Tab title="CLI">+ The CLI starts a local proxy that you connect to with your SSH client.-Then connect:-```bash-ssh deploy@localhost -p 2222-```+ ```bash+ infisical pam access /prod-servers/web-01+ ```-<Tip>-No password or key needed — the proxy handles authentication.-</Tip>+ Then connect:+ ```bash+ ssh deploy@localhost -p 2222+ ```-### CLI Flags+ No password or key needed since the proxy handles authentication.-| Flag | What it does |-|------|--------------|-| `--port <port>` | Use a specific local port |-| `--reason <reason>` | Provide an access reason (if required by template) |+ **Flags:**+ - `--port <port>` — use a specific local port+ - `--reason <reason>` — provide an access reason (if required by template)+ </Tab>+</Tabs>## Next Stepsdiff --git a/docs/documentation/platform/pam/architecture.mdx b/docs/documentation/platform/pam/architecture.mdxindex 465aaced9b..e44d721ce3 100644--- a/docs/documentation/platform/pam/architecture.mdx+++ b/docs/documentation/platform/pam/architecture.mdx@@ -58,7 +58,7 @@ Recording happens at the Gateway:1. Traffic flows through the Gateway2. Gateway captures session events3. Events are encrypted and cached locally-4. Every 10 seconds, new events upload to Infisical+4. Events upload to Infisical in real-time5. If connectivity drops, recording continues locally and syncs when restoredThis ensures no data is lost, even during network issues.@@ -71,15 +71,15 @@ This ensures no data is lost, even during network issues.| **Gateway per network** | Multiple VPCs or on-prem segments || **Gateway Pool** | High availability, load balancing |-For deployment instructions, see the [Gateway documentation](/documentation/platform/gateways/overview).+For deployment instructions, see [Deploy a Gateway](/documentation/platform/gateways/gateway-deployment).## Next Steps<CardGroup cols={2}>- <Card title="Gateway Deployment" icon="server" href="/documentation/platform/gateways/gateway-deployment">+ <Card title="Deploy a Gateway" icon="server" href="/documentation/platform/gateways/gateway-deployment">Deploy a Gateway in your network.</Card>- <Card title="Get Started" icon="rocket" href="/documentation/platform/pam/getting-started">- Set up your first PAM account.+ <Card title="Launch Your First Session" icon="rocket" href="/documentation/platform/pam/quick-starts/launch-first-session">+ Connect to a database in under 10 minutes.</Card></CardGroup>diff --git a/docs/documentation/platform/pam/auditing.mdx b/docs/documentation/platform/pam/auditing.mdxindex a830052455..8f00161707 100644--- a/docs/documentation/platform/pam/auditing.mdx+++ b/docs/documentation/platform/pam/auditing.mdx@@ -29,17 +29,6 @@ Each event includes:1. Go to **Privileged Access Management → Audit Logs**2. Browse the log (newest first) or use filters-### Filtering--| Filter | What it does |-|--------|--------------|-| **Date range** | Events within a time period |-| **Actor** | Actions by a specific user |-| **Event type** | Specific action types |-| **Target** | Actions affecting a specific account, folder, or template |--Use the search bar to find events by user email, account name, or folder name.-## Audit Logs vs Session RecordingsThese are complementary:diff --git a/docs/documentation/platform/pam/concepts/access-control.mdx b/docs/documentation/platform/pam/concepts/access-control.mdxindex 08eb3d83ff..442fb3c975 100644--- a/docs/documentation/platform/pam/concepts/access-control.mdx+++ b/docs/documentation/platform/pam/concepts/access-control.mdx@@ -4,7 +4,10 @@ sidebarTitle: "Access Control"description: "Understand how permissions work in Infisical PAM."----Access control in PAM happens at two levels. First, someone needs to be added to PAM itself — that's **product membership**. Then, they need access to specific folders or accounts — that's **resource membership**.+Access control in PAM happens at two levels:++1. **Product membership** — being added to PAM itself (the "entry ticket")+2. **Folder and account memberships** — being granted a role on specific folders or accounts (this is what lets you connect)## Product Membership@@ -12,28 +15,29 @@ Before anyone can do anything in PAM, they need to be added as a product member.There are two product roles:-| Role | What they see |-|------|---------------|-| **Product Admin** | Everything — all folders, all accounts, all settings |-| **Product Member** | Only folders and accounts they've been granted access to |+| Role | What they can do |+|------|------------------|+| **Product Admin** | Create and manage templates, folders, and product-level settings |+| **Product Member** | Access PAM — needs folder/account memberships to connect |-Product Admins set up the structure (create folders, create templates) and decide who gets access to what. Product Members only see what they've been explicitly granted.+Product Admins set up the governance layer — they don't automatically get access to connect to accounts. To connect, you need a membership on a folder or account.<Note>-Organization Admins can always access PAM as Product Admins without being explicitly added.+Organization Admins can access PAM as Product Admins without being explicitly added.</Note>### Adding Product Members1. Go to **Privileged Access Management → Access Control**-2. Click **Add Member**-3. Select a user or group-4. Choose **Product Admin** or **Product Member**-5. Click **Add**+2. Select the **Users** or **Groups** tab+3. Click **Add**+4. Select from users or groups that exist in your organization+5. Choose **Product Admin** or **Product Member**+6. Click **Add**-## Resource Membership+## Folder and Account Memberships-Once someone is a product member, they still need access to specific folders or accounts. This is done through **resource memberships** — assigning them a role on a folder or account.+Once someone is a product member, they still need to be granted access to specific folders or accounts. You do this by assigning them a **role** on a folder or account.### Roles@@ -55,13 +59,13 @@ You can assign roles at two levels:### How to Assign MembershipsFor folders:-1. Open the folder and go to **Memberships**-2. Click **Add Member**+1. Open the folder and go to **Permissions**+2. Click **Assign Access**3. Select user/group, role, and optional expiration4. Click **Add**For accounts:-1. Open the account and go to **Memberships**+1. Open the account and go to **Permissions**2. Same process as above## Putting It Together@@ -75,7 +79,7 @@ Here's a typical setup:5. **Team lead** grants the rest of the team **Connector** on the folder6. **Team members** can now connect to any account in the folder-The Product Admin sets up the structure. The folder Admin manages day-to-day access within their scope. Team members connect to what they need.+The Product Admin sets up the governance structure. The folder Admin manages day-to-day access within their scope. Team members connect to what they've been granted access to.## Next Stepsdiff --git a/docs/documentation/platform/pam/concepts/pam-components.mdx b/docs/documentation/platform/pam/concepts/pam-components.mdxindex e965ac073d..0a255c25aa 100644--- a/docs/documentation/platform/pam/concepts/pam-components.mdx+++ b/docs/documentation/platform/pam/concepts/pam-components.mdx@@ -4,82 +4,66 @@ sidebarTitle: "PAM Components"description: "Understand how Infisical PAM is structured."----Let's say you want to give your platform team secure access to your production databases. Here's how you'd set that up in Infisical PAM.+Infisical PAM is built around four core components: accounts, folders, account templates, and memberships. Understanding how they relate helps you set up secure, organized access to your infrastructure.-## Start with Accounts+## Accounts-An **account** represents a single database or server you want to manage. You provide the connection details (host, port, database) and credentials (username, password), and Infisical stores them securely.+An **account** represents a single database or server you want to manage. You provide the connection details (host, port, database) and credentials (username, password), and Infisical stores them securely. Users connect through Infisical without ever seeing the underlying credentials.-For example, you might create an account called `orders-db` for your orders database, and another called `users-db` for your users database.+Infisical currently supports PostgreSQL databases and SSH servers.-But you probably don't want these accounts floating around individually — you want to organize them.+[Learn more about Accounts →](/documentation/platform/pam/accounts/overview)-## Organize with Folders+## Folders-**Folders** group related accounts together. You might create a folder called `prod-databases` and put both `orders-db` and `users-db` inside it.+**Folders** group related accounts together. They serve two purposes:-Folders serve two purposes:-1. **Organization** — keep related accounts together-2. **Access control** — when you grant someone access to a folder, they get access to everything inside it+1. **Organization** — keep related accounts together (by environment, team, or application)+2. **Access control** — grant access to a folder and it applies to all accounts inside-So if you grant your platform team access to the `prod-databases` folder, they can connect to both databases. You don't have to grant access to each account individually.+Folders are the primary way to manage access at scale. Instead of granting permissions account-by-account, you grant access to a folder and users can reach everything in it.-Now, you might want different rules for how people connect to these databases — maybe production databases should require MFA, while development databases don't. That's where templates come in.+[Learn more about Folders →](/documentation/platform/pam/folders/overview)-## Define Rules with Templates+## Account Templates-**Templates** define the rules that apply when someone connects to an account:-- How long can they stay connected?-- Do they need to provide a reason?-- Do they need to complete MFA?-- Should the session be recorded?+**Account templates** define the policies that apply when someone connects to an account:-Every account uses a template. Infisical provides default templates (`postgres`, `ssh`) with sensible settings, so you can start creating accounts immediately.+- Maximum session duration+- Whether a reason is required+- Whether MFA is required+- Whether sessions are recorded-When you need different rules, create a custom template. For example, you might create a `prod-postgres` template that requires MFA and limits sessions to 4 hours, while keeping the default `postgres` template for development databases.+Templates are specific to an account type (PostgreSQL or SSH). This allows for type-specific policies — for example, command restrictions for SSH or query restrictions for databases in future releases.-The key insight: **templates define rules, folders define access**. You can have accounts in the same folder using different templates (different rules, same team access), or accounts in different folders using the same template (same rules, different team access).+Every account uses a template of the same type. Infisical provides default templates (`postgres`, `ssh`) with sensible settings, so you can start creating accounts immediately. Create custom templates when you need different rules for different environments or compliance requirements.-## Control Access with Memberships+**Templates define rules, folders define access.** Accounts in the same folder can use different templates (different rules, same team access), and accounts in different folders can use the same template (same rules, different team access).-**Memberships** determine who can access what. You assign a user or group a **role** on a folder or account.+[Learn more about Account Templates →](/documentation/platform/pam/templates/overview)-The roles are:-- **Admin** — full control (create accounts, manage access, connect)-- **Connector** — can connect to accounts-- **Requester** — can request access to accounts-- **Auditor** — can view sessions and logs (read-only)+## Memberships-When you assign a membership on a folder, it applies to all accounts inside. For most cases, this is all you need — grant your team access to a folder and they can reach everything in it.+**Memberships** determine who can access what by assigning users or groups a role on a folder or account.-For exceptions (like giving a contractor access to just one database), you can assign a membership directly on an individual account.+| Role | Capabilities |+|------|-------------|+| **Admin** | Full control — create accounts, manage memberships, connect |+| **Connector** | Connect to accounts and launch sessions |+| **Requester** | Request access to accounts |+| **Auditor** | View sessions and audit logs (read-only) |-## Putting It All Together+Memberships on a folder cascade to all accounts inside. For most cases, this is all you need. For exceptions, you can assign memberships directly on individual accounts.-Back to our example: giving your platform team secure access to production databases.--1. **Create a template** called `prod-postgres` with your production rules (4-hour sessions, MFA required, recording enabled) — or use the default if it fits your needs-2. **Create a folder** called `prod-databases`-3. **Add accounts** to the folder (`orders-db`, `users-db`), each using the `prod-postgres` template-4. **Grant your team access** by assigning them the Connector role on the `prod-databases` folder--Now your team can connect to any database in that folder, and every session follows your production rules.+[Learn more about Access Control →](/documentation/platform/pam/concepts/access-control)## Next Steps-You now understand the building blocks. The next step is to actually set them up:-<CardGroup cols={2}>- <Card title="Create Folders" icon="folder-tree" href="/documentation/platform/pam/folders/overview">- Set up folders to organize your accounts.- </Card>- <Card title="Create Templates" icon="layer-group" href="/documentation/platform/pam/templates/overview">- Define rules for your sessions.- </Card>- <Card title="Add Accounts" icon="user-lock" href="/documentation/platform/pam/accounts/overview">- Add your databases and servers.+ <Card title="Launch Your First Session" icon="rocket" href="/documentation/platform/pam/quick-starts/launch-first-session">+ Get hands-on with a step-by-step walkthrough.</Card>- <Card title="Manage Access" icon="shield-halved" href="/documentation/platform/pam/concepts/access-control">- Learn more about roles and permissions.+ <Card title="Session Lifecycle" icon="circle-play" href="/documentation/platform/pam/concepts/session-lifecycle">+ Understand what happens when you connect.</Card></CardGroup>diff --git a/docs/documentation/platform/pam/concepts/session-lifecycle.mdx b/docs/documentation/platform/pam/concepts/session-lifecycle.mdxindex 27f144504d..88d382fb1d 100644--- a/docs/documentation/platform/pam/concepts/session-lifecycle.mdx+++ b/docs/documentation/platform/pam/concepts/session-lifecycle.mdx@@ -30,9 +30,9 @@ For **Web Access**, this all happens in the browser. For **CLI Access**, the CLIWhile you're connected:-- **Recording** — If enabled in the template, every query (database) or command (SSH) is captured+- **Recording** — Every query (database) or command (SSH) is captured- **Session timer** — The session has a maximum duration set by the template. When time runs out, you're disconnected.-- **Logs upload** — Session activity uploads to Infisical every 10 seconds, so admins can monitor in near real-time+- **Logs upload** — Session activity uploads to Infisical in real-time, so admins can monitor active sessionsYou can see your active sessions on the **Sessions** page.@@ -44,14 +44,14 @@ A session ends when:- The max session duration is reached- An admin terminates the session-After the session ends, the full recording is available for review.+Recordings are available in real-time — you can review activity even while the session is still active.## After the SessionEvery session is logged:- **Audit log** — records who accessed what, when, and from where-- **Session recording** — captures everything that happened during the session (if recording was enabled)+- **Session recording** — captures everything that happened during the sessionAdmins and Auditors can review sessions from the **Sessions** page. See [Session Recording](/documentation/platform/pam/sessions/session-recording) for details on how recordings work.diff --git a/docs/documentation/platform/pam/folders/overview.mdx b/docs/documentation/platform/pam/folders/overview.mdxindex 684ff21db5..a68c72e2af 100644--- a/docs/documentation/platform/pam/folders/overview.mdx+++ b/docs/documentation/platform/pam/folders/overview.mdx@@ -36,11 +36,11 @@ Access to a folder is controlled through **memberships**. You assign users or gr<Step title="Open the folder">Click on the folder to open its detail page.</Step>- <Step title="Go to Memberships">- Click the **Memberships** tab.+ <Step title="Go to Permissions">+ Click the **Permissions** tab.</Step><Step title="Add a member">- Click **Add Member** and configure:+ Click **Assign Access** and configure:| Field | Description ||-------|-------------|@@ -79,8 +79,7 @@ Groups are managed at the organization level and can sync from identity providerThe folder detail page shows:- **Accounts** — all accounts in this folder-- **Memberships** — who has access-- **Activity** — recent actions+- **Permissions** — who has accessFrom here you can add new accounts, manage existing ones, or adjust who has access.diff --git a/docs/documentation/platform/pam/getting-started.mdx b/docs/documentation/platform/pam/getting-started.mdxdeleted file mode 100644index 5bb9ea788f..0000000000--- a/docs/documentation/platform/pam/getting-started.mdx+++ /dev/null@@ -1,40 +0,0 @@-----title: "Getting Started"-sidebarTitle: "Getting Started"-description: "Get started with Infisical Privileged Access Management."------## Quick Start--<Card title="Launch Your First Session" icon="terminal" href="/documentation/platform/pam/quick-starts/launch-first-session">- Connect to a PostgreSQL database in under 10 minutes.-</Card>--## Where to Start--What you can do in PAM depends on your role:--| If you're a... | Start here |-|----------------|------------|-| **Product Admin** setting up PAM | [Create folders](/documentation/platform/pam/folders/overview), [create templates](/documentation/platform/pam/templates/overview) if you need custom policies |-| **Admin** managing a folder | [Add accounts](/documentation/platform/pam/accounts/overview) to your folder, [grant team access](/documentation/platform/pam/folders/overview#memberships) |-| **User** who needs to connect | Ask your admin for access, then [launch sessions](/documentation/platform/pam/accounts/overview#accessing-accounts) |--## Prerequisites--Before you can use PAM:--1. **An Infisical Gateway** must be deployed in your private network. See [Gateway Deployment](/documentation/platform/gateways/gateway-deployment).-2. The Gateway must have **network access** to your databases or servers.-3. You need the **credentials** (username/password, SSH keys) for the accounts you want to manage.--## Next Steps--<CardGroup cols={2}>- <Card title="Launch First Session" icon="terminal" href="/documentation/platform/pam/quick-starts/launch-first-session">- End-to-end walkthrough.- </Card>- <Card title="Core Concepts" icon="book" href="/documentation/platform/pam/concepts/pam-components">- Understand how PAM is structured.- </Card>-</CardGroup>diff --git a/docs/documentation/platform/pam/guides/ssh-certificate-auth.mdx b/docs/documentation/platform/pam/guides/ssh-certificate-auth.mdxindex ed53a64d5f..0a5780ddca 100644--- a/docs/documentation/platform/pam/guides/ssh-certificate-auth.mdx+++ b/docs/documentation/platform/pam/guides/ssh-certificate-auth.mdx@@ -4,136 +4,65 @@ sidebarTitle: "SSH Certificate Auth"description: "Configure certificate-based SSH access to eliminate static credentials."----This guide walks through setting up SSH certificate authentication. Instead of managing passwords or SSH keys on every server, Infisical mints a short-lived certificate for each session. The certificate is valid only for that session, so there's nothing to rotate or revoke.--## How It Works--1. You create an SSH account with **Certificate** authentication-2. You configure your server to trust Infisical's CA-3. When a user connects, Infisical mints a certificate signed by that CA-4. The server validates the certificate and grants access-5. When the session ends, the certificate is useless--No static credentials on the server. No keys to manage. The certificate is valid only for the session duration.+This guide walks through setting up SSH certificate authentication. Instead of managing passwords or SSH keys, Infisical mints a short-lived certificate for each session — valid only for that session, so there's nothing to rotate or revoke.## Prerequisites- Admin access to the folder where you'll create the account- Root/sudo access on the target server-- The server must be reachable from your [Gateway](/documentation/platform/gateways/overview)--## Step 1: Create the SSH Account--1. Open the folder where you want to add the account-2. Click **Add Account** and select **SSH**-3. Select a template (the default `ssh` template works fine)-4. Enter connection details:- - Name: `prod-web-01` (or a descriptive name)- - Host: your server's hostname or IP- - Port: 22- - Username: the Linux user to connect as (e.g., `deploy`)-5. Set **Authentication Method** to **Certificate**-6. Click **Create**--The account is created, but you can't connect yet — you need to configure the server to trust Infisical's CA.--## Step 2: Configure the Server--Open the account you just created. You'll see a **CA Setup** section with two options.--### Option A: Automated Setup (Recommended)--Copy the setup script and run it on your server:--```bash-curl -sSL "https://app.infisical.com/api/v1/pam/accounts/<account-id>/ssh-ca-setup" | sudo bash-```--The script:-1. Downloads the CA public key-2. Saves it to `/etc/ssh/infisical_ca.pub`-3. Adds `TrustedUserCAKeys /etc/ssh/infisical_ca.pub` to sshd_config-4. Restarts sshd--### Option B: Manual Setup--If you prefer to configure manually:--1. Copy the **CA Public Key** from the account page-2. Save it on the server:- ```bash- sudo vim /etc/ssh/infisical_ca.pub- # Paste the CA public key- ```-3. Edit sshd_config:- ```bash- sudo vim /etc/ssh/sshd_config- # Add: TrustedUserCAKeys /etc/ssh/infisical_ca.pub- ```-4. Restart sshd:- ```bash- sudo systemctl restart sshd- ```--### Verify the Setup--Check that sshd recognizes the CA:--```bash-sudo sshd -T | grep trustedusercakeys-```--You should see:-```-trustedusercakeys /etc/ssh/infisical_ca.pub-```--## Step 3: Connect--Now your team can connect to the server.--### Via Web Access--1. Open the account and click **Access**-2. Click **Connect in Browser**-3. An interactive terminal opens--### Via CLI--```bash-infisical pam access /your-folder/prod-web-01-```--Then connect with your SSH client:-```bash-ssh deploy@localhost -p <port>-```--The Gateway handles certificate generation automatically — users never see or manage any keys.--## Troubleshooting--**Connection refused or timeout**-- Check that the Gateway can reach the server on port 22-- Verify the server's firewall allows SSH-- Make sure sshd is running: `sudo systemctl status sshd`--**Permission denied (publickey)**-- Verify the CA public key is saved correctly-- Check that `TrustedUserCAKeys` is set in sshd_config-- Restart sshd after config changes-- Make sure the username in the account matches a real Linux user--**Certificate not accepted**-- Confirm the account is set to Certificate authentication-- Check server logs: `sudo journalctl -u sshd -f`--## Why Certificates Are Better--- **No static credentials** — nothing to rotate or worry about being leaked-- **Short-lived** — certificates are valid only for the session duration-- **Per-account CAs** — each account has its own CA, so compromising one doesn't affect others-- **Automatic** — users don't manage keys; the system handles everything+- The server must be reachable from your [Gateway](/documentation/platform/gateways/gateway-deployment)++## Steps++<Steps>+ <Step title="Create the SSH Account">+ 1. Open the folder where you want to add the account+ 2. Click **Add Account**+ 3. Select an SSH template+ 4. Fill in the connection details (host, port, username)+ 5. Set **Authentication Method** to **Certificate**+ 6. Click **Create**+ </Step>+ <Step title="Configure the Server">+ Open the account you just created. You'll see a **CA Setup** section.++ <Tabs>+ <Tab title="Automated Setup (Recommended)">+ Copy the setup script and run it on your server:++ ```bash+ curl -sSL "https://app.infisical.com/api/v1/pam/accounts/<account-id>/ssh-ca-setup" | sudo bash+ ```++ The script downloads the CA public key, configures sshd to trust it, and restarts the service.+ </Tab>+ <Tab title="Manual Setup">+ 1. Copy the **CA Public Key** from the account page+ 2. Save it to `/etc/ssh/infisical_ca.pub` on the server+ 3. Add to sshd_config: `TrustedUserCAKeys /etc/ssh/infisical_ca.pub`+ 4. Restart sshd: `sudo systemctl restart sshd`+ </Tab>+ </Tabs>++ Verify the setup:+ ```bash+ sudo sshd -T | grep trustedusercakeys+ ```+ </Step>+ <Step title="Connect">+ Your team can now connect — either in the browser or using the CLI proxy.++ 1. Open the account+ 2. Click **Access**+ </Step>+</Steps>++## Why Certificates?++- **No static credentials** to rotate or leak+- **Short-lived** and valid only for the session+- **Per-account CAs** so compromising one doesn't affect others+- **Automatic** key management for users## Next Stepsdiff --git a/docs/documentation/platform/pam/guides/team-access.mdx b/docs/documentation/platform/pam/guides/team-access.mdxindex e532be43eb..2fba70bb7f 100644--- a/docs/documentation/platform/pam/guides/team-access.mdx+++ b/docs/documentation/platform/pam/guides/team-access.mdx@@ -4,121 +4,60 @@ sidebarTitle: "Team Database Access"description: "Set up secure PostgreSQL access for your team."----This guide walks through giving your team secure access to a production PostgreSQL database. By the end, your team will be able to connect through the browser or CLI, with every session recorded.--## What You'll Set Up--- A **folder** to organize your production databases-- A **template** with production-appropriate rules (optional — you can use the default)-- A PostgreSQL **account** with your database credentials-- **Memberships** so your team can connect+This guide walks through giving your team secure access to a production PostgreSQL database.## Prerequisites-- Product Admin access (to create folders and optionally templates)-- A PostgreSQL database reachable from your [Gateway](/documentation/platform/gateways/overview)+- Product Admin access+- A PostgreSQL database reachable from your [Gateway](/documentation/platform/gateways/gateway-deployment)- Database credentials (username and password)-## Step 1: Create a Folder--First, create a folder to hold your production database accounts.--1. Go to **Privileged Access Management → Folders**-2. Click **Create Folder**-3. Name it `prod-databases` (or whatever makes sense for you)-4. Click **Create**--## Step 2: Decide on a Template--Every account needs a template. You have two options:--**Use the default `postgres` template** — This has sensible settings (1-hour sessions, recording enabled). If that works, skip to Step 3.--**Create a custom template** — If you need stricter rules for production:--1. Go to **Account Templates** and click **Create Template**-2. Name it `prod-postgres`, select **PostgreSQL** as the type-3. Configure **Access Policy**:- - Max Session Duration: 4 hours- - Require Reason: Enabled- - Require MFA: Enabled (if you want extra security)-4. Make sure **Recording Enabled** is on-5. Click **Create**--## Step 3: Add the Database Account--Now add your database to the folder.--1. Open the `prod-databases` folder-2. Click **Add Account** and select **PostgreSQL**-3. Select your template (`prod-postgres` or the default `postgres`)-4. Enter the connection details:- - Name: `orders-db` (or a descriptive name)- - Host: your database hostname- - Port: 5432- - Database: your database name-5. Enter credentials:- - Username: your database username- - Password: your database password-6. Click **Create**--Infisical validates the connection. If it fails, check that the Gateway can reach your database and the credentials are correct.--## Step 4: Grant Your Team Access--Now give your team the ability to connect.--1. Open the `prod-databases` folder-2. Go to the **Memberships** tab-3. Click **Add Member**-4. Select your team (or individual team members)-5. Set the role to **Connector**-6. Click **Add**--Everyone in that group can now connect to any account in the folder.--### Designating a Folder Admin--If you want someone else to manage this folder day-to-day (add accounts, manage access), grant them **Admin** instead of Connector. They'll be able to do everything within this folder without needing Product Admin access.--## Step 5: Connect--Your team can now connect to the database.--### Via Web Access--1. Go to the `orders-db` account-2. Click **Access**-3. Click **Connect in Browser**-4. Use the Data Explorer to browse tables or the SQL Terminal to run queries--### Via CLI--```bash-infisical pam access /prod-databases/orders-db-```--Then connect with any PostgreSQL client:-```bash-psql "postgresql://localhost:5432/orders"-```--## What's Happening Behind the Scenes--- The user's connection goes through the Gateway-- The Gateway injects the credentials automatically — the user never sees the password-- Every query is recorded-- When the session ends (or times out), the recording is available for review+## Steps++<Steps>+ <Step title="Create a Folder">+ 1. Go to **Privileged Access Management → Folders**+ 2. Click **Create Folder**+ 3. Name it `prod-databases`+ 4. Click **Create**+ </Step>+ <Step title="(Optional) Create a Custom Template">+ The default `postgres` template works for most cases. If you need stricter rules:++ 1. Go to **Account Templates** and click **Create Template**+ 2. Name it `prod-postgres`, select **PostgreSQL** as the type+ 3. Configure your access policy (max duration, require reason, require MFA)+ 4. Click **Create**+ </Step>+ <Step title="Add the Database Account">+ 1. Open the `prod-databases` folder+ 2. Click **Add Account**+ 3. Select your template (`prod-postgres` or the default `postgres`)+ 4. Fill in your database connection details and credentials+ 5. Click **Create**+ </Step>+ <Step title="Grant Your Team Access">+ 1. Open the `prod-databases` folder+ 2. Go to the **Permissions** tab+ 3. Click **Assign Access**+ 4. Select your team and set the role to **Connector**+ 5. Click **Add**++ <Tip>+ To let someone manage the folder day-to-day, grant them **Admin** instead of Connector.+ </Tip>+ </Step>+ <Step title="Connect">+ Your team can now connect — either in the browser or using the CLI proxy.++ 1. Open the account+ 2. Click **Access**+ </Step>+</Steps>## Adding More Databases-To add another database to this setup:--1. Open the `prod-databases` folder-2. Click **Add Account**-3. Follow the same process as Step 3--Since your team already has access to the folder, they'll automatically have access to the new account.+To add another database, open the folder and click **Add Account**. Your team will automatically have access since they already have folder permissions.## Next Stepsdiff --git a/docs/documentation/platform/pam/overview.mdx b/docs/documentation/platform/pam/overview.mdxindex 035fb2cbd4..35a4f15b7b 100644--- a/docs/documentation/platform/pam/overview.mdx+++ b/docs/documentation/platform/pam/overview.mdx@@ -6,34 +6,17 @@ description: "Manage and secure access to critical infrastructure like databasesInfisical PAM lets you securely manage access to databases and servers. Users connect through a browser or CLI without ever seeing credentials — every session is recorded and auditable.-<Card title="Get Started" icon="rocket" href="/documentation/platform/pam/getting-started">+<Card title="Get Started" icon="rocket" href="/documentation/platform/pam/quick-starts/launch-first-session">New to PAM? Launch your first session in under 10 minutes.</Card>-## What You Can Do--<CardGroup cols={2}>- <Card title="Accounts" icon="user-lock" href="/documentation/platform/pam/accounts/overview">- Manage credentials for PostgreSQL databases and SSH servers.- </Card>- <Card title="Sessions" icon="display" href="/documentation/platform/pam/sessions/overview">- Monitor active sessions and review recordings.- </Card>- <Card title="Session Recording" icon="video" href="/documentation/platform/pam/sessions/session-recording">- Capture every query and command for compliance.- </Card>- <Card title="Audit Logs" icon="clipboard-list" href="/documentation/platform/pam/auditing">- Track who accessed what, when, and from where.- </Card>-</CardGroup>-## Learn More<CardGroup cols={2}><Card title="Core Concepts" icon="book" href="/documentation/platform/pam/concepts/pam-components">Understand how templates, folders, and accounts work together.</Card>- <Card title="Guides" icon="map" href="/documentation/platform/pam/guides/overview">+ <Card title="Guides" icon="map" href="/documentation/platform/pam/guides/team-access">End-to-end workflows for common scenarios.</Card><Card title="Access Control" icon="shield-halved" href="/documentation/platform/pam/concepts/access-control">diff --git a/docs/documentation/platform/pam/quick-starts/launch-first-session.mdx b/docs/documentation/platform/pam/quick-starts/launch-first-session.mdxindex 056a5f31c8..3e0a28d8ff 100644--- a/docs/documentation/platform/pam/quick-starts/launch-first-session.mdx+++ b/docs/documentation/platform/pam/quick-starts/launch-first-session.mdx@@ -6,82 +6,42 @@ description: "Connect to a PostgreSQL database in under 10 minutes."This quickstart walks you through connecting to a PostgreSQL database via PAM. You'll create a folder, add a database account, and launch a session.+<Note>+**Gateway required** — PAM connects to your databases and servers through a Gateway. If you haven't deployed one yet, [deploy a Gateway](/documentation/platform/gateways/gateway-deployment) first.+</Note>+## Prerequisites- Admin access to PAM-- A PostgreSQL database reachable from your [Gateway](/documentation/platform/gateways/overview)+- A deployed [Gateway](/documentation/platform/gateways/gateway-deployment) that can reach your database- Database credentials (username and password)-## Step 1: Create a Folder--Folders organize your accounts. Create one to hold your database.--1. Go to **Privileged Access Management → Folders**-2. Click **Create Folder**-3. Name it `dev-databases` (or whatever you like)-4. Click **Create**--## Step 2: Add a Database Account--Now add your database to the folder.--1. Open the folder you just created-2. Click **Add Account** and select **PostgreSQL**-3. Select the `postgres` template (the default)-4. Fill in the connection details:- - **Name**: `my-database`- - **Host**: your database hostname- - **Port**: `5432`- - **Database**: your database name- - **Username**: your database username- - **Password**: your database password-5. Click **Create**--Infisical validates the connection. If it fails, check your credentials and that the database is reachable from your Gateway.--## Step 3: Grant Yourself Access--You need a membership to connect.--1. Open the folder-2. Go to the **Memberships** tab-3. Click **Add Member**-4. Select yourself-5. Set the role to **Connector**-6. Click **Add**--## Step 4: Launch a Session--Now connect to your database.--### Option A: Web Access--1. Open the account you created-2. Click **Access**-3. Click **Connect in Browser**--You'll see the Data Explorer (browse tables) and SQL Terminal (run queries).--### Option B: CLI Access--Run:-```bash-infisical pam access /dev-databases/my-database-```--Then connect with any PostgreSQL client:-```bash-psql "postgresql://localhost:5432/mydb"-```--## What Just Happened--- You created a folder to organize accounts-- You added a database account (credentials stored securely in Infisical)-- You granted yourself access-- You connected — without ever typing the database password--The session was recorded. You can review it in **Sessions**.+## Steps++<Steps>+ <Step title="Create a Folder">+ Folders organize your accounts. Create one to hold your database.++ 1. Go to **Privileged Access Management → Accounts**+ 2. Click **Create Folder**+ 3. Name it `dev-databases` (or whatever you like)+ 4. Click **Create**+ </Step>+ <Step title="Add a Database Account">+ 1. Open the folder you just created+ 2. Click **Add Account**+ 3. Select the `postgres` template+ 4. Fill in your database connection details (host, port, credentials)+ 5. Click **Create**+ </Step>+ <Step title="Launch a Session">+ 1. Open the account you created+ 2. Click **Access**+ 3. Click **Connect in Browser**++ You'll see the Data Explorer (browse tables) and SQL Terminal (run queries).+ </Step>+</Steps>## Next Stepsdiff --git a/docs/documentation/platform/pam/sessions/overview.mdx b/docs/documentation/platform/pam/sessions/overview.mdxindex 7a054fabd5..20684e927f 100644--- a/docs/documentation/platform/pam/sessions/overview.mdx+++ b/docs/documentation/platform/pam/sessions/overview.mdx@@ -34,7 +34,7 @@ The search bar finds sessions by account name, folder name, or user email.## Active SessionsActive sessions show a **Live** indicator. While a session is active:-- Logs update in near real-time (every 10 seconds)+- Logs update in real-time- You can monitor what's happening- You can terminate the session if needed@@ -43,13 +43,7 @@ Active sessions show a **Live** indicator. While a session is active:Click on a session to see:- **Session info** — who, what, when, duration, IP address- **Session logs** — commands (SSH) or queries (PostgreSQL) executed-- **Recording playback** — if recording was enabled--### Searching Logs--Use the search bar within a session to find specific content — a particular query, command, or output.--You can also search across all sessions from the main Sessions page to find when something specific was run.+- **Recording playback** — review everything that happened## Terminating Sessionsdiff --git a/docs/documentation/platform/pam/sessions/session-recording.mdx b/docs/documentation/platform/pam/sessions/session-recording.mdxindex a3eb527e2d..0c4b7435b4 100644--- a/docs/documentation/platform/pam/sessions/session-recording.mdx+++ b/docs/documentation/platform/pam/sessions/session-recording.mdx@@ -4,7 +4,7 @@ sidebarTitle: "Session Recording"description: "How PAM captures and stores session activity."----When recording is enabled, PAM captures everything that happens during a session — every query, command, and response. This gives you a complete record for compliance audits and incident investigation.+PAM captures everything that happens during a session — every query, command, and response. This gives you a complete record for compliance audits and incident investigation.## What Gets Recorded@@ -28,30 +28,17 @@ Recording happens at the Gateway level:1. Traffic flows through the Gateway2. The Gateway captures and encrypts session events-3. Events upload to Infisical every 10 seconds-4. When the session ends, the full recording is available+3. Events upload to Infisical in real-time+4. Recordings are available immediately — even for active sessionsThis architecture means:- **No data loss** — if connectivity drops, the Gateway caches locally and syncs when restored- **Near real-time** — admins can see what's happening in active sessions- **Always encrypted** — recordings are encrypted before upload-## Configuring Recording+## Storage Options-Recording is configured at the **template level**. All accounts using a template inherit its recording settings.--| Setting | What it does |-|---------|--------------|-| **Recording Enabled** | Toggle recording on/off |-| **Storage Backend** | Where recordings are stored |--To change recording settings:-1. Go to **Account Templates** and open the template-2. Find **System Settings → Recording**-3. Toggle **Recording Enabled** and select the storage backend-4. Save--### Storage Options+Recording is always enabled. You can configure where recordings are stored at the **template level** — all accounts using a template inherit its storage settings.| Backend | Description ||---------|-------------|@@ -66,16 +53,12 @@ For most cases, internal storage works fine. Use [External Storage](/documentati2. The session detail page shows the full log of activity3. Use the search bar to find specific content-For active sessions, logs update every 10 seconds. For completed sessions, the full recording is available immediately.+Recordings are available in real-time for both active and completed sessions.## Best Practices-**Enable recording for production.** Session recordings are essential for compliance and incident investigation. Only disable for low-risk development environments where you don't need an audit trail.-**Use external S3 for regulated environments.** If you have data residency or retention requirements, store recordings in your own bucket where you control the data lifecycle.-**Configure log masking for sensitive data.** Templates can define patterns to redact from logs (like credit card numbers). This happens before storage, so sensitive data never gets recorded.-## Next Steps<CardGroup cols={2}>diff --git a/docs/documentation/platform/pam/templates/overview.mdx b/docs/documentation/platform/pam/templates/overview.mdxindex 2dd56e2cbd..89622ae00c 100644--- a/docs/documentation/platform/pam/templates/overview.mdx+++ b/docs/documentation/platform/pam/templates/overview.mdx@@ -6,6 +6,8 @@ description: "Define the rules that apply when users connect to accounts."Templates control what happens when someone connects to an account. How long can they stay connected? Do they need MFA? Should the session be recorded? These rules are defined in a template, and every account uses one.+Templates are **type-specific** — a PostgreSQL template can only be used with PostgreSQL accounts, and an SSH template can only be used with SSH accounts. This allows for type-specific policies like command restrictions or query filtering in future releases.+Infisical provides **default templates** (`postgres`, `ssh`) with sensible settings, so you can start adding accounts right away. Create custom templates when you need different rules — for example, stricter settings for production databases.## Default Templates@@ -14,8 +16,8 @@ When you first use PAM, these templates are already available:| Template | Type | Default Settings ||----------|------|------------------|-| `postgres` | PostgreSQL | 1-hour sessions, recording enabled |-| `ssh` | SSH | 1-hour sessions, recording enabled |+| `postgres` | PostgreSQL | 1-hour sessions |+| `ssh` | SSH | 1-hour sessions |These defaults work for many cases. If they fit your needs, you can skip straight to [adding accounts](/documentation/platform/pam/accounts/overview).@@ -48,7 +50,6 @@ If you need different rules — say, 4-hour sessions with MFA for production —| Setting | What it does ||---------|--------------|- | **Recording Enabled** | Capture session activity || **Recording Storage** | Where to store recordings (internal or your S3 bucket) || **Password Constraints** | Minimum complexity for account passwords |</Step>@@ -66,10 +67,6 @@ This means you can:- Change rules for all those accounts at once by editing the template- Have different accounts in the same folder use different templates (if they need different rules)-<Warning>-Changes to templates apply immediately to all accounts using them. Be careful when tightening rules — it may affect active sessions.-</Warning>-## Next StepsWith templates set up, you're ready to add accounts to your folders.