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: initial update
Sheen Capadnganad3301fe8427
diff --git a/docs/docs.json b/docs/docs.jsonindex 77f156417d..cd9c0348ab 100644--- a/docs/docs.json+++ b/docs/docs.json@@ -938,60 +938,52 @@"pages": ["documentation/platform/pam/overview",{- "group": "Getting Started",+ "group": "Quickstarts","pages": [- "documentation/platform/pam/getting-started/setup",- {- "group": "Resources",- "pages": [- "documentation/platform/pam/getting-started/resources",- "documentation/platform/pam/getting-started/resources/active-directory",- "documentation/platform/pam/getting-started/resources/aws-iam",- "documentation/platform/pam/getting-started/resources/kubernetes",- "documentation/platform/pam/getting-started/resources/mongodb",- "documentation/platform/pam/getting-started/resources/mssql",- "documentation/platform/pam/getting-started/resources/mysql",- "documentation/platform/pam/getting-started/resources/oracle",- "documentation/platform/pam/getting-started/resources/postgresql",- "documentation/platform/pam/getting-started/resources/redis",- "documentation/platform/pam/getting-started/resources/ssh",- "documentation/platform/pam/getting-started/resources/windows-server"- ]- },- "documentation/platform/pam/getting-started/accounts"+ "documentation/platform/pam/getting-started",+ "documentation/platform/pam/quick-starts/launch-first-session"]},{- "group": "Discovery",+ "group": "Concepts","pages": [- "documentation/platform/pam/discovery/overview",- "documentation/platform/pam/discovery/active-directory"+ "documentation/platform/pam/concepts/pam-components",+ "documentation/platform/pam/concepts/session-lifecycle",+ "documentation/platform/pam/concepts/access-control"]},- "documentation/platform/pam/architecture"+ {+ "group": "Guides",+ "pages": [+ "documentation/platform/pam/guides/team-access",+ "documentation/platform/pam/guides/ssh-certificate-auth"+ ]+ }]},{"group": "Product Reference","pages": [- "documentation/platform/pam/product-reference/access-policies",- "documentation/platform/pam/product-reference/account-policies",- "documentation/platform/pam/product-reference/auditing",- "documentation/platform/pam/product-reference/session-recording",- "documentation/platform/pam/product-reference/external-storage",- "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": [- "documentation/platform/pam/product-reference/web-access/overview",- "documentation/platform/pam/product-reference/web-access/postgresql",- "documentation/platform/pam/product-reference/web-access/redis",- "documentation/platform/pam/product-reference/web-access/ssh",- "documentation/platform/pam/product-reference/web-access/windows-rdp"+ "documentation/platform/pam/folders/overview",+ "documentation/platform/pam/templates/overview",+ {+ "group": "Accounts",+ "pages": [+ "documentation/platform/pam/accounts/overview",+ "documentation/platform/pam/accounts/postgresql",+ "documentation/platform/pam/accounts/ssh"]- }+ },+ {+ "group": "Sessions",+ "pages": [+ "documentation/platform/pam/sessions/overview",+ "documentation/platform/pam/sessions/session-recording",+ "documentation/platform/pam/sessions/external-storage"+ ]+ },+ "documentation/platform/pam/auditing",+ "documentation/platform/pam/architecture"]}]diff --git a/docs/documentation/platform/pam/accounts/overview.mdx b/docs/documentation/platform/pam/accounts/overview.mdxnew file mode 100644index 0000000000..fcbe023e7f--- /dev/null+++ b/docs/documentation/platform/pam/accounts/overview.mdx@@ -0,0 +1,100 @@+---+title: "Accounts"+sidebarTitle: "Overview"+description: "Manage credentials for databases and servers."+---++Accounts are the databases and servers you want to manage through PAM. Each account stores the connection details and credentials needed to connect — hostname, port, username, password, and so on.++When users connect to an account, they never see the actual credentials. The connection is proxied, credentials are injected automatically, and everything is recorded.++## Account Types++PAM currently supports two account types:++| Type | What it connects to |+|------|---------------------|+| [**PostgreSQL**](/documentation/platform/pam/accounts/postgresql) | PostgreSQL databases |+| [**SSH**](/documentation/platform/pam/accounts/ssh) | Linux/Unix servers |++Each type has specific connection details — PostgreSQL accounts need a database name, SSH accounts need an authentication method. See the type-specific pages for details.++## Adding an Account++Accounts live inside folders. To add one:++<Steps>+ <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>+ <Step title="Enter connection details">+ Provide the hostname, port, and other connection information.+ </Step>+ <Step title="Enter credentials">+ Provide the username and password (or SSH key/certificate settings).+ </Step>+ <Step title="Save">+ Click **Create**. Infisical validates the connection before saving.+ </Step>+</Steps>++If validation fails, check that the credentials are correct and that the account is reachable from your Gateway.++## Connecting to an Account++Once an account exists, users with access can connect in two ways:++### Web Access++Click **Access** on the account and select **Connect in Browser**. This opens:+- **PostgreSQL** — a Data Explorer for browsing tables and a SQL Terminal for running queries+- **SSH** — an interactive terminal++### CLI Access++Run the CLI command to start a local proxy:++```bash+infisical pam access /<folder>/<account>+```++Then connect with your preferred client (psql, pgAdmin, ssh) against `localhost`. The proxy handles authentication automatically.++**Flags:**++| Flag | What it does |+|------|--------------|+| `--port` | Specify the local port |+| `--reason` | Provide a reason (if required by the template) |++## Direct Account Memberships++Most access is granted at the folder level — if you have access to the folder, you have access to all accounts in it.++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**+3. Select the user/group, role, and optional expiration+4. Click **Add**++Direct memberships are for exceptions — a contractor who needs one specific database, or temporary elevated access to a single account.++## Next Steps++For detailed instructions on creating and connecting to specific account types:++<CardGroup cols={2}>+ <Card title="PostgreSQL Accounts" icon="database" href="/documentation/platform/pam/accounts/postgresql">+ Database connection details and Web Access features.+ </Card>+ <Card title="SSH Accounts" icon="terminal" href="/documentation/platform/pam/accounts/ssh">+ Authentication methods and certificate setup.+ </Card>+</CardGroup>diff --git a/docs/documentation/platform/pam/accounts/postgresql.mdx b/docs/documentation/platform/pam/accounts/postgresql.mdxnew file mode 100644index 0000000000..ab088ef7cb--- /dev/null+++ b/docs/documentation/platform/pam/accounts/postgresql.mdx@@ -0,0 +1,112 @@+---+title: "PostgreSQL Accounts"+sidebarTitle: "PostgreSQL"+description: "Add and connect to PostgreSQL databases."+---++PostgreSQL accounts let you manage access to your PostgreSQL databases. Users connect through Web Access (a browser-based interface) or CLI (a local proxy), and every session can be recorded.++## Creating an Account++<Steps>+ <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>+ <Step title="Enter connection details">+ | Field | Description |+ |-------|-------------|+ | **Name** | A descriptive name (e.g., `orders-db-readonly`) |+ | **Host** | Database hostname or IP |+ | **Port** | PostgreSQL port (default: 5432) |+ | **Database** | Database name |+ | **SSL Mode** | Connection security (`disable`, `require`, `verify-ca`, `verify-full`) |+ </Step>+ <Step title="Enter credentials">+ | Field | Description |+ |-------|-------------|+ | **Username** | PostgreSQL username |+ | **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.+ </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+```++Output:+```+Proxy running on localhost:5432+Connect with: psql "postgresql://localhost:5432/orders"++Session expires in 4 hours. Press Ctrl+C to disconnect.+```++Then connect with any client:++```bash+# psql+psql "postgresql://localhost:5432/orders"++# Or configure pgAdmin/DBeaver to connect to localhost on the proxy port+```++<Tip>+No password needed — the proxy handles authentication.+</Tip>++### CLI Flags++| Flag | What it does |+|------|--------------|+| `--port <port>` | Use a specific local port |+| `--reason <reason>` | Provide an access reason (if required by template) |++## Next Steps++<CardGroup cols={2}>+ <Card title="SSH Accounts" icon="terminal" href="/documentation/platform/pam/accounts/ssh">+ Add SSH server accounts.+ </Card>+ <Card title="Sessions" icon="display" href="/documentation/platform/pam/sessions/overview">+ View and manage sessions.+ </Card>+</CardGroup>diff --git a/docs/documentation/platform/pam/accounts/ssh.mdx b/docs/documentation/platform/pam/accounts/ssh.mdxnew file mode 100644index 0000000000..26472a93e1--- /dev/null+++ b/docs/documentation/platform/pam/accounts/ssh.mdx@@ -0,0 +1,136 @@+---+title: "SSH Accounts"+sidebarTitle: "SSH"+description: "Add and connect to SSH servers."+---++SSH accounts let you manage access to your Linux/Unix servers. Users connect through Web Access (a browser-based terminal) or CLI (a local proxy), and every session can be recorded.++SSH accounts support three authentication methods: password, public key, and certificate-based.++## Creating an Account++<Steps>+ <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>+ <Step title="Enter connection details">+ | Field | Description |+ |-------|-------------|+ | **Name** | A descriptive name (e.g., `prod-web-01`) |+ | **Host** | Server hostname or IP |+ | **Port** | SSH port (default: 22) |+ | **Username** | Linux username to connect as |+ </Step>+ <Step title="Choose authentication method">+ See 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.+ </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++You get a full shell — run commands, use vim, transfer files. The session is recorded.++To disconnect: type `exit` or close the tab.++## Connecting via CLI++The CLI starts a local proxy that you connect to with your SSH client.++```bash+infisical pam access /<folder>/<account>+```++For example:+```bash+infisical pam access /prod-servers/web-01+```++Output:+```+Proxy running on localhost:2222+Connect with: ssh deploy@localhost -p 2222++Session expires in 8 hours. Press Ctrl+C to disconnect.+```++Then connect:+```bash+ssh deploy@localhost -p 2222+```++<Tip>+No password or key needed — the proxy handles authentication.+</Tip>++### CLI Flags++| Flag | What it does |+|------|--------------|+| `--port <port>` | Use a specific local port |+| `--reason <reason>` | Provide an access reason (if required by template) |++## Next Steps++<CardGroup cols={2}>+ <Card title="SSH Certificate Auth" icon="key" href="/documentation/platform/pam/guides/ssh-certificate-auth">+ Set up certificate-based authentication.+ </Card>+ <Card title="Sessions" icon="display" href="/documentation/platform/pam/sessions/overview">+ View and manage sessions.+ </Card>+</CardGroup>diff --git a/docs/documentation/platform/pam/architecture.mdx b/docs/documentation/platform/pam/architecture.mdxindex 0c08ba67a7..465aaced9b 100644--- a/docs/documentation/platform/pam/architecture.mdx+++ b/docs/documentation/platform/pam/architecture.mdx@@ -1,77 +1,85 @@---title: "Architecture"sidebarTitle: "Architecture"-description: "Learn about the architecture, components, and security model of Infisical PAM."+description: "How PAM connects users to your infrastructure securely."----Infisical PAM utilizes a secure, proxy-based architecture designed to provide access to private resources without exposing them directly to the internet. This system relies on a combination of the Infisical CLI, a Relay server, and a self-hosted Gateway. For more information on Gateways, refer to the [Gateway Overview](/documentation/platform/gateways/overview).+PAM uses a proxy-based architecture. Users never connect directly to your databases or servers — everything goes through the Gateway. This keeps your infrastructure isolated while providing secure, auditable access.-## Core Components+## Components-The architecture consists of three main components working in unison:+**Infisical Platform** — the control plane. Stores account credentials, manages permissions, and hosts the web interface.-<Steps>- <Step title="Infisical CLI">- The client-side interface used to initiate access requests. It creates a local listener that forwards traffic securely to the Gateway.- </Step>- <Step title="Infisical Gateway">- A lightweight service deployed within your private network (e.g., VPC, on-prem). It acts as a proxy, intercepting traffic to enforce policies and record sessions before forwarding requests to the target resource.- </Step>- <Step title="Target Resource">- The actual infrastructure being accessed, such as a PostgreSQL database, a Linux server, or a web application.- </Step>-</Steps>+**Gateway** — a lightweight service you deploy in your private network. It proxies connections to your databases and servers, injects credentials, and records sessions.-## Access Flow+**Client** — the user's browser (Web Access) or CLI. Connects to the Gateway through an encrypted tunnel.-```mermaid-graph LR- subgraph Client ["User Environment"]- CLI["Infisical CLI"]- end+## How a Connection Works- Relay["Relay Server"]+When a user connects to an account:- subgraph Network ["Private Network (VPC)"]- Gateway["Infisical Gateway"]- DB[("Target Resource (Database/Server)")]- end+1. **User requests access** — clicks Access in the browser or runs the CLI command+2. **Infisical checks permissions** — verifies the user has a membership with the right role+3. **Template rules are enforced** — MFA, reason requirement, etc.+4. **Connection is established** — an encrypted tunnel is created between the client and Gateway+5. **Gateway fetches credentials** — retrieves them from Infisical+6. **Gateway connects to the target** — using the credentials+7. **Traffic flows through the Gateway** — user interacts with the database/server+8. **Session is recorded** — Gateway captures and uploads session activity- CLI <-->|Encrypted Tunnel| Relay- Relay <-->|Reverse Tunnel| Gateway- Gateway <-->|Native Protocol| DB-```+The user never sees the credentials. The database/server never sees the user directly.-When a user accesses a resource (e.g., via `infisical access`), the following workflow occurs:+## Network Security-1. **Connection Initiation**: The Infisical CLI initiates a connection to the Relay server.-2. **Tunnel Establishment**: The Relay facilitates an end-to-end encrypted tunnel between the CLI and the Gateway.-3. **Proxy & Credential Injection**: The Gateway authenticates the request and connects to the target resource on the user's behalf. It automatically injects the necessary credentials (e.g., database passwords, SSH keys), ensuring the user never directly handles sensitive secrets.-4. **Traffic Forwarding**: Traffic flows securely from the user's machine, through the Relay, to the Gateway, and finally to the resource.+The Gateway uses outbound connections only:-## Session Recording & Auditing+- **No inbound ports** — your firewall doesn't need to allow any inbound traffic+- **Outbound to Infisical** — for credential retrieval and session uploads+- **Outbound to your infrastructure** — to connect to databases and servers-+<Tip>+Your databases and servers stay completely isolated from the internet. The Gateway sits inside your network and reaches out; nothing reaches in.+</Tip>-A key feature of the Gateway is its ability to act as a "middleman" for all session traffic.+## Encryption-- **Interception**: Because the Gateway sits between the secure tunnel and the target resource, it intercepts all data flowing through the connection.-- **Logging**: This traffic is logged as part of [Session Recording](/documentation/platform/pam/product-reference/session-recording). The Gateway temporarily stores encrypted session logs locally.-- **Upload**: Every 10 seconds, the Gateway incrementally uploads new session events to the Infisical platform, enabling near real-time monitoring. The upload offset is persisted locally so that uploads resume correctly if the Gateway restarts mid-session.+All connections are encrypted:-## Security Architecture+- **Client to Gateway** — end-to-end encrypted tunnel+- **Gateway to Infisical** — TLS+- **Session recordings** — encrypted before upload-The PAM security model allows you to maintain a zero-trust environment while enabling convenient access.+The Relay server (which routes traffic between clients and Gateways) cannot decrypt or inspect the traffic passing through it.-### End-to-End Encryption-The connection between the Infisical CLI (client) and the Gateway is end-to-end encrypted. The Relay server acts solely as a router for encrypted packets and **cannot decrypt or inspect** the traffic passing through it.+## Recording Architecture-### Network Security-The Gateway uses **SSH reverse tunnels** to connect to the Relay. This design offers significant security benefits:-- **No Inbound Ports**: You do not need to open any inbound firewall ports (like 22 or 5432) to the internet.-- **Outbound-Only**: The Gateway only requires outbound connectivity to the Relay server and Infisical API.+Recording happens at the Gateway:-For a deep dive into the underlying cryptography, certificate management, and isolation guarantees, refer to the [Gateway Security Architecture](/documentation/platform/gateways/security).+1. Traffic flows through the Gateway+2. Gateway captures session events+3. Events are encrypted and cached locally+4. Every 10 seconds, new events upload to Infisical+5. If connectivity drops, recording continues locally and syncs when restored-### Deployment-For instructions on setting up the necessary infrastructure, see the [Gateway Deployment Guide](/documentation/platform/gateways/gateway-deployment).+This ensures no data is lost, even during network issues.++## Deployment Options++| Setup | Use case |+|-------|----------|+| **Single Gateway** | Small environments, single network |+| **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).++## Next Steps++<CardGroup cols={2}>+ <Card title="Gateway Deployment" 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>+</CardGroup>diff --git a/docs/documentation/platform/pam/auditing.mdx b/docs/documentation/platform/pam/auditing.mdxnew file mode 100644index 0000000000..a830052455--- /dev/null+++ b/docs/documentation/platform/pam/auditing.mdx@@ -0,0 +1,85 @@+---+title: "Auditing"+sidebarTitle: "Auditing"+description: "Track all activity across your PAM environment."+---++PAM logs every action — who accessed what, who changed what, and when. This audit trail is essential for compliance reviews and incident investigation.++## What Gets Logged++| Category | Events |+|----------|--------|+| **Sessions** | Session started, session ended, session terminated |+| **Accounts** | Account created, updated, deleted |+| **Folders** | Folder created, updated, deleted |+| **Templates** | Template created, updated, deleted |+| **Memberships** | Membership added, updated, removed |+| **Product Access** | Product member added, removed, role changed |++Each event includes:+- **Timestamp** — when it happened+- **Actor** — who did it (user, email, IP address)+- **Action** — what was done+- **Target** — what was affected+- **Details** — relevant context (e.g., what changed)++## Viewing Audit Logs++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 Recordings++These are complementary:++**Audit logs** track metadata — who accessed what account, when, from where. They tell you *that* something happened.++**Session recordings** capture content — the actual queries and commands. They tell you *what* was done during the session.++For a complete picture, you need both. The audit log tells you Alice accessed the orders-db at 2pm; the session recording shows you exactly what queries she ran.++## Who Can See Audit Logs++| Role | Access |+|------|--------|+| **Product Admin** | All audit logs |+| **Admin** (on a folder) | Logs for accounts in that folder |+| **Auditor** (on a folder) | Logs for accounts in that folder |+| **Connector** | Can only see their own session events |++## Retention++Audit logs are retained according to your organization's policy. Events are immutable — they can't be modified or deleted.++## Common Use Cases++**Access reviews** — Filter by date range to see who accessed what during a specific period.++**Incident investigation** — Search for a specific account or user to trace actions before or after an incident.++**Change tracking** — Filter by event type to see configuration changes (template updates, membership changes).++**User activity reports** — Filter by actor to see everything a specific user did.++## Next Steps++<CardGroup cols={2}>+ <Card title="Sessions" icon="display" href="/documentation/platform/pam/sessions/overview">+ View session recordings for detailed activity.+ </Card>+ <Card title="Architecture" icon="sitemap" href="/documentation/platform/pam/architecture">+ Understand how PAM works under the hood.+ </Card>+</CardGroup>diff --git a/docs/documentation/platform/pam/concepts/access-control.mdx b/docs/documentation/platform/pam/concepts/access-control.mdxnew file mode 100644index 0000000000..08eb3d83ff--- /dev/null+++ b/docs/documentation/platform/pam/concepts/access-control.mdx@@ -0,0 +1,89 @@+---+title: "Access Control"+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**.++## Product Membership++Before anyone can do anything in PAM, they need to be added as a product member. This is the "entry ticket" to PAM.++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 |++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.++<Note>+Organization Admins can always access PAM as Product Admins without being explicitly added.+</Note>++### Adding Product Members++1. 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**++## Resource Membership++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.++### Roles++| Role | What they can do |+|------|------------------|+| **Admin** | Full control — create/edit/delete accounts, manage memberships, connect, view all sessions |+| **Connector** | Connect to accounts, view their own sessions |+| **Requester** | Request access to accounts |+| **Auditor** | View all sessions and logs (read-only) |++### Folder vs Account Memberships++You can assign roles at two levels:++**Folder memberships** apply to all accounts in the folder. This is the primary way to grant access — if someone needs access to a set of accounts, grant them a role on the folder.++**Account memberships** apply to a single account. Use this for exceptions — a contractor who needs just one database, or temporary elevated access to a specific account.++### How to Assign Memberships++For folders:+1. Open the folder and go to **Memberships**+2. Click **Add Member**+3. Select user/group, role, and optional expiration+4. Click **Add**++For accounts:+1. Open the account and go to **Memberships**+2. Same process as above++## Putting It Together++Here's a typical setup:++1. **Product Admin** adds the Platform team lead as a Product Member+2. **Product Admin** creates a `prod-databases` folder+3. **Product Admin** grants the team lead **Admin** on that folder+4. **Team lead** (now a folder Admin) adds accounts to the folder+5. **Team lead** grants the rest of the team **Connector** on the folder+6. **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.++## Next Steps++<CardGroup cols={2}>+ <Card title="Folders" icon="folder-tree" href="/documentation/platform/pam/folders/overview">+ Create folders and manage folder memberships.+ </Card>+ <Card title="Accounts" icon="user-lock" href="/documentation/platform/pam/accounts/overview">+ Add accounts and manage account memberships.+ </Card>+</CardGroup>diff --git a/docs/documentation/platform/pam/concepts/pam-components.mdx b/docs/documentation/platform/pam/concepts/pam-components.mdxnew file mode 100644index 0000000000..e965ac073d--- /dev/null+++ b/docs/documentation/platform/pam/concepts/pam-components.mdx@@ -0,0 +1,85 @@+---+title: "Core Components"+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.++## Start with 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.++For example, you might create an account called `orders-db` for your orders database, and another called `users-db` for your users database.++But you probably don't want these accounts floating around individually — you want to organize them.++## Organize with 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 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++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.++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.++## Define Rules with 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?++Every account uses a template. Infisical provides default templates (`postgres`, `ssh`) with sensible settings, so you can start creating accounts immediately.++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.++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).++## Control Access with Memberships++**Memberships** determine who can access what. You assign a user or group a **role** on a folder or account.++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)++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.++For exceptions (like giving a contractor access to just one database), you can assign a membership directly on an individual account.++## Putting It All Together++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.++## 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>+ <Card title="Manage Access" icon="shield-halved" href="/documentation/platform/pam/concepts/access-control">+ Learn more about roles and permissions.+ </Card>+</CardGroup>diff --git a/docs/documentation/platform/pam/concepts/session-lifecycle.mdx b/docs/documentation/platform/pam/concepts/session-lifecycle.mdxnew file mode 100644index 0000000000..27f144504d--- /dev/null+++ b/docs/documentation/platform/pam/concepts/session-lifecycle.mdx@@ -0,0 +1,67 @@+---+title: "Session Lifecycle"+sidebarTitle: "Session Lifecycle"+description: "What happens when you connect to an account."+---++When you connect to an account through PAM, a **session** is created. The session tracks who connected, when, for how long, and what they did. Here's what happens at each stage.++## Requesting Access++When you click **Access** on an account (or run the CLI command), PAM checks:++1. **Do you have permission?** — You need a membership (on the folder or account) with the Connector or Admin role+2. **Template requirements** — If the template requires a reason, you'll be prompted to enter one. If it requires MFA, you'll need to verify your identity.++If everything checks out, the session is approved and you can connect.++## Connecting++Once approved, the connection is established through the Gateway:++1. Your client (browser or CLI) connects to the Gateway+2. The Gateway fetches the account credentials from Infisical+3. The Gateway connects to the actual database or server+4. Traffic flows through the Gateway — you never see the credentials++For **Web Access**, this all happens in the browser. For **CLI Access**, the CLI starts a local proxy and you connect your preferred client to `localhost`.++## During the Session++While you're connected:++- **Recording** — If enabled in the template, 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++You can see your active sessions on the **Sessions** page.++## Ending the Session++A session ends when:++- You disconnect (close the browser tab, press Ctrl+C, or type `exit`)+- The max session duration is reached+- An admin terminates the session++After the session ends, the full recording is available for review.++## After the Session++Every 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)++Admins and Auditors can review sessions from the **Sessions** page. See [Session Recording](/documentation/platform/pam/sessions/session-recording) for details on how recordings work.++## Next Steps++<CardGroup cols={2}>+ <Card title="Sessions" icon="display" href="/documentation/platform/pam/sessions/overview">+ View and manage sessions.+ </Card>+ <Card title="Session Recording" icon="video" href="/documentation/platform/pam/sessions/session-recording">+ How recordings are captured and stored.+ </Card>+</CardGroup>diff --git a/docs/documentation/platform/pam/discovery/active-directory.mdx b/docs/documentation/platform/pam/discovery/active-directory.mdxdeleted file mode 100644index 4b30ec1345..0000000000--- a/docs/documentation/platform/pam/discovery/active-directory.mdx+++ /dev/null@@ -1,160 +0,0 @@-----title: "Active Directory Discovery"-sidebarTitle: "Active Directory"-description: "Automatically discover Windows servers, domain accounts, local accounts, and service dependencies across your Active Directory environment."------Active Directory Discovery connects to your domain controller via LDAP, enumerates all computers and user accounts in the domain, and then scans each machine for service dependencies via WinRM.--## What Gets Discovered--### Resources--Every computer object in Active Directory is imported as a **Windows Server** PAM Resource. For each machine, Discovery resolves the DNS hostname to an IP address and captures:--- Computer name and DNS hostname-- Operating system and version-- Object GUID--### Accounts--Discovery imports two categories of accounts:--**Domain Accounts** — User objects from Active Directory, associated with the AD Server resource. Each account includes:-- Username and User Principal Name (UPN)-- Account type (User or Service) — detected by the presence of Service Principal Names (SPNs) or naming conventions like `svc-*`-- AD GUID, last logon time, and password last set date--**Local Accounts** — User accounts local to each Windows machine, discovered via WinRM. Each account includes:-- Username and SID-- Enabled/disabled status-- Last logon time and password last set date--### Dependencies--For each Windows machine reachable via WinRM, Discovery enumerates:--| Dependency Type | What's Captured |-|-----------------|-----------------|-| **Windows Services** | Service name, display name, state, start mode, path, and the account it runs as |-| **Scheduled Tasks** | Task name, path, logon type, run level, triggers, actions, last/next run time, and the account it runs as |-| **IIS App Pools** | Pool name, runtime version, pipeline mode, auto-start setting, identity type, and the account it runs as |--Each dependency is automatically linked to the PAM Account whose credentials it uses. Discovery resolves account references in multiple formats including `DOMAIN\user`, `[email protected]`, UPN, and local account names.--## Prerequisites--1. **Infisical Gateway** — Deployed in your network with access to the domain controller and Windows machines-2. **LDAP access** — The domain controller must be reachable on the LDAP port (default: 389)-3. **AD credentials** — A domain account with read access to query computer and user objects via LDAP-4. **WinRM access** (optional, for dependency scanning) — Target Windows machines should have WinRM enabled on port 5985--<Warning>- Machines without WinRM enabled will be skipped during the dependency scan phase. This is expected for domain controllers and machines not configured for remote management. These are reported as machine-level errors in the run details.-</Warning>--## Setup--<Steps>- <Step title="Ensure Gateway is Running">- Deploy an [Infisical Gateway](/documentation/platform/gateways/overview) in your network with connectivity to your domain controller (LDAP port) and Windows machines (WinRM port 5985).- </Step>-- <Step title="Create a Discovery Source">- 1. Navigate to your PAM project and go to the **Discovery** tab- 2. Click **Add Discovery Source** and select **Active Directory**- 3. Fill in the configuration:-- <ParamField path="Name" type="string" required>- A friendly name for this discovery source (e.g., `corp-ad-discovery`)- </ParamField>-- <ParamField path="Gateway" type="string" required>- Select the Gateway that has network access to your domain controller and Windows machines- </ParamField>-- <ParamField path="Domain FQDN" type="string" required>- The fully-qualified domain name (e.g., `corp.example.com`)- </ParamField>-- <ParamField path="DC Address" type="string" required>- The hostname or IP address of the domain controller (e.g., `10.0.1.10`)- </ParamField>-- <ParamField path="Port" type="number" required>- The LDAP port (default: `389`)- </ParamField>-- <ParamField path="Username" type="string" required>- An Active Directory account with read access to query the directory- </ParamField>-- <ParamField path="Password" type="string" required>- The password for the AD account- </ParamField>-- <ParamField path="Schedule" type="string">- How often to run discovery automatically:- - **Manual** — Only runs when triggered- - **Daily** — Runs once per day- - **Weekly** — Runs once per week- </ParamField>-- Clicking **Create** will validate the LDAP connection through the Gateway before saving.- </Step>-- <Step title="Run a Discovery Scan">- After creating the source, click **Trigger Scan** to start the first discovery run. You can monitor progress in real-time from the **Runs** tab.- </Step>-</Steps>--## Scan Phases--Each discovery scan executes two phases sequentially:--### Phase 1: AD Enumeration--Connects to the domain controller via LDAP through the Gateway and:--1. Queries all **computer objects** — creates or updates a Windows Server PAM Resource for each-2. Queries all **user objects** — creates or updates PAM Accounts, classifying each as a User or Service account-3. Marks resources and accounts not found in this scan as **Stale**--### Phase 2: Dependency Scan--For each discovered Windows machine, connects via WinRM through the Gateway and:--1. Runs PowerShell commands to enumerate Windows Services, Scheduled Tasks, and IIS App Pools-2. Discovers **local user accounts** on each machine-3. Resolves each dependency's run-as account to link it to the correct PAM Account-4. Reports per-machine errors for machines that are unreachable or don't have WinRM enabled--## Reviewing Results--After a scan completes, review the results from the discovery source detail page:--- **Runs tab** — Shows scan history with status, duration, and counts of discovered/new/stale items. Expand a run to see per-phase progress and any machine-level errors.-- **Resources tab** — Lists all discovered Windows servers with OS version, dependency count, and stale/active status. Click a resource to navigate to its detail page.-- **Accounts tab** — Lists all discovered accounts with their resource, account type, dependency count, last logon, and stale/active status. Click an account to navigate to its detail page.--### Viewing Dependencies--From an account's detail page, select the **Dependencies** tab to see all services, tasks, and app pools that run under that account's credentials. Each dependency shows:--- Name and type (Service, Task, or App Pool)-- The resource (machine) it runs on-- Current state (e.g., Running, Stopped)-- Whether it's enabled for credential rotation--### Enabling Dependencies for Rotation--Dependencies are discovered with rotation **disabled** by default. To include a dependency in credential rotation:--1. Navigate to the account's **Dependencies** tab-2. Click the menu on a dependency and select **Enable**--When the account's password is rotated, Infisical will automatically update the credentials for all enabled dependencies.--<Info>- The enabled/disabled state of a dependency is never overwritten by subsequent discovery scans. Your configuration is always preserved.-</Info>diff --git a/docs/documentation/platform/pam/discovery/overview.mdx b/docs/documentation/platform/pam/discovery/overview.mdxdeleted file mode 100644index e750f7c26f..0000000000--- a/docs/documentation/platform/pam/discovery/overview.mdx+++ /dev/null@@ -1,98 +0,0 @@-----title: "Discovery"-sidebarTitle: "Overview"-description: "Automatically discover privileged accounts, resources, and service dependencies across your infrastructure."------Infisical PAM Discovery automates the process of finding and cataloging privileged accounts, resources, and service dependencies in your environment. Instead of manually enumerating every server, account, and service, Discovery scans your infrastructure and builds a complete inventory automatically.--## How It Works--Discovery operates in phases that vary by source type. A typical scan includes:--```mermaid-flowchart LR- DS[Discovery Source] --> P1[Phase 1<br/>Infrastructure Scan]- P1 --> R[Resources]- P1 --> A[Accounts]- P1 --> P2[Phase 2<br/>Dependency Scan]- P2 --> D[Dependencies]-```--1. **Infrastructure Scan** — Connects to your environment and enumerates machines and accounts. Each machine becomes a PAM Resource, and each account becomes a PAM Account.--2. **Dependency Scan** — Connects to each discovered machine and enumerates services and tasks that run under specific accounts. These are stored as **Dependencies** linked to the account whose credentials they use.--All network traffic flows through your [Infisical Gateway](/documentation/platform/gateways/overview), so no inbound firewall rules are needed.--## Core Concepts--<CardGroup cols={3}>- <Card title="Discovery Source" icon="radar">- A configured scan target that defines where and how to discover resources and accounts in your environment.- </Card>- <Card title="Discovery Run" icon="play">- A single execution of a scan. Runs can be triggered manually or on a schedule.- </Card>- <Card title="Dependency" icon="link">- A service, task, or application that runs under a discovered account's credentials.- </Card>-</CardGroup>--### Discovery Sources--A Discovery Source is the configuration that tells Infisical what to scan. It includes:--- **Connection details** — How to reach the target environment (addresses, ports, protocols)-- **Credentials** — An account with the necessary access to perform the scan (encrypted at rest)-- **Gateway** — The Infisical Gateway that routes scan traffic into your network-- **Schedule** — Manual, daily, or weekly--### Discovery Runs--Each scan creates a Run record that tracks:--- **Status** — Running, completed, or failed-- **Phase progress** — Per-phase status with machine-level error details-- **Discovery counts** — How many resources, accounts, and dependencies were found, including counts of newly discovered and stale items--### Staleness Tracking--Resources and accounts that were present in a previous run but not found in the current run are marked as **Stale**. Stale items are never automatically deleted — they remain visible with a "Stale" badge so you can investigate why a previously-discovered item is no longer responding.--### Dependencies--Dependencies represent services and tasks that rely on a specific account's credentials. Discovery currently detects three types:--| Type | Description |-|------|-------------|-| **Windows Service** | A Windows service configured to run under a specific account |-| **Scheduled Task** | A Windows scheduled task that runs under a specific account |-| **IIS App Pool** | An IIS application pool configured with a specific identity |--Each dependency has an **Enabled** toggle that defaults to off. When enabled, Infisical will automatically update the dependency's credentials after rotating the linked account's password during [credential rotation](/documentation/platform/pam/product-reference/credential-rotation).--<Info>- Dependencies discovered by a scan will never have their **Enabled** status overwritten by subsequent scans. Your explicit enable/disable decisions are always preserved.-</Info>--## Supported Discovery Types--<CardGroup cols={2}>- <Card title="Active Directory" icon="windows" href="/documentation/platform/pam/discovery/active-directory">- Discover domain-joined Windows servers, domain and local user accounts, and service dependencies across your AD environment.- </Card>-</CardGroup>--## Prerequisites--Prerequisites vary by discovery type, but all sources require:--1. **Infisical Gateway** — A Gateway deployed in your network with access to the target infrastructure-2. **Scan credentials** — An account with the necessary permissions to enumerate your environment (encrypted at rest)--Refer to the specific discovery type documentation for detailed prerequisites.--<Warning>- Discovery requires an Infisical Gateway. All scan traffic is routed through the Gateway. No direct connectivity from Infisical to your infrastructure is needed.-</Warning>diff --git a/docs/documentation/platform/pam/folders/overview.mdx b/docs/documentation/platform/pam/folders/overview.mdxnew file mode 100644index 0000000000..684ff21db5--- /dev/null+++ b/docs/documentation/platform/pam/folders/overview.mdx@@ -0,0 +1,98 @@+---+title: "Folders"+sidebarTitle: "Folders"+description: "Organize accounts and control who can access them."+---++Folders are how you organize accounts in PAM. Instead of having a flat list of every database and server, you group related accounts together — by team, environment, region, or whatever makes sense for your organization.++But folders aren't just for organization. They're also how you control access. When you grant someone access to a folder, they can access every account inside it.++## Creating a Folder++<Steps>+ <Step title="Navigate to Folders">+ Go to **Privileged Access Management → Folders** and click **Create Folder**.+ </Step>+ <Step title="Configure the folder">+ | Field | Description |+ |-------|-------------|+ | **Name** | A unique name (e.g., `prod-databases`, `platform-team`) |+ | **Description** | Optional context about what this folder contains |++ Click **Create**.+ </Step>+</Steps>++Once created, you can start adding accounts to it. But first, you'll probably want to set up who can manage this folder.++## Managing Access++Access to a folder is controlled through **memberships**. You assign users or groups a role, and that role determines what they can do.++### Adding Members++<Steps>+ <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>+ <Step title="Add a member">+ Click **Add Member** and configure:++ | Field | Description |+ |-------|-------------|+ | **User/Group** | Who you're granting access to |+ | **Role** | What they can do (see roles below) |+ | **Expires** | Optional expiration date for temporary access |++ Click **Add**.+ </Step>+</Steps>++### Roles++| Role | What they can do |+|------|------------------|+| **Admin** | Full control — create/edit/delete accounts, manage memberships, connect to accounts, view all sessions |+| **Connector** | Connect to accounts, view their own sessions |+| **Requester** | Request access to accounts |+| **Auditor** | View all sessions and logs (read-only) |++When you assign a role on a folder, it applies to **all accounts** inside that folder. This is the main way to grant access — you don't have to set up permissions on each account individually.++### Time-Bound Access++For contractors or temporary team members, set an expiration when adding the membership. The access is automatically revoked when it expires — no manual cleanup needed.++### Groups vs Individual Users++You can grant access to individual users or to groups:+- **Individual users** — straightforward, easy to audit+- **Groups** — access follows group membership; when someone joins or leaves the group, their folder access updates automatically++Groups are managed at the organization level and can sync from identity providers like Okta or Azure AD.++## What's Inside a Folder++The folder detail page shows:+- **Accounts** — all accounts in this folder+- **Memberships** — who has access+- **Activity** — recent actions++From here you can add new accounts, manage existing ones, or adjust who has access.++## Next Steps++Now that you have a folder, you'll want to add accounts to it. But before that, you might want to set up templates to define what rules apply to those accounts.++<CardGroup cols={2}>+ <Card title="Templates" icon="layer-group" href="/documentation/platform/pam/templates/overview">+ Define session rules before adding accounts.+ </Card>+ <Card title="Accounts" icon="user-lock" href="/documentation/platform/pam/accounts/overview">+ Add databases and servers to your folder.+ </Card>+</CardGroup>diff --git a/docs/documentation/platform/pam/getting-started.mdx b/docs/documentation/platform/pam/getting-started.mdxnew file mode 100644index 0000000000..5bb9ea788f--- /dev/null+++ b/docs/documentation/platform/pam/getting-started.mdx@@ -0,0 +1,40 @@+---+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/getting-started/accounts.mdx b/docs/documentation/platform/pam/getting-started/accounts.mdxdeleted file mode 100644index 551057eaaf..0000000000--- a/docs/documentation/platform/pam/getting-started/accounts.mdx+++ /dev/null@@ -1,65 +0,0 @@-----title: "PAM Account"-sidebarTitle: "Accounts"-description: "Learn how to create and manage accounts in PAM to control access to resources like databases and servers."------An **Account** contains the credentials (such as a username and password) used to connect to a [Resource](/documentation/platform/pam/getting-started/resources).--## Relationship to Resources--Accounts belong to Resources. A single Resource can have multiple Accounts associated with it, each with different permission levels.--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)- - **Account 1**: `postgres` (Superuser)- - **Account 2**: `app-user` (Read/Write)- - **Account 3**: `analytics` (Read-only)--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--<Info>- **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 **Resources** tab in your PAM project, click into the resource you want to add an account to, and then click **Add Account**.----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.----Clicking **Create Account** will trigger a validation check. Infisical will attempt to connect to the resource using the provided credentials to verify they are valid.--## Account Metadata--Accounts support custom key-value metadata that can be used to organize and classify access credentials.--- **At creation**: You can attach metadata key-value pairs when creating an account through the creation modal.-- --- **On the details page**: After creation, account metadata can be viewed and edited from the account details page.-- --- **Filtering**: You can filter the accounts list view by metadata key-value pairs.-- --## Account Policies--You can assign an **Account Policy** to an account to enforce behavioral rules during sessions — such as blocking dangerous commands or masking sensitive data in session logs.--To assign a policy, select one from the **Account Policy** dropdown when creating or editing an account. To learn more about creating and managing policies, see the [Account Policies guide](/documentation/platform/pam/product-reference/account-policies).--## Automated Credential Rotation--Infisical supports automated credential rotation for some accounts on select resources, allowing you to automatically change passwords at set intervals to enhance security.--To learn more about how to configure this, please refer to the [Credential Rotation guide](/documentation/platform/pam/product-reference/credential-rotation).diff --git a/docs/documentation/platform/pam/getting-started/resources.mdx b/docs/documentation/platform/pam/getting-started/resources.mdxdeleted file mode 100644index de6634fb82..0000000000--- a/docs/documentation/platform/pam/getting-started/resources.mdx+++ /dev/null@@ -1,61 +0,0 @@-----title: "PAM Resource"-sidebarTitle: "Overview"-description: "Learn how to add and configure resources like databases and servers, and set up automated credential rotation."------A resource represents a target system, such as a database, server, or application, that you want to manage access to. Some examples of resources are:-- PostgreSQL Database-- MCP Server-- Linux Server-- Web Application--## Prerequisites--Before you can create a resource, you must have an **Infisical Gateway** deployed that is able to reach the target resource over the network.--The Gateway acts as a secure bridge, allowing Infisical to reach your private infrastructure without exposing it to the public internet. When creating a resource, you will be asked to specify which Gateway should be used to connect to it.--[Read the Gateway Deployment Guide](/documentation/platform/gateways/gateway-deployment)--## Creating a Resource--To add a resource, navigate to the **Resources** tab in your PAM project and click **Add Resource**.----Next, select the type of resource you want to add.----After selecting a resource type, provide the necessary connection details. The required fields vary depending on the resource type.--**Important**: You must select the **Gateway** that has network access to this resource.--In this PostgreSQL example, you provide details such as host, port, gateway, and database name.----Clicking **Create Resource** will trigger a connection test from the selected Gateway to your target resource. If the connection fails, an error message will be displayed to help you troubleshoot (usually indicating a network firewall issue between the Gateway and the Resource).--## Resource Metadata--Resources support custom key-value metadata that can be used to organize and classify your infrastructure. Common use cases include environment labels, cost centers, compliance tags, and team ownership.--- **At creation**: You can attach metadata key-value pairs when creating a resource through the creation modal.-- --- **On the details page**: After creation, resource metadata can be viewed and edited from the resource details page.-- --- **Filtering**: You can filter the resources list view by metadata key-value pairs.-- --## Automated Credential Rotation--Some resources, such as PostgreSQL, support automated credential rotation to enhance your security posture. This feature requires configuring a privileged "Rotation Account" on the resource.--To learn more about how to configure this, please refer to the [Credential Rotation guide](/documentation/platform/pam/product-reference/credential-rotation).diff --git a/docs/documentation/platform/pam/getting-started/resources/active-directory.mdx b/docs/documentation/platform/pam/getting-started/resources/active-directory.mdxdeleted file mode 100644index c7596ec0f8..0000000000--- a/docs/documentation/platform/pam/getting-started/resources/active-directory.mdx+++ /dev/null@@ -1,145 +0,0 @@-----title: "Active Directory"-sidebarTitle: "Active Directory"-description: "Learn how to configure Active Directory access through Infisical PAM for secure, audited management of your AD domain controllers and domain-joined resources."------Infisical PAM supports secure management of Active Directory (AD) domain controllers.-An AD Server resource represents a domain controller and serves as the central point for managing domain-joined Windows servers, enabling you to organize your infrastructure by domain.--## How It Works--An Active Directory resource in Infisical PAM represents a domain controller and acts as the organizational hub for domain-joined machines. Windows Server resources can be linked to an AD resource to indicate they belong to that domain. When a user needs to access domain resources, they navigate to an AD account and select from the list of related Windows servers that are joined to the domain.--```mermaid-flowchart LR- AD[AD Server Resource<br/>corp.example.com]- WS1[Windows Server<br/>web-server-01]- WS2[Windows Server<br/>db-server-01]- WS3[Windows Server<br/>app-server-01]- ACC[AD Account<br/>domain-admin]-- WS1 -->|domain joined| AD- WS2 -->|domain joined| AD- WS3 -->|domain joined| AD- ACC -->|belongs to| AD- ACC -.->|access via| WS1- ACC -.->|access via| WS2- ACC -.->|access via| WS3-```--### Key Concepts--1. **Domain Controller**: The AD Server resource represents your domain controller. It stores the domain name, DC address, and serves as the parent for domain-joined resources and domain accounts.--2. **Domain Join**: Windows Server resources can be associated with an AD Server resource to indicate they are part of that Active Directory domain. This enables you to view all domain-joined servers from the AD resource's **Related Resources** tab.--3. **Related Resources**: From an AD account's detail page, users can see all Windows servers joined to the domain. This provides a clear view of which machines are accessible with domain credentials.--4. **Account Types**: AD accounts can be categorized as either **User** accounts or **Service** accounts, allowing you to organize and manage different types of domain credentials.--## Prerequisites--Before configuring Active Directory access in Infisical PAM, you need:--1. **Infisical Gateway** - A Gateway deployed in your network with access to the AD domain controller-2. **LDAP Access** - The domain controller must be reachable on the LDAP port (default: 389)-3. **Domain Credentials** - A username and password for an Active Directory account--<Warning>- **Gateway Required**: Active Directory access requires an Infisical Gateway to be deployed and registered with your Infisical instance. The Gateway must have network connectivity to your domain controller on the LDAP port (default: 389).-</Warning>--## Create the PAM Resource--The PAM Resource represents the Active Directory domain controller you want to manage.--<Steps>- <Step title="Ensure Gateway is Running">- Before creating the resource, ensure you have an Infisical Gateway running and registered with your Infisical instance. The Gateway must have network access to your AD domain controller.- </Step>-- <Step title="Create the Resource in Infisical">- 1. Navigate to your PAM project and go to the **Resources** tab- 2. Click **Add Resource** and select **Active Directory**- 3. Fill in the connection details:-- <ParamField path="Name" type="string" required>- A friendly name for this resource (e.g., `corp-dc`, `prod-domain-controller`)- </ParamField>-- <ParamField path="Gateway" type="string" required>- Select the Gateway that has network access to this domain controller- </ParamField>-- <ParamField path="Domain" type="string" required>- The Active Directory domain name (e.g., `corp.example.com`)- </ParamField>-- <ParamField path="DC Address" type="string" required>- The hostname or IP address of the domain controller (e.g., `10.0.1.10` or `dc.corp.example.com`)- </ParamField>-- <ParamField path="Port" type="number" required>- The LDAP port (default: `389`)- </ParamField>-- Clicking **Create Resource** will trigger a connection test from the selected Gateway to your domain controller. Infisical verifies that the server is reachable and responds to LDAP requests.- </Step>-</Steps>--## Create PAM Accounts--A PAM Account represents a specific Active Directory user account in the domain. You can create multiple accounts per resource with different permission levels.--<Steps>- <Step title="Navigate to the Resource">- After creating the resource, click into it to open the resource detail view. Select the **Accounts** tab on the right.- </Step>-- <Step title="Add Account">- Click **Add Account**.- </Step>-- <Step title="Fill in Account Details">- Fill in the account details:-- <ParamField path="Name" type="string" required>- A friendly name for this account (e.g., `domain-admin`, `svc-deploy`)- </ParamField>-- <ParamField path="Account Type" type="string" required>- Select the type of AD account:- - **User Account** - A standard Active Directory user account- - **Service Account** - An Active Directory service account- </ParamField>-- <ParamField path="Username" type="string" required>- The Active Directory username (e.g., `admin` or `svc-deploy`). Credentials are validated using UPN format (`username@domain`) against the domain controller.- </ParamField>-- <ParamField path="Password" type="string" required>- The Active Directory password for this user- </ParamField>-- Clicking **Create Account** will validate the credentials by performing an LDAP bind against the domain controller through the Gateway.- </Step>-</Steps>--## Domain Join (Related Resources)--Active Directory resources support linking Windows Server resources to represent domain membership. This allows you to see all servers that belong to a particular AD domain from a single view.--### Joining a Windows Server to a Domain--When creating or editing a [Windows Server](/documentation/platform/pam/getting-started/resources/windows-server) resource, you can select an **Active Directory Domain** from the dropdown. This associates the Windows server with the AD domain controller, indicating that it is a domain-joined machine.--### Viewing Related Resources--Once Windows servers are associated with an AD resource, you can view them from the AD resource's detail page:--1. Navigate to the Active Directory resource-2. Select the **Related Resources** tab (next to the **Accounts** tab)-3. All Windows servers (and other resources) joined to this domain are listed here--This provides a centralized view of your domain infrastructure, making it easy to understand which servers belong to which domain.diff --git a/docs/documentation/platform/pam/getting-started/resources/aws-iam.mdx b/docs/documentation/platform/pam/getting-started/resources/aws-iam.mdxdeleted file mode 100644index 8975098a78..0000000000--- a/docs/documentation/platform/pam/getting-started/resources/aws-iam.mdx+++ /dev/null@@ -1,287 +0,0 @@-----title: "AWS IAM"-sidebarTitle: "AWS IAM"-description: "Learn how to configure AWS access through Infisical PAM for secure, audited, and just-in-time access to AWS, covering both the AWS CLI and the Management Console."------Infisical PAM supports secure, just-in-time access to AWS through STS role chaining. Each access request issues short-lived credentials that can be used directly with the **AWS CLI** or exchanged for a federated **AWS Management Console** sign-in URL. Both come from the same session, so there's no duplication and CloudTrail attribution stays consistent.--## How It Works--Unlike database or SSH resources that require a Gateway for network connectivity, AWS access works differently. Infisical uses AWS STS (Security Token Service) to assume roles on your behalf and returns the temporary credentials. Those credentials are usable directly by the AWS CLI, and can also be exchanged for a federated console sign-in URL on demand.--```mermaid-sequenceDiagram- participant User- participant Infisical- participant Resource Role as Resource Role<br/>(Your AWS Account)- participant Target Role as Target Role<br/>(Your AWS Account)- participant Console as AWS Console-- User->>Infisical: Request AWS Console access- Infisical->>Resource Role: AssumeRole (with ExternalId)- Resource Role-->>Infisical: Temporary credentials- Infisical->>Target Role: AssumeRole (role chaining)- Target Role-->>Infisical: Session credentials- Infisical->>Console: Generate federation URL- Console-->>Infisical: Signed console URL- Infisical-->>User: Return console URL- User->>Console: Open AWS Console (federated)-```--### Key Concepts--1. **Resource Role**: An IAM role in your AWS account that trusts Infisical. This is the "bridge" role that Infisical assumes first.--2. **Target Role**: The IAM role that end users will actually use in the AWS Console. The Resource Role assumes this role on behalf of the user.--3. **Role Chaining**: Infisical uses AWS role chaining - it first assumes the Resource Role, then uses those credentials to assume the Target Role. This provides an additional layer of security and audit capability.--4. **External ID**: A unique identifier (your Infisical Project ID) used in the trust policy to prevent [confused deputy attacks](https://docs.aws.amazon.com/IAM/latest/UserGuide/confused-deputy.html).--## Session Behavior--### Session Duration--The session duration is set when creating the account and applies to all access requests. You can specify the duration using human-readable formats like `15m`, `30m`, or `1h`. Due to AWS role chaining limitations:--- **Minimum**: 15 minutes (`15m`)-- **Maximum**: 1 hour (`1h`)--### Session Tracking--Infisical tracks:-- When the session was created-- Who accessed which role-- When the session expires--<Info>- **Important**: AWS Console sessions cannot be terminated early. Once a federated URL is generated, the session remains valid until the configured duration expires. However, you can [revoke active sessions](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_revoke-sessions.html) by modifying the role's trust policy.-</Info>--### CloudTrail Integration--All actions performed in the AWS Console are logged in [AWS CloudTrail](https://console.aws.amazon.com/cloudtrail). The session is identified by the `RoleSessionName`, which includes the user's email address for attribution:--```-arn:aws:sts::123456789012:assumed-role/pam-readonly/[email protected]-```--This allows you to correlate Infisical PAM sessions with CloudTrail logs for complete audit visibility.--## Prerequisites--Before configuring AWS Console access in Infisical PAM, you need to set up two IAM roles in your AWS account:--1. **Resource Role** - Trusted by Infisical, can assume target roles-2. **Target Role(s)** - The actual roles users will use in the console--<Info>- **No Gateway Required**: Unlike database or SSH resources, AWS Console access does not require an Infisical Gateway. Infisical communicates directly with AWS APIs.-</Info>--## Create the PAM Resource--The PAM Resource represents the connection between Infisical and your AWS account. It contains the Resource Role that Infisical will assume.--<Steps>- <Step title="Create the Resource Role Permissions Policy">- First, create an IAM policy that allows the Resource Role to assume your target roles. For simplicity, you can use a wildcard to allow assuming any role in your account:-- ```json- {- "Version": "2012-10-17",- "Statement": [{- "Effect": "Allow",- "Action": "sts:AssumeRole",- "Resource": "arn:aws:iam::<YOUR_ACCOUNT_ID>:role/*"- }]- }- ```-- -- <Note>- **For more granular control**: If you want to restrict which roles the Resource Role can assume, replace the wildcard (`/*`) with a more specific pattern. For example:- - `arn:aws:iam::<YOUR_ACCOUNT_ID>:role/pam-*` to only allow roles with the `pam-` prefix- - `arn:aws:iam::<YOUR_ACCOUNT_ID>:role/infisical-*` to only allow roles with the `infisical-` prefix-- This allows you to limit the blast radius of the Resource Role's permissions.- </Note>- </Step>-- <Step title="Create the Resource Role with Trust Policy">- Create an IAM role (e.g., `InfisicalResourceRole`) with:- - The permissions policy from the previous step attached- - The following trust policy:-- ```json- {- "Version": "2012-10-17",- "Statement": [{- "Effect": "Allow",- "Principal": {- "AWS": "arn:aws:iam::<INFISICAL_AWS_ACCOUNT_ID>:root"- },- "Action": "sts:AssumeRole",- "Condition": {- "StringEquals": {- "sts:ExternalId": "<YOUR_INFISICAL_PROJECT_ID>"- }- }- }]- }- ```-- -- -- <Warning>- **Security Best Practice**: Always use the External ID condition. This prevents confused deputy attacks where another Infisical customer could potentially trick Infisical into assuming your role.- </Warning>-- **Infisical AWS Account IDs:**- | Region | Account ID |- |--------|------------|- | US | `381492033652` |- | EU | `345594589636` |-- <Note>- **For Dedicated Instances**: Your AWS account ID differs from the ones listed above. Please contact Infisical support to obtain your dedicated AWS account ID.- </Note>-- <Note>- **For Self-Hosted Instances**: Use the AWS account ID where your Infisical instance is deployed. This is the account that hosts your Infisical infrastructure and will be assuming the Resource Role.- </Note>- </Step>-- <Step title="Create the Resource in Infisical">- 1. Navigate to your PAM project and go to the **Resources** tab- 2. Click **Add Resource** and select **AWS IAM**- 3. Enter a name for the resource (e.g., `production-aws`)- 4. Enter the **Resource Role ARN** - the ARN of the role you created in the previous step-- -- Clicking **Create Resource** will validate that Infisical can assume the Resource Role. If the connection fails, verify:- - The trust policy has the correct Infisical AWS account ID- - The External ID matches your project ID- - The role ARN is correct- </Step>-</Steps>--## Create PAM Accounts--A PAM Account represents a specific Target Role that users can request access to. You can create multiple accounts per resource, each pointing to a different target role with different permission levels.--<Steps>- <Step title="Create the Target Role Trust Policy">- Each target role needs a trust policy that allows your Resource Role to assume it:-- ```json- {- "Version": "2012-10-17",- "Statement": [{- "Effect": "Allow",- "Principal": {- "AWS": "arn:aws:iam::<YOUR_ACCOUNT_ID>:role/InfisicalResourceRole"- },- "Action": "sts:AssumeRole",- "Condition": {- "StringEquals": {- "sts:ExternalId": "<YOUR_INFISICAL_PROJECT_ID>"- }- }- }]- }- ```-- - </Step>-- <Step title="Create the Account in Infisical">- 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:-- -- <ParamField path="Name" type="string" required>- A friendly name for this account (e.g., `readonly`, `admin`, `developer`)- </ParamField>-- <ParamField path="Description" type="string">- Optional description of what this account is used for- </ParamField>-- <ParamField path="Target Role ARN" type="string" required>- The ARN of the IAM role users will assume (e.g., `arn:aws:iam::123456789012:role/pam-readonly`)- </ParamField>-- <ParamField path="Default Session Duration" type="string" required>- Session duration using human-readable format (e.g., `15m`, `30m`, `1h`). Minimum 15 minutes, maximum 1 hour.-- <Warning>- Due to AWS role chaining limitations, the maximum session duration is **1 hour**, regardless of the target role's configured maximum session duration.- </Warning>- </ParamField>- </Step>-</Steps>--## Access AWS--Once your resource and accounts are configured, users can request access through Infisical. A single access request creates one session whose credentials power both the CLI and (optionally) the console. Clicking **Open in AWS Console** does not start a separate session.----<Steps>- <Step title="Navigate to the resource">- Go to the **Resources** tab in your PAM project and open the AWS IAM resource.- </Step>-- <Step title="Select the account">- In the resource's accounts section, find the AWS account you want to access.- </Step>-- <Step title="Request Access">- Click the **Access** button for that account. Infisical will:-- 1. Assume the Resource Role using your project's External ID- 2. Assume the Target Role using role chaining- 3. Return the temporary STS credentials to your browser-- The credentials shown are valid until the configured session duration expires.- </Step>-- <Step title="Use the AWS CLI">- The access dialog shows three fields with copy buttons:-- - **Access Key ID**- - **Secret Access Key**- - **Session Token**-- Use them however your tooling expects. Common options:-- - Export as environment variables (Bash / Zsh):- ```bash- export AWS_ACCESS_KEY_ID=ASIA...- export AWS_SECRET_ACCESS_KEY=...- export AWS_SESSION_TOKEN=...- ```- - Equivalent `$env:` assignments in PowerShell- - Append to a named profile in `~/.aws/credentials`:- ```ini- [infisical-pam]- aws_access_key_id = ASIA...- aws_secret_access_key = ...- aws_session_token = ...- ```-- All standard AWS SDKs and tooling will pick up the credentials automatically once they are in the environment or credentials file.- </Step>-- <Step title="(Optional) Open the AWS Console">- Click **Open in AWS Console** at the bottom of the access dialog. Infisical exchanges the same STS credentials for a federated sign-in URL and opens it in a new tab. No second session is created, and CloudTrail attribution stays consistent with your CLI activity.- </Step>-</Steps>\ No newline at end of filediff --git a/docs/documentation/platform/pam/getting-started/resources/kubernetes.mdx b/docs/documentation/platform/pam/getting-started/resources/kubernetes.mdxdeleted file mode 100644index 1b4e421717..0000000000--- a/docs/documentation/platform/pam/getting-started/resources/kubernetes.mdx+++ /dev/null@@ -1,396 +0,0 @@-----title: "Kubernetes"-sidebarTitle: "Kubernetes"-description: "Learn how to configure Kubernetes cluster access through Infisical PAM for secure, audited, and just-in-time access to your Kubernetes clusters."------Infisical PAM supports secure, just-in-time access to Kubernetes clusters. Your team can access Kubernetes clusters without sharing long-lived credentials, while maintaining a complete audit trail of who accessed what and when.--There are two ways to authenticate:--- **Service Account Token** — you provide a static token that the Gateway injects into requests. Simple to set up, but the token is long-lived and stored in Infisical.-- **Gateway** — the Gateway uses its own pod identity and [Kubernetes impersonation](https://kubernetes.io/docs/reference/access-authn-authz/authentication/#user-impersonation) to act as a target service account. No tokens are stored in Infisical — you only provide a service account name and namespace.--## How It Works--### Service Account Token--When using a service account token, the Gateway forwards kubectl requests to the Kubernetes API server using the provided token.--```mermaid-sequenceDiagram- participant User- participant CLI as Infisical CLI- participant Infisical- participant Gateway as Infisical Gateway- participant K8s as Kubernetes API Server-- User->>CLI: Request Kubernetes access- CLI->>Infisical: Authenticate & request session- Infisical-->>CLI: Session credentials & Gateway info- CLI->>CLI: Start local proxy- CLI->>Gateway: Establish secure tunnel- User->>CLI: kubectl commands- CLI->>Gateway: Proxy kubectl requests- Gateway->>K8s: Forward with SA token- K8s-->>Gateway: Response- Gateway-->>CLI: Return response- CLI-->>User: kubectl output-```--### Gateway (Impersonation)--When using Gateway auth, the Gateway authenticates as itself using its own pod service account, then tells the Kubernetes API to treat the request as if it came from the target service account.--```mermaid-sequenceDiagram- participant User- participant CLI as Infisical CLI- participant Infisical- participant Gateway as Infisical Gateway- participant K8s as Kubernetes API Server-- User->>CLI: Request Kubernetes access- CLI->>Infisical: Authenticate & request session- Infisical-->>CLI: Session credentials & Gateway info- CLI->>CLI: Start local proxy- CLI->>Gateway: Establish secure tunnel- Gateway->>Infisical: Fetch session credentials (SA name + namespace)- User->>CLI: kubectl commands- CLI->>Gateway: Proxy kubectl requests- Gateway->>K8s: Forward with own token + Impersonate-User header- K8s->>K8s: Verify impersonation permission, apply target SA's RBAC- K8s-->>Gateway: Response- Gateway-->>CLI: Return response- CLI-->>User: kubectl output-```--No tokens are stored in Infisical. The Gateway reads its own pod token from the filesystem (auto-mounted by Kubernetes) and auto-discovers the Kubernetes API server from environment variables.--### Key Concepts--1. **Gateway**: An Infisical Gateway deployed in your network that can reach the Kubernetes API server. The Gateway handles secure communication between users and your cluster.--2. **Service Account Token**: A Kubernetes service account token that grants access to the cluster. This token is stored securely in Infisical and used by the Gateway to authenticate with the Kubernetes API.--3. **Impersonation**: A Kubernetes feature where one identity (the Gateway) can act on behalf of another (the target service account). The Gateway authenticates as itself and adds `Impersonate-User` headers. Kubernetes checks if the Gateway has permission to impersonate the target, then applies the target's RBAC rules.--4. **Local Proxy**: The Infisical CLI starts a local proxy on your machine that intercepts kubectl commands and routes them securely through the Gateway to your cluster.--5. **Session Tracking**: All access sessions are logged, including when the session was created, who accessed the cluster, session duration, and when it ended.--### Session Tracking--Infisical tracks:-- When the session was created-- Who accessed which cluster-- Session duration-- All kubectl commands executed during the session-- When the session ended--<Info>- **Session Logs**: After ending a session (by stopping the proxy), you can view detailed session logs in the Sessions page, including all commands executed during the session.-</Info>--## Prerequisites--Before configuring Kubernetes access in Infisical PAM, you need:--1. **Infisical Gateway** - A Gateway deployed in your network with access to the Kubernetes API server-2. **Infisical CLI** - The Infisical CLI installed on user machines-3. Depending on your auth method:- - **Service Account Token**: A Kubernetes service account with appropriate RBAC permissions and a static token- - **Gateway**: The Gateway must be deployed **inside the Kubernetes cluster** as a pod, with a ClusterRole that allows impersonation of target service accounts--<Warning>- **Gateway Required**: Kubernetes access requires an Infisical Gateway to be deployed and registered with your Infisical instance. For Gateway auth, the Gateway must be running as a pod inside the cluster.-</Warning>--## Create the PAM Resource--The PAM Resource represents the connection between Infisical and your Kubernetes cluster.--<Steps>- <Step title="Ensure Gateway is Running">- Before creating the resource, ensure you have an Infisical Gateway running and registered with your Infisical instance. The Gateway must have network access to your Kubernetes API server.- </Step>-- <Step title="Create the Resource in Infisical">- 1. Navigate to your PAM project and go to the **Resources** tab- 2. Click **Add Resource** and select **Kubernetes**- 3. Enter a name for the resource (e.g., `production-k8s`, `staging-cluster`)- 4. Enter the **Kubernetes API Server URL** - the URL to your Kubernetes API endpoint (e.g.`https://kubernetes.example.com:6443`). If using Gateway auth with an in-cluster gateway, use `https://kubernetes.default.svc.cluster.local`.- 5. Select the **Gateway** that has access to this cluster- 6. Configure SSL verification options if needed-- <Note>- **SSL Verification**: You may need to disable SSL verification if your Kubernetes API server uses a self-signed certificate or an in-cluster CA. For Gateway auth with `https://kubernetes.default.svc.cluster.local`, disable SSL verification here — the Gateway will use strict TLS with the in-cluster CA certificate during sessions.- </Note>- </Step>-</Steps>--## Set Up Authentication--Choose one of the two authentication methods below based on your setup.--<Tabs>- <Tab title="Service Account Token">- Use this method when you have a static service account token, or when the Gateway is not running inside the Kubernetes cluster.-- ### Create a Service Account-- <Steps>- <Step title="Create the Service Account YAML">- Create a file named `sa.yaml` with the following content:-- ```yaml sa.yaml- apiVersion: v1- kind: ServiceAccount- metadata:- name: infisical-pam-sa- namespace: kube-system- ---- # Bind the ServiceAccount to the desired ClusterRole- # This example uses cluster-admin - adjust based on your needs- apiVersion: rbac.authorization.k8s.io/v1- kind: ClusterRoleBinding- metadata:- name: infisical-pam-binding- subjects:- - kind: ServiceAccount- name: infisical-pam-sa- namespace: kube-system- roleRef:- kind: ClusterRole- name: cluster-admin # Change this to a more restrictive role as needed- apiGroup: rbac.authorization.k8s.io- ---- # Create a static, non-expiring token for the ServiceAccount- apiVersion: v1- kind: Secret- metadata:- name: infisical-pam-sa-token- namespace: kube-system- annotations:- kubernetes.io/service-account.name: infisical-pam-sa- type: kubernetes.io/service-account-token- ```-- <Warning>- **Security Best Practice**: The example above uses `cluster-admin` for simplicity. In production environments, you should create custom ClusterRoles or Roles with the minimum permissions required for each use case.- </Warning>- </Step>-- <Step title="Apply the Service Account">- Apply the configuration to your cluster:-- ```bash- kubectl apply -f sa.yaml- ```-- This creates:- - A ServiceAccount named `infisical-pam-sa` in the `kube-system` namespace- - A ClusterRoleBinding that grants the service account its permissions- - A Secret containing a static, non-expiring token for the service account- </Step>-- <Step title="Retrieve the Service Account Token">- Get the service account token that you'll use when creating the PAM account:-- ```bash- kubectl -n kube-system get secret infisical-pam-sa-token -o jsonpath='{.data.token}' | base64 -d- ```-- Copy this token - you'll need it in the next step.- </Step>- </Steps>- </Tab>-- <Tab title="Gateway (Impersonation)">- Use this method when the Gateway is deployed **inside the Kubernetes cluster** as a pod. No tokens need to be created or stored — the Gateway uses its own pod identity to impersonate target service accounts.-- <Info>- When creating the resource in the step above, use `https://kubernetes.default.svc.cluster.local` as the URL and **disable SSL verification**. The Gateway handles TLS with the correct in-cluster CA automatically during sessions.- </Info>-- ### Set Up Impersonation Permissions-- The Gateway's pod service account needs a ClusterRole that allows it to impersonate the target service accounts.-- <Steps>- <Step title="Create the Impersonation ClusterRole">- Create a file named `gateway-impersonation.yaml`:-- ```yaml gateway-impersonation.yaml- apiVersion: rbac.authorization.k8s.io/v1- kind: ClusterRole- metadata:- name: infisical-gateway-impersonator- rules:- - apiGroups: [""]- resources: ["serviceaccounts"]- verbs: ["impersonate"]- resourceNames:- - "deploy-bot" # Add each SA the gateway should be able to impersonate- - "ci-runner"- - apiGroups: [""]- resources: ["groups"]- verbs: ["impersonate"]- resourceNames:- - "system:serviceaccounts"- - "system:serviceaccounts:default" # Match the namespace(s) of the target SAs- - "system:authenticated"- ---- apiVersion: rbac.authorization.k8s.io/v1- kind: ClusterRoleBinding- metadata:- name: infisical-gateway-impersonator-binding- subjects:- - kind: ServiceAccount- name: <gateway-pod-service-account> # The Gateway pod's own service account- namespace: <gateway-namespace>- roleRef:- kind: ClusterRole- name: infisical-gateway-impersonator- apiGroup: rbac.authorization.k8s.io- ```-- <Note>- **Scoped by `resourceNames`**: The `resourceNames` field limits which service accounts the Gateway can impersonate. If someone creates a PAM account pointing at a service account not in this list, the session will fail with a 403 from Kubernetes. This is how you control which accounts are accessible through Infisical.- </Note>- </Step>-- <Step title="Apply the ClusterRole">- ```bash- kubectl apply -f gateway-impersonation.yaml- ```- </Step>-- <Step title="Ensure target service accounts exist">- The service accounts you want to impersonate must already exist in the cluster with their own RBAC permissions. For example:-- ```yaml- apiVersion: v1- kind: ServiceAccount- metadata:- name: deploy-bot- namespace: default- ---- apiVersion: rbac.authorization.k8s.io/v1- kind: ClusterRoleBinding- metadata:- name: deploy-bot-binding- subjects:- - kind: ServiceAccount- name: deploy-bot- namespace: default- roleRef:- kind: ClusterRole- name: view # Or whatever permissions this SA should have- apiGroup: rbac.authorization.k8s.io- ```-- The target SA's own RBAC rules determine what the user can do during the session.- </Step>- </Steps>- </Tab>-</Tabs>--## Create PAM Accounts--Once you have configured the PAM resource and set up authentication, create a PAM account to grant access.--<Steps>- <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**.- </Step>-- <Step title="Select Authentication Method">- Choose the authentication method:-- - **Service Account Token** — paste the service account token you retrieved earlier.- - **Gateway** — enter the **Service Account Name** and **Namespace** of the Kubernetes service account you want to impersonate. No token is needed.- </Step>-</Steps>--## Access Kubernetes Cluster--Once your resource and accounts are configured, users can request access through the Infisical CLI:--<Steps>- <Step title="Get the Access Command">- 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>-- <Step title="Run the Access Command">- Run the copied command in your terminal.-- The CLI will:- 1. Authenticate with Infisical- 2. Establish a secure connection through the Gateway- 3. Start a local proxy on your machine- 4. Configure kubectl to use the proxy- </Step>-- <Step title="Use kubectl">- Once the proxy is running, you can use `kubectl` commands as normal:-- ```bash- kubectl get pods- kubectl get namespaces- kubectl describe deployment my-app- ```-- All commands are routed securely through the Infisical Gateway to your cluster.- </Step>-- <Step title="End the Session">- When you're done, stop the proxy by pressing `Ctrl+C` in the terminal where it's running. This will:- - Close the secure tunnel- - End the session- - Log the session details to Infisical-- You can view session logs in the **Sessions** page of your PAM project.- </Step>-</Steps>--## FAQ--<AccordionGroup>- <Accordion title="Which auth method should I use?">- - Use **Gateway** if your Gateway is deployed as a pod inside the Kubernetes cluster. No tokens to create or manage — just enter a service account name and namespace.- - Use **Service Account Token** if your Gateway runs outside the cluster (e.g., on a separate VM) and only has network access to the Kubernetes API. You'll need to create a service account token and paste it into Infisical.- </Accordion>-- <Accordion title="Do I still need to enter a Kubernetes API URL when using Gateway auth?">- Yes. The resource URL is still required even when using Gateway auth. For in-cluster gateways, enter `https://kubernetes.default.svc.cluster.local`. The Gateway auto-discovers the actual Kubernetes API address from its pod environment variables, so this URL isn't used for the connection itself — but the field is still required when creating the resource.- </Accordion>-- <Accordion title="How does the Gateway find the Kubernetes API server?">- When using Gateway auth, the Gateway reads the `KUBERNETES_SERVICE_HOST` and `KUBERNETES_SERVICE_PORT_HTTPS` environment variables that Kubernetes automatically sets in every pod. It ignores the URL configured on the resource and connects directly to the in-cluster API server.- </Accordion>-- <Accordion title="Do I need to configure SSL certificates for Gateway auth?">- Just disable SSL verification on the resource — the Gateway handles TLS automatically during sessions using the in-cluster CA certificate mounted in its pod. If the CA certificate is missing or invalid, the session will fail rather than falling back to an insecure connection.- </Accordion>-- <Accordion title="What happens if the Gateway can't impersonate a service account?">- The Kubernetes API server returns a 403 Forbidden error. Kubernetes itself enforces impersonation permissions — if the Gateway's ClusterRole doesn't include the target service account in its `resourceNames` list, the session fails. You don't need to configure any allowlist in Infisical; just update the ClusterRole in your cluster.- </Accordion>-- <Accordion title="Can I use both auth methods on the same Kubernetes resource?">- Yes. The auth method is configured per account, not per resource. You can have some accounts using Service Account Token and others using Gateway on the same Kubernetes resource.- </Accordion>-- <Accordion title="Does the Gateway need to run inside the Kubernetes cluster?">- For Gateway auth, yes — the Gateway must be deployed as a pod inside the cluster so it can read its own service account token and reach the Kubernetes API. For Service Account Token auth, the Gateway just needs network access to the Kubernetes API server and can run anywhere.- </Accordion>-</AccordionGroup>diff --git a/docs/documentation/platform/pam/getting-started/resources/mongodb.mdx b/docs/documentation/platform/pam/getting-started/resources/mongodb.mdxdeleted file mode 100644index e914b25d23..0000000000--- a/docs/documentation/platform/pam/getting-started/resources/mongodb.mdx+++ /dev/null@@ -1,195 +0,0 @@-----title: "MongoDB"-sidebarTitle: "MongoDB"-description: "Learn how to configure MongoDB access through Infisical PAM for secure, audited, and just-in-time access to your MongoDB databases."------Infisical PAM supports secure, just-in-time access to MongoDB databases.-This allows your team to access MongoDB without sharing long-lived credentials, while maintaining a complete audit trail of who accessed what and when.--## How It Works--MongoDB access in Infisical PAM uses an Infisical Gateway to securely proxy connections to your MongoDB server. When a user requests access, Infisical establishes a secure tunnel through the Gateway, enabling secure access without exposing your MongoDB instance directly.--```mermaid-sequenceDiagram- participant User- participant CLI as Infisical CLI- participant Infisical- participant Gateway as Infisical Gateway- participant MongoDB as MongoDB Server-- User->>CLI: Request MongoDB access- CLI->>Infisical: Authenticate & request session- Infisical-->>CLI: Session credentials & Gateway info- CLI->>CLI: Start local proxy- CLI->>Gateway: Establish secure tunnel- Gateway->>MongoDB: Establish connection- Gateway->>MongoDB: Authenticate with credentials- User->>CLI: Database queries- CLI->>Gateway: Proxy requests- Gateway->>MongoDB: Forward queries- MongoDB-->>Gateway: Response- Gateway-->>CLI: Return response- CLI-->>User: Query output-```--### Key Concepts--1. **Gateway**: An Infisical Gateway deployed in your network that can reach the MongoDB server. The Gateway handles secure communication between users and your MongoDB instance.--2. **Authentication**: Credentials (username/password) are stored securely in Infisical and used by the Gateway to authenticate with MongoDB on behalf of the user. Authentication is performed against the `admin` database.--3. **Local Proxy**: The Infisical CLI starts a local proxy on your machine that intercepts MongoDB connections and routes them securely through the Gateway to your MongoDB instance.--4. **Session Tracking**: All access sessions are logged, including when the session was created, who accessed the MongoDB instance, session duration, and when it ended.--### Session Tracking--Infisical tracks:--- When the session was created-- Who accessed which MongoDB instance-- Session duration-- When the session ended--<Info>- **Session Logs**: After ending a session (by stopping the proxy), you can view- detailed session logs in the Sessions page.-</Info>--## Prerequisites--Before configuring MongoDB access in Infisical PAM, you need:--1. **Infisical Gateway** - A Gateway deployed in your network with access to the MongoDB server-2. **MongoDB Credentials** - Username and password for the MongoDB instance-3. **Infisical CLI** - The Infisical CLI installed on user machines--<Warning>- **Gateway Required**: MongoDB access requires an Infisical Gateway to be- deployed and registered with your Infisical instance. The Gateway must have- network connectivity to your MongoDB server.-</Warning>--## Create the PAM Resource--The PAM Resource represents the connection between Infisical and your MongoDB instance.--<Steps>- <Step title="Ensure Gateway is Running">- Before creating the resource, ensure you have an Infisical Gateway running and registered with your Infisical instance. The Gateway must have network access to your MongoDB server.- </Step>-- <Step title="Create the Resource in Infisical">- 1. Navigate to your PAM project and go to the **Resources** tab- 2. Click **Add Resource** and select **MongoDB**- 3. Enter a **Name** for the resource (e.g., `production-mongo`, `staging-db`)- 4. Select the **Gateway** that has access to this MongoDB instance- 5. Enter the **Connection String** - a `mongodb://` or `mongodb+srv://` URI pointing to your MongoDB server (e.g., `mongodb://mongo.example.com:27017` or `mongodb+srv://cluster0.abc123.mongodb.net`). Do not include credentials or a database name in the URI — those are configured separately.- 6. Enter the **Database Name** - the authentication database to connect to (default: `admin`)- 7. Configure SSL/TLS options:- - **Enable SSL**: Toggle to enable TLS/SSL connections (enabled by default)- - **Reject Unauthorized**: Toggle to verify SSL certificates (enabled by default, recommended for production)- - **CA Certificate**: Optional CA certificate for custom certificate authorities-- <Note>- **SSL Configuration**: SSL is enabled by default. For self-signed certificates, you may need to provide the CA certificate or disable certificate validation (not recommended for production).- </Note>-- </Step>-</Steps>--## Create PAM Accounts--Once you have configured the PAM resource, you'll need to configure a PAM account for your MongoDB resource.-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 Resource">- Go to the **Resources** tab in your PAM project and open the MongoDB resource you created.- </Step>-- <Step title="Add New Account">- Click **Add Account**.- </Step>-- <Step title="Fill in Account Details">- Fill in the account details:-- <ParamField path="Name" type="string" required>- A friendly name for this account (e.g., `readonly-user`, `admin-access`)- </ParamField>-- <ParamField path="Description" type="string">- An optional description for this account.- </ParamField>-- <ParamField path="Username" type="string" required>- The MongoDB username.- </ParamField>-- <ParamField path="Password" type="string" required>- The MongoDB password.- </ParamField>-- <ParamField path="Require MFA for Access" type="boolean">- When enabled, users must complete a multi-factor authentication (MFA) challenge before accessing this account. The MFA method used is determined by the organization's enforced method, the user's configured method, or email as a fallback.- </ParamField>-- </Step>-</Steps>--## Access MongoDB Account--Once your resource and accounts are configured, users can request access through the Infisical CLI:--<Steps>- <Step title="Get the Access Command">- 1. Navigate to the **Resources** tab in your PAM project and open the MongoDB 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-- The command follows this format:- ```bash- infisical pam db access --resource <resource-name> --account <account-name> --project-id <project-id> --duration <duration> --domain <infisical-url>- ```-- </Step>-- <Step title="Run the Access Command">- Run the copied command in your terminal.-- The CLI will:- 1. Authenticate with Infisical- 2. Establish a secure connection through the Gateway- 3. Start a local proxy on your machine- 4. Display a local connection URI you can use to connect-- </Step>-- <Step title="Connect to MongoDB">- Once the proxy is running, connect to MongoDB using the connection URI displayed by the CLI. You can use any MongoDB client — no password is needed, as the Gateway injects the real credentials on your behalf.-- **Using mongosh:**- ```bash- mongosh "<connection-uri>"- ```-- **Using other clients:**-- You can also use GUI clients such as MongoDB Compass, Studio 3T, DataGrip, or NoSQLBooster. Use the connection URI shown in the CLI output, or point them to `localhost` on the port shown. Leave the password field empty.-- </Step>-- <Step title="End the Session">- When you're done, stop the proxy by pressing `Ctrl+C` in the terminal where it's running. This will:- - Close the secure tunnel- - End the session- - Log the session details to Infisical-- You can view session logs in the **Sessions** page of your PAM project.-- </Step>-</Steps>diff --git a/docs/documentation/platform/pam/getting-started/resources/mssql.mdx b/docs/documentation/platform/pam/getting-started/resources/mssql.mdxdeleted file mode 100644index 95287e9ba6..0000000000--- a/docs/documentation/platform/pam/getting-started/resources/mssql.mdx+++ /dev/null@@ -1,224 +0,0 @@-----title: "Microsoft SQL Server"-sidebarTitle: "MsSQL"-description: "Learn how to configure Microsoft SQL Server access through Infisical PAM for secure, audited, and just-in-time access to your MsSQL databases."------Infisical PAM supports secure, just-in-time access to Microsoft SQL Server databases.-This allows your team to access MsSQL without sharing long-lived credentials, while maintaining a complete audit trail of who accessed what and when.--## How It Works--MsSQL access in Infisical PAM uses an Infisical Gateway to securely proxy connections to your MsSQL server. When a user requests access, Infisical establishes a secure tunnel through the Gateway, enabling secure access without exposing your MsSQL instance directly.--```mermaid-sequenceDiagram- participant User- participant CLI as Infisical CLI- participant Infisical- participant Gateway as Infisical Gateway- participant MsSQL as MsSQL Server-- User->>CLI: Request MsSQL access- CLI->>Infisical: Authenticate & request session- Infisical-->>CLI: Session credentials & Gateway info- CLI->>CLI: Start local proxy- CLI->>Gateway: Establish secure tunnel- Gateway->>MsSQL: Establish connection- Gateway->>MsSQL: Authenticate with credentials- User->>CLI: SQL queries- CLI->>Gateway: Proxy requests- Gateway->>MsSQL: Forward queries- MsSQL-->>Gateway: Response- Gateway-->>CLI: Return response- CLI-->>User: Query output-```--### Key Concepts--1. **Gateway**: An Infisical Gateway deployed in your network that can reach the MsSQL server. The Gateway handles secure communication between users and your MsSQL instance.--2. **Authentication**: Credentials are stored securely in Infisical and used by the Gateway to authenticate with MsSQL on behalf of the user. SQL Server Authentication and Windows Authentication (NTLM or Kerberos) are supported.--3. **Local Proxy**: The Infisical CLI starts a local proxy on your machine that intercepts MsSQL connections and routes them securely through the Gateway to your MsSQL instance.--4. **Session Tracking**: All access sessions are logged, including when the session was created, who accessed the MsSQL instance, session duration, and when it ended.--### Session Tracking--Infisical tracks:--- When the session was created-- Who accessed which MsSQL instance-- Session duration-- When the session ended--<Info>- **Session Logs**: After ending a session (by stopping the proxy), you can view- detailed session logs in the Sessions page.-</Info>--## Prerequisites--Before configuring MsSQL access in Infisical PAM, you need:--1. **Infisical Gateway** - A Gateway deployed in your network with access to the MsSQL server-2. **MsSQL Credentials** - SQL Server credentials (username/password), Windows domain credentials for NTLM (domain/username/password), or Kerberos credentials (realm/SPN/username/password) for the MsSQL instance-3. **Infisical CLI** - The Infisical CLI installed on user machines--<Warning>- **Gateway Required**: MsSQL access requires an Infisical Gateway to be- deployed and registered with your Infisical instance. The Gateway must have- network connectivity to your MsSQL server. For Kerberos authentication, the- Gateway also needs access to the Key Distribution Center (KDC) on port 88.-</Warning>--## Create the PAM Resource--The PAM Resource represents the connection between Infisical and your MsSQL instance.--<Steps>- <Step title="Ensure Gateway is Running">- Before creating the resource, ensure you have an Infisical Gateway running and registered with your Infisical instance. The Gateway must have network access to your MsSQL server.- </Step>-- <Step title="Create the Resource in Infisical">- 1. Navigate to your PAM project and go to the **Resources** tab- 2. Click **Add Resource** and select **Microsoft SQL Server**- 3. Enter a **Name** for the resource (e.g., `production-mssql`, `staging-db`)- 4. Select the **Gateway** that has access to this MsSQL instance- 5. Enter the **Host** - the hostname or IP address of your MsSQL server (e.g., `mssql.example.com` or `192.168.1.100`)- 6. Enter the **Database Name** - the database to connect to- 7. Enter the **Port** - the MsSQL port (default: `1433`)- 8. Configure SSL/TLS options:- - **Enable SSL**: Toggle to enable TLS/SSL connections (enabled by default)- - **Reject Unauthorized**: Toggle to verify SSL certificates (enabled by default, recommended for production)- - **Trusted CA SSL Certificate**: Optional CA certificate for custom certificate authorities-- <Note>- **SSL Configuration**: SSL is enabled by default. For self-signed certificates, you may need to provide the CA certificate or disable certificate validation (not recommended for production).- </Note>-- </Step>-</Steps>--## Create PAM Accounts--Once you have configured the PAM resource, you'll need to configure a PAM account for your MsSQL resource.-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 Resource">- Go to the **Resources** tab in your PAM project and open the MsSQL resource you created.- </Step>-- <Step title="Add New Account">- Click **Add Account**.- </Step>-- <Step title="Fill in Account Details">- Fill in the account details:-- <ParamField path="Name" type="string" required>- A friendly name for this account (e.g., `readonly-user`, `admin-access`)- </ParamField>-- <ParamField path="Description" type="string">- An optional description for this account.- </ParamField>-- <ParamField path="Authentication Method" type="string" required>- Choose how the account authenticates with SQL Server:- - **SQL Server Authentication** — standard username and password- - **Windows Authentication (NTLM)** — authenticates using Active Directory domain credentials- - **Windows Authentication (Kerberos)** — authenticates via Kerberos tickets from a Key Distribution Center (KDC)- </ParamField>-- <ParamField path="Domain" type="string">- The Active Directory domain name (e.g., `CORP`). Only required when using Windows Authentication (NTLM).- </ParamField>-- <ParamField path="Realm" type="string">- The Kerberos realm, typically the AD domain name in uppercase (e.g., `CORP.EXAMPLE.COM`). Required for Kerberos authentication.- </ParamField>-- <ParamField path="Service Principal Name (SPN)" type="string">- The SQL Server's SPN registered in Active Directory (e.g., `MSSQLSvc/sqlserver.corp.com:1433`). Required for Kerberos authentication.- </ParamField>-- <ParamField path="KDC Address" type="string">- Hostname or IP of the Key Distribution Center (e.g., `dc.corp.example.com`). Optional — if omitted, the gateway attempts DNS-based KDC discovery.- </ParamField>-- <Info>- Kerberos credentials (realm, SPN, KDC address) are verified when the first session is started, not at account creation. Ensure your KDC is reachable from the gateway on port 88.- </Info>-- <ParamField path="Username" type="string" required>- The MsSQL or domain username.- </ParamField>-- <ParamField path="Password" type="string" required>- The MsSQL or domain password.- </ParamField>-- <ParamField path="Require MFA for Access" type="boolean">- When enabled, users must complete a multi-factor authentication (MFA) challenge before accessing this account. The MFA method used is determined by the organization's enforced method, the user's configured method, or email as a fallback.- </ParamField>-- </Step>-</Steps>--## Access MsSQL Account--Once your resource and accounts are configured, users can request access through the Infisical CLI:--<Steps>- <Step title="Get the Access Command">- 1. Navigate to the **Resources** tab in your PAM project and open the MsSQL 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-- The command follows this format:- ```bash- infisical pam db access --resource <resource-name> --account <account-name> --project-id <project-id> --duration <duration> --domain <infisical-url>- ```-- </Step>-- <Step title="Run the Access Command">- Run the copied command in your terminal.-- The CLI will:- 1. Authenticate with Infisical- 2. Establish a secure connection through the Gateway- 3. Start a local proxy on your machine- 4. Display a local connection URL you can use to connect-- </Step>-- <Step title="Connect to MsSQL">- Once the proxy is running, connect to MsSQL using the connection details displayed by the CLI. You can use any MsSQL client — no password is needed, as the Gateway injects the real credentials on your behalf.-- **Using sqlcmd:**- ```bash- sqlcmd -S 127.0.0.1,<port> -U <username> -d <database>- ```-- **Using other clients:**-- You can also use GUI clients such as SQL Server Management Studio (SSMS), Azure Data Studio, DBeaver, DataGrip, or TablePlus. Point them to `127.0.0.1` on the port shown in the CLI output with the username and database from the connection details. Leave the password field empty.-- </Step>-- <Step title="End the Session">- When you're done, stop the proxy by pressing `Ctrl+C` in the terminal where it's running. This will:- - Close the secure tunnel- - End the session- - Log the session details to Infisical-- You can view session logs in the **Sessions** page of your PAM project.-- </Step>-</Steps>diff --git a/docs/documentation/platform/pam/getting-started/resources/mysql.mdx b/docs/documentation/platform/pam/getting-started/resources/mysql.mdxdeleted file mode 100644index 0e804432b9..0000000000--- a/docs/documentation/platform/pam/getting-started/resources/mysql.mdx+++ /dev/null@@ -1,196 +0,0 @@-----title: "MySQL"-sidebarTitle: "MySQL"-description: "Learn how to configure MySQL access through Infisical PAM for secure, audited, and just-in-time access to your MySQL databases."------Infisical PAM supports secure, just-in-time access to MySQL databases.-This allows your team to access MySQL without sharing long-lived credentials, while maintaining a complete audit trail of who accessed what and when.--## How It Works--MySQL access in Infisical PAM uses an Infisical Gateway to securely proxy connections to your MySQL server. When a user requests access, Infisical establishes a secure tunnel through the Gateway, enabling secure access without exposing your MySQL instance directly.--```mermaid-sequenceDiagram- participant User- participant CLI as Infisical CLI- participant Infisical- participant Gateway as Infisical Gateway- participant MySQL as MySQL Server-- User->>CLI: Request MySQL access- CLI->>Infisical: Authenticate & request session- Infisical-->>CLI: Session credentials & Gateway info- CLI->>CLI: Start local proxy- CLI->>Gateway: Establish secure tunnel- Gateway->>MySQL: Establish connection- Gateway->>MySQL: Authenticate with credentials- User->>CLI: SQL queries- CLI->>Gateway: Proxy requests- Gateway->>MySQL: Forward queries- MySQL-->>Gateway: Response- Gateway-->>CLI: Return response- CLI-->>User: Query output-```--### Key Concepts--1. **Gateway**: An Infisical Gateway deployed in your network that can reach the MySQL server. The Gateway handles secure communication between users and your MySQL instance.--2. **Authentication**: Credentials (username/password) are stored securely in Infisical and used by the Gateway to authenticate with MySQL on behalf of the user.--3. **Local Proxy**: The Infisical CLI starts a local proxy on your machine that intercepts MySQL connections and routes them securely through the Gateway to your MySQL instance.--4. **Session Tracking**: All access sessions are logged, including when the session was created, who accessed the MySQL instance, session duration, and when it ended.--### Session Tracking--Infisical tracks:--- When the session was created-- Who accessed which MySQL instance-- Session duration-- When the session ended--<Info>- **Session Logs**: After ending a session (by stopping the proxy), you can view- detailed session logs in the Sessions page.-</Info>--## Prerequisites--Before configuring MySQL access in Infisical PAM, you need:--1. **Infisical Gateway** - A Gateway deployed in your network with access to the MySQL server-2. **MySQL Credentials** - Username and password for the MySQL instance-3. **Infisical CLI** - The Infisical CLI installed on user machines--<Warning>- **Gateway Required**: MySQL access requires an Infisical Gateway to be- deployed and registered with your Infisical instance. The Gateway must have- network connectivity to your MySQL server.-</Warning>--## Create the PAM Resource--The PAM Resource represents the connection between Infisical and your MySQL instance.--<Steps>- <Step title="Ensure Gateway is Running">- Before creating the resource, ensure you have an Infisical Gateway running and registered with your Infisical instance. The Gateway must have network access to your MySQL server.- </Step>-- <Step title="Create the Resource in Infisical">- 1. Navigate to your PAM project and go to the **Resources** tab- 2. Click **Add Resource** and select **MySQL**- 3. Enter a **Name** for the resource (e.g., `production-mysql`, `staging-db`)- 4. Select the **Gateway** that has access to this MySQL instance- 5. Enter the **Host** - the hostname or IP address of your MySQL server (e.g., `mysql.example.com` or `192.168.1.100`)- 6. Optionally enter the **Database Name** to connect to a specific database- 7. Enter the **Port** - the MySQL port (default: `3306`)- 8. Configure SSL/TLS options:- - **Enable SSL**: Toggle to enable TLS/SSL connections (enabled by default)- - **Reject Unauthorized**: Toggle to verify SSL certificates (enabled by default, recommended for production)- - **Trusted CA SSL Certificate**: Optional CA certificate for custom certificate authorities-- <Note>- **SSL Configuration**: SSL is enabled by default. For self-signed certificates, you may need to provide the CA certificate or disable certificate validation (not recommended for production).- </Note>-- </Step>-</Steps>--## Create PAM Accounts--Once you have configured the PAM resource, you'll need to configure a PAM account for your MySQL resource.-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 Resource">- Go to the **Resources** tab in your PAM project and open the MySQL resource you created.- </Step>-- <Step title="Add New Account">- Click **Add Account**.- </Step>-- <Step title="Fill in Account Details">- Fill in the account details:-- <ParamField path="Name" type="string" required>- A friendly name for this account (e.g., `readonly-user`, `admin-access`)- </ParamField>-- <ParamField path="Description" type="string">- An optional description for this account.- </ParamField>-- <ParamField path="Username" type="string" required>- The MySQL username.- </ParamField>-- <ParamField path="Password" type="string" required>- The MySQL password.- </ParamField>-- <ParamField path="Require MFA for Access" type="boolean">- When enabled, users must complete a multi-factor authentication (MFA) challenge before accessing this account. The MFA method used is determined by the organization's enforced method, the user's configured method, or email as a fallback.- </ParamField>-- </Step>-</Steps>--## Access MySQL Account--Once your resource and accounts are configured, users can request access through the Infisical CLI:--<Steps>- <Step title="Get the Access Command">- 1. Navigate to the **Resources** tab in your PAM project and open the MySQL 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-- The command follows this format:- ```bash- infisical pam db access --resource <resource-name> --account <account-name> --project-id <project-id> --duration <duration> --domain <infisical-url>- ```-- </Step>-- <Step title="Run the Access Command">- Run the copied command in your terminal.-- The CLI will:- 1. Authenticate with Infisical- 2. Establish a secure connection through the Gateway- 3. Start a local proxy on your machine- 4. Display a local connection URL you can use to connect-- </Step>-- <Step title="Connect to MySQL">- Once the proxy is running, connect to MySQL using the connection details displayed by the CLI. You can use any MySQL client — no password is needed, as the Gateway injects the real credentials on your behalf.-- **Using mysql CLI:**- ```bash- mysql -h 127.0.0.1 -P <port> -u <username> <database>- ```-- **Using other clients:**-- You can also use GUI clients such as MySQL Workbench, DBeaver, DataGrip, TablePlus, or Sequel Pro. Point them to `127.0.0.1` on the port shown in the CLI output with the username and database from the connection details. Leave the password field empty.-- </Step>-- <Step title="End the Session">- When you're done, stop the proxy by pressing `Ctrl+C` in the terminal where it's running. This will:- - Close the secure tunnel- - End the session- - Log the session details to Infisical-- You can view session logs in the **Sessions** page of your PAM project.-- </Step>-</Steps>diff --git a/docs/documentation/platform/pam/getting-started/resources/oracle.mdx b/docs/documentation/platform/pam/getting-started/resources/oracle.mdxdeleted file mode 100644index 98afcfb9ec..0000000000--- a/docs/documentation/platform/pam/getting-started/resources/oracle.mdx+++ /dev/null@@ -1,196 +0,0 @@-----title: "Oracle"-sidebarTitle: "Oracle"-description: "Learn how to configure Oracle Database access through Infisical PAM for secure, audited, and just-in-time access to your Oracle databases."------Infisical PAM supports secure, just-in-time access to Oracle Databases.-This allows your team to access Oracle without sharing long-lived credentials, while maintaining a complete audit trail of who accessed what and when.--## How It Works--Oracle access in Infisical PAM uses an Infisical Gateway to securely proxy connections to your Oracle server. When a user requests access, Infisical establishes a secure tunnel through the Gateway, enabling secure access without exposing your Oracle instance directly.--```mermaid-sequenceDiagram- participant User- participant CLI as Infisical CLI- participant Infisical- participant Gateway as Infisical Gateway- participant Oracle as Oracle Server-- User->>CLI: Request Oracle access- CLI->>Infisical: Authenticate & request session- Infisical-->>CLI: Session credentials & Gateway info- CLI->>CLI: Start local proxy- CLI->>Gateway: Establish secure tunnel- Gateway->>Oracle: Establish connection- Gateway->>Oracle: Authenticate with credentials- User->>CLI: SQL queries- CLI->>Gateway: Proxy requests- Gateway->>Oracle: Forward queries- Oracle-->>Gateway: Response- Gateway-->>CLI: Return response- CLI-->>User: Query output-```--### Key Concepts--1. **Gateway**: An Infisical Gateway deployed in your network that can reach the Oracle server. The Gateway handles secure communication between users and your Oracle instance.--2. **Authentication**: Credentials (username/password) are stored securely in Infisical and used by the Gateway to authenticate with Oracle on behalf of the user.--3. **Local Proxy**: The Infisical CLI starts a local proxy on your machine that intercepts Oracle connections and routes them securely through the Gateway to your Oracle instance.--4. **Session Tracking**: All access sessions are logged, including when the session was created, who accessed the Oracle instance, session duration, and when it ended.--### Session Tracking--Infisical tracks:--- When the session was created-- Who accessed which Oracle instance-- Session duration-- When the session ended--<Info>- **Session Logs**: After ending a session (by stopping the proxy), you can view- detailed session logs in the Sessions page.-</Info>--## Prerequisites--Before configuring Oracle access in Infisical PAM, you need:--1. **Infisical Gateway** - A Gateway deployed in your network with access to the Oracle server-2. **Oracle Credentials** - Username and password for the Oracle instance-3. **Infisical CLI** - The Infisical CLI installed on user machines--<Warning>- **Gateway Required**: Oracle access requires an Infisical Gateway to be- deployed and registered with your Infisical instance. The Gateway must have- network connectivity to your Oracle server.-</Warning>--## Create the PAM Resource--The PAM Resource represents the connection between Infisical and your Oracle instance.--<Steps>- <Step title="Ensure Gateway is Running">- Before creating the resource, ensure you have an Infisical Gateway running and registered with your Infisical instance. The Gateway must have network access to your Oracle server.- </Step>-- <Step title="Create the Resource in Infisical">- 1. Navigate to your PAM project and go to the **Resources** tab- 2. Click **Add Resource** and select **Oracle**- 3. Enter a **Name** for the resource (e.g., `production-oracle`, `staging-db`)- 4. Select the **Gateway** that has access to this Oracle instance- 5. Enter the **Host** - the hostname or IP address of your Oracle server (e.g., `oracle.example.com` or `192.168.1.100`)- 6. Enter the **Database Name** - the Oracle service name (e.g., `ORCL`, `XEPDB1`)- 7. Enter the **Port** - `1521` for plain TCP (default) or `2484` for TCPS- 8. Configure SSL/TLS options:- - **Enable SSL**: Toggle to connect to the Oracle TCPS listener- - **Reject Unauthorized**: Toggle to verify SSL certificates (enabled by default, recommended for production)- - **Trusted CA SSL Certificate**: Optional CA certificate for custom certificate authorities-- <Note>- **SSL Configuration**: When SSL is enabled, the Oracle TCPS listener is usually on port 2484. For self-signed certificates, you may need to provide the CA certificate or disable certificate validation (not recommended for production).- </Note>-- </Step>-</Steps>--## Create PAM Accounts--Once you have configured the PAM resource, you'll need to configure a PAM account for your Oracle resource.-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 Resource">- Go to the **Resources** tab in your PAM project and open the Oracle resource you created.- </Step>-- <Step title="Add New Account">- Click **Add Account**.- </Step>-- <Step title="Fill in Account Details">- Fill in the account details:-- <ParamField path="Name" type="string" required>- A friendly name for this account (e.g., `readonly-user`, `admin-access`)- </ParamField>-- <ParamField path="Description" type="string">- An optional description for this account.- </ParamField>-- <ParamField path="Username" type="string" required>- The Oracle username.- </ParamField>-- <ParamField path="Password" type="string" required>- The Oracle password.- </ParamField>-- <ParamField path="Require MFA for Access" type="boolean">- When enabled, users must complete a multi-factor authentication (MFA) challenge before accessing this account. The MFA method used is determined by the organization's enforced method, the user's configured method, or email as a fallback.- </ParamField>-- </Step>-</Steps>--## Access Oracle Account--Once your resource and accounts are configured, users can request access through the Infisical CLI:--<Steps>- <Step title="Get the Access Command">- 1. Navigate to the **Resources** tab in your PAM project and open the Oracle 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-- The command follows this format:- ```bash- infisical pam db access --resource <resource-name> --account <account-name> --project-id <project-id> --duration <duration> --domain <infisical-url>- ```-- </Step>-- <Step title="Run the Access Command">- Run the copied command in your terminal.-- The CLI will:- 1. Authenticate with Infisical- 2. Establish a secure connection through the Gateway- 3. Start a local proxy on your machine- 4. Display a local connection URL you can use to connect-- </Step>-- <Step title="Connect to Oracle">- Once the proxy is running, connect to Oracle using the connection details displayed by the CLI. Oracle's login protocol requires the client to send a password, so the CLI prints a fixed placeholder (`password`) — type it literally in your client. The Gateway swaps in the real credential during login.-- **Using sqlcl:**- ```bash- sql <username>/password@localhost:<port>/<service-name>- ```-- **Using other clients:**-- You can also use GUI clients such as SQL Developer, DBeaver, DataGrip, or Toad (JDBC thin mode). Point them to `localhost` on the port shown in the CLI output with the username and service name from the connection details, and type `password` in the password field.-- </Step>-- <Step title="End the Session">- When you're done, stop the proxy by pressing `Ctrl+C` in the terminal where it's running. This will:- - Close the secure tunnel- - End the session- - Log the session details to Infisical-- You can view session logs in the **Sessions** page of your PAM project.-- </Step>-</Steps>diff --git a/docs/documentation/platform/pam/getting-started/resources/postgresql.mdx b/docs/documentation/platform/pam/getting-started/resources/postgresql.mdxdeleted file mode 100644index d9eeb70fa3..0000000000--- a/docs/documentation/platform/pam/getting-started/resources/postgresql.mdx+++ /dev/null@@ -1,216 +0,0 @@-----title: "PostgreSQL"-sidebarTitle: "PostgreSQL"-description: "Learn how to configure PostgreSQL access through Infisical PAM for secure, audited, and just-in-time access to your PostgreSQL databases."------Infisical PAM supports secure, just-in-time access to PostgreSQL databases.-This allows your team to access PostgreSQL without sharing long-lived credentials, while maintaining a complete audit trail of who accessed what and when.--## How It Works--PostgreSQL access in Infisical PAM uses an Infisical Gateway to securely proxy connections to your PostgreSQL server. When a user requests access, Infisical establishes a secure tunnel through the Gateway, enabling secure access without exposing your PostgreSQL instance directly.--```mermaid-sequenceDiagram- participant User- participant CLI as Infisical CLI- participant Infisical- participant Gateway as Infisical Gateway- participant PG as PostgreSQL Server-- User->>CLI: Request PostgreSQL access- CLI->>Infisical: Authenticate & request session- Infisical-->>CLI: Session credentials & Gateway info- CLI->>CLI: Start local proxy- CLI->>Gateway: Establish secure tunnel- Gateway->>PG: Establish connection- Gateway->>PG: Authenticate with credentials- User->>CLI: SQL queries- CLI->>Gateway: Proxy requests- Gateway->>PG: Forward queries- PG-->>Gateway: Response- Gateway-->>CLI: Return response- CLI-->>User: Query output-```--### Key Concepts--1. **Gateway**: An Infisical Gateway deployed in your network that can reach the PostgreSQL server. The Gateway handles secure communication between users and your PostgreSQL instance.--2. **Authentication**: Credentials (username/password) are stored securely in Infisical and used by the Gateway to authenticate with PostgreSQL on behalf of the user.--3. **Local Proxy**: The Infisical CLI starts a local proxy on your machine that intercepts PostgreSQL connections and routes them securely through the Gateway to your PostgreSQL instance.--4. **Session Tracking**: All access sessions are logged, including when the session was created, who accessed the PostgreSQL instance, session duration, and when it ended.--### Session Tracking--Infisical tracks:--- When the session was created-- Who accessed which PostgreSQL instance-- Session duration-- When the session ended--<Info>- **Session Logs**: After ending a session (by stopping the proxy), you can view- detailed session logs in the Sessions page.-</Info>--## Prerequisites--Before configuring PostgreSQL access in Infisical PAM, you need:--1. **Infisical Gateway** - A Gateway deployed in your network with access to the PostgreSQL server-2. **PostgreSQL Credentials** - Username and password for the PostgreSQL instance-3. **Infisical CLI** - The Infisical CLI installed on user machines--<Warning>- **Gateway Required**: PostgreSQL access requires an Infisical Gateway to be- deployed and registered with your Infisical instance. The Gateway must have- network connectivity to your PostgreSQL server.-</Warning>--## Create the PAM Resource--The PAM Resource represents the connection between Infisical and your PostgreSQL instance.--<Steps>- <Step title="Ensure Gateway is Running">- Before creating the resource, ensure you have an Infisical Gateway running and registered with your Infisical instance. The Gateway must have network access to your PostgreSQL server.- </Step>-- <Step title="Create the Resource in Infisical">- 1. Navigate to your PAM project and go to the **Resources** tab- 2. Click **Add Resource** and select **PostgreSQL**- 3. Enter a **Name** for the resource (e.g., `production-postgres`, `staging-db`)- 4. Select the **Gateway** that has access to this PostgreSQL instance- 5. Enter the **Host** - the hostname or IP address of your PostgreSQL server (e.g., `postgres.example.com` or `192.168.1.100`)- 6. Enter the **Database Name** - the database to connect to- 7. Enter the **Port** - the PostgreSQL port (default: `5432`)- 8. Configure SSL/TLS options:- - **Enable SSL**: Toggle to enable TLS/SSL connections (enabled by default)- - **Reject Unauthorized**: Toggle to verify SSL certificates (enabled by default, recommended for production)- - **Trusted CA SSL Certificate**: Optional CA certificate for custom certificate authorities-- 9. Optionally configure a **Rotation Account** by providing a username and password. This is required if you want to enable automated credential rotation for accounts on this resource.-- <Note>- **SSL Configuration**: SSL is enabled by default. For self-signed certificates, you may need to provide the CA certificate or disable certificate validation (not recommended for production).- </Note>-- </Step>-</Steps>--## Create PAM Accounts--Once you have configured the PAM resource, you'll need to configure a PAM account for your PostgreSQL resource.-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 Resource">- Go to the **Resources** tab in your PAM project and open the PostgreSQL resource you created.- </Step>-- <Step title="Add New Account">- Click **Add Account**.- </Step>-- <Step title="Fill in Account Details">- Fill in the account details:-- <ParamField path="Name" type="string" required>- A friendly name for this account (e.g., `readonly-user`, `admin-access`)- </ParamField>-- <ParamField path="Description" type="string">- An optional description for this account.- </ParamField>-- <ParamField path="Username" type="string" required>- The PostgreSQL username.- </ParamField>-- <ParamField path="Password" type="string" required>- The PostgreSQL password.- </ParamField>-- <ParamField path="Require MFA for Access" type="boolean">- When enabled, users must complete a multi-factor authentication (MFA) challenge before accessing this account. The MFA method used is determined by the organization's enforced method, the user's configured method, or email as a fallback.- </ParamField>-- If the resource has rotation account credentials configured, you can also enable **Credential Rotation** for this account and select a rotation interval (1 day, 3 days, 7 days, or 30 days).-- </Step>-</Steps>--## Access PostgreSQL Account--There are two ways to access a PostgreSQL account: through the browser via Web Access, or locally via the CLI.--### Web Access--PostgreSQL resources can be accessed directly from the browser using the **Data Explorer** — a visual interface for browsing and editing tables — or the **SQL Terminal** for running ad-hoc queries.--For details, see [PostgreSQL Web Access](/documentation/platform/pam/product-reference/web-access/postgresql).--### CLI Access--The Infisical CLI starts a local proxy that allows you to connect with any PostgreSQL client (psql, pgAdmin, DBeaver, etc.) and supports multiple concurrent connections per session.--<Steps>- <Step title="Get the Access Command">- 1. Navigate to the **Resources** tab in your PAM project and open the PostgreSQL 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-- The command follows this format:- ```bash- infisical pam db access --resource <resource-name> --account <account-name> --project-id <project-id> --duration <duration> --domain <infisical-url>- ```-- </Step>-- <Step title="Run the Access Command">- Run the copied command in your terminal.-- The CLI will:- 1. Authenticate with Infisical- 2. Establish a secure connection through the Gateway- 3. Start a local proxy on your machine- 4. Display a local connection URL you can use to connect-- </Step>-- <Step title="Connect to PostgreSQL">- Once the proxy is running, connect to PostgreSQL using the connection URL displayed by the CLI. You can use any PostgreSQL client — no password is needed, as the Gateway injects the real credentials on your behalf.-- **Using psql:**- ```bash- psql "<connection-url>"- ```-- **Using other clients:**-- You can also use GUI clients such as pgAdmin, DBeaver, DataGrip, or TablePlus. Point them to `localhost` on the port shown in the CLI output with the username and database from the connection URL. Leave the password field empty.-- </Step>-- <Step title="End the Session">- When you're done, stop the proxy by pressing `Ctrl+C` in the terminal where it's running. This will:- - Close the secure tunnel- - End the session- - Log the session details to Infisical-- You can view session logs in the **Sessions** page of your PAM project.-- </Step>-</Steps>--## Automated Credential Rotation--PostgreSQL supports automated credential rotation through Infisical. This allows you to automatically rotate database credentials on a schedule, reducing the risk of credential compromise.--For details, see [Credential Rotation](/documentation/platform/pam/product-reference/credential-rotation).diff --git a/docs/documentation/platform/pam/getting-started/resources/redis.mdx b/docs/documentation/platform/pam/getting-started/resources/redis.mdxdeleted file mode 100644index 379beee79c..0000000000--- a/docs/documentation/platform/pam/getting-started/resources/redis.mdx+++ /dev/null@@ -1,195 +0,0 @@-----title: "Redis"-sidebarTitle: "Redis"-description: "Learn how to configure Redis access through Infisical PAM for secure, audited, and just-in-time access to your Redis instances."------Infisical PAM supports secure, just-in-time access to Redis instances.-This allows your team to access Redis databases without sharing long-lived credentials, while maintaining a complete audit trail of who accessed what and when.-Infisical supports all major Redis server versions since Redis 1.0 that use the [RESP protocol](https://redis.io/docs/latest/develop/reference/protocol-spec/).-Redis server forks and variants based on the RESP protocol such as [Valkey](https://valkey.io) are also supported by Infisical PAM.--## How It Works--Redis access in Infisical PAM uses an Infisical Gateway to securely proxy connections to your Redis server. When a user requests access, Infisical establishes a secure tunnel through the Gateway, enabling secure access without exposing your Redis instance directly.--```mermaid-sequenceDiagram- participant User- participant CLI as Infisical CLI- participant Infisical- participant Gateway as Infisical Gateway- participant Redis as Redis Server-- User->>CLI: Request Redis access- CLI->>Infisical: Authenticate & request session- Infisical-->>CLI: Session credentials & Gateway info- CLI->>CLI: Start local proxy- CLI->>Gateway: Establish secure tunnel- Gateway->>Redis: Establish connection- alt Credentials provided- Gateway->>Redis: Send AUTH command- end- User->>CLI: Redis commands- CLI->>Gateway: Proxy Redis requests- Gateway->>Redis: Forward commands- Redis-->>Gateway: Response- Gateway-->>CLI: Return response- CLI-->>User: Redis output-```--### Key Concepts--1. **Gateway**: An Infisical Gateway deployed in your network that can reach the Redis server. The Gateway handles secure communication between users and your Redis instance.--2. **Authentication**: Redis supports username/password authentication (ACL). Credentials are stored securely in Infisical and used by the Gateway to authenticate with Redis.--3. **Local Proxy**: The Infisical CLI starts a local proxy on your machine that intercepts Redis commands and routes them securely through the Gateway to your Redis instance.--4. **Session Tracking**: All access sessions are logged, including when the session was created, who accessed the Redis instance, session duration, and when it ended.--### Session Tracking--Infisical tracks:--- When the session was created-- Who accessed which Redis instance-- Session duration-- All Redis commands executed during the session-- When the session ended--<Info>- **Session Logs**: After ending a session (by stopping the proxy), you can view- detailed session logs in the Sessions page, including all commands executed- during the session.-</Info>--## Prerequisites--Before configuring Redis access in Infisical PAM, you need:--1. **Infisical Gateway** - A Gateway deployed in your network with access to the Redis server-2. **Redis Credentials** - Username and password (if Redis ACL is enabled) or access to an unauthenticated Redis instance-3. **Infisical CLI** - The Infisical CLI installed on user machines--<Warning>- **Gateway Required**: Redis access requires an Infisical Gateway to be- deployed and registered with your Infisical instance. The Gateway must have- network connectivity to your Redis server.-</Warning>--## Create the PAM Resource--The PAM Resource represents the connection between Infisical and your Redis instance.--<Steps>- <Step title="Ensure Gateway is Running">- Before creating the resource, ensure you have an Infisical Gateway running and registered with your Infisical instance. The Gateway must have network access to your Redis server.- </Step>-- <Step title="Create the Resource in Infisical">- 1. Navigate to your PAM project and go to the **Resources** tab- 2. Click **Add Resource** and select **Redis**- 3. Enter a name for the resource (e.g., `production-redis`, `staging-cache`)- 4. Enter the **Host** - the hostname or IP address of your Redis server (e.g., `redis.example.com` or `192.168.1.100`)- 5. Enter the **Port** - the Redis port (default: `6379`)- 6. Select the **Gateway** that has access to this Redis instance- 7. Configure SSL/TLS options if needed:- - **SSL Enabled**: Enable if your Redis instance uses TLS/SSL- - **SSL Reject Unauthorized**: Enable to verify SSL certificates (recommended for production)- - **SSL Certificate**: Optional CA certificate for custom certificate authorities-- <Note>- **SSL Configuration**: If your Redis instance uses TLS/SSL, enable SSL and configure certificate validation. For self-signed certificates, you may need to provide the CA certificate or disable certificate validation (not recommended for production).- </Note>-- </Step>-</Steps>--## Create PAM Accounts--Once you have configured the PAM resource, you'll need to configure a PAM account for your Redis resource.-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 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**.-</Step>-- <Step title="Fill in Account Details">- Fill in the account details:-- <ParamField path="Name" type="string" required>- A friendly name for this account (e.g., `readonly-user`, `admin-access`)- </ParamField>-- <ParamField path="Use Credentials" type="boolean">- Toggle this on if your Redis instance requires authentication. When enabled, you'll need to provide a username and password.- Leave it as disabled if your Redis instance doesn't require authentication.- </ParamField>-- <ParamField path="Username" type="string">- The Redis username (required if Use Credentials is enabled).- </ParamField>-- <ParamField path="Password" type="string">- The Redis password (required if Use Credentials is enabled).- </ParamField>-- <Warning>- **Security Best Practice**: For production environments, always use Redis ACL (Access Control List) with strong passwords. Unauthenticated Redis instances should only be used in isolated, trusted networks.- </Warning>-- </Step>-</Steps>--## Access Redis Instance--Once your resource and accounts are configured, users can request access through the Infisical CLI:--<Steps>- <Step title="Get the Access Command">- 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>-- <Step title="Run the Access Command">- Run the copied command in your terminal.-- The CLI will:- 1. Authenticate with Infisical- 2. Establish a secure connection through the Gateway- 3. Start a local proxy on your machine- 4. Provide connection details for your Redis client-- </Step>-- <Step title="Connect to Redis">- Once the proxy is running, you can connect to Redis using your preferred Redis client. The proxy will be available on `localhost` with the URL shown in the CLI output.-- **Using redis-cli:**- ```bash- redis-cli -u <redis-url>- ```-- All commands are routed securely through the Infisical Gateway to your Redis instance.-- </Step>-- <Step title="End the Session">- When you're done, stop the proxy by pressing `Ctrl+C` in the terminal where it's running. This will:- - Close the secure tunnel- - End the session- - Log the session details to Infisical-- You can view session logs in the **Sessions** page of your PAM project.-- </Step>-</Steps>diff --git a/docs/documentation/platform/pam/getting-started/resources/ssh.mdx b/docs/documentation/platform/pam/getting-started/resources/ssh.mdxdeleted file mode 100644index 2df61b575a..0000000000--- a/docs/documentation/platform/pam/getting-started/resources/ssh.mdx+++ /dev/null@@ -1,275 +0,0 @@-----title: "SSH"-sidebarTitle: "SSH"-description: "Learn how to configure SSH server access through Infisical PAM with support for password, key-based, and certificate-based authentication."------Infisical PAM supports secure, just-in-time access to SSH servers. This allows your team to access Linux/Unix servers without sharing static credentials, while maintaining a complete audit trail of all sessions.--## How It Works--SSH access in Infisical PAM uses a Gateway deployed in your network to establish secure connections to your servers. The Gateway acts as a bridge between Infisical and your private infrastructure.--```mermaid-sequenceDiagram- participant CLI as Infisical CLI- participant Gateway- participant Infisical- participant SSH as SSH Server-- CLI->>Infisical: Request session (authenticate)- Infisical-->>CLI: Session ID + Gateway connection details- CLI->>Gateway: Connect via secure tunnel- Gateway->>Infisical: Fetch credentials for session- Infisical-->>Gateway: Return credentials- Gateway->>SSH: Connect with credentials- SSH-->>Gateway: Session established- Gateway-->>CLI: Proxied SSH session-```--## Authentication Methods--Infisical PAM supports three authentication methods for SSH:--| Method | Description | Use Case |-|--------|-------------|----------|-| **Password** | Traditional username/password authentication | Legacy systems, simple setups |-| **SSH Key** | Public key authentication with a private key | Standard secure access |-| **Certificate** | SSH certificates signed by a CA | Zero-trust, ephemeral credentials |--### Certificate-Based Authentication--Certificate-based authentication allows for the use of ephemeral credentials. Infisical generates short-lived SSH certificates on-demand for each session.--**Benefits:**-- **Ephemeral access**: Certificates are generated per-session and expire automatically-- **Centralized trust**: Servers trust the Infisical CA to authorize connections-- **Simplified management**: Infisical handles the certificate lifecycle for each connection-- **Audit trail**: Each certificate is tied to a specific user and session--```mermaid-sequenceDiagram- participant CLI as Infisical CLI- participant Gateway- participant Infisical- participant SSH as SSH Server-- CLI->>Infisical: Request session (authenticate)- Infisical-->>CLI: Session ID + Gateway connection details- CLI->>Gateway: Connect via secure tunnel- Gateway->>Infisical: Fetch credentials for session- Infisical->>Infisical: Generate key pair + sign certificate- Infisical-->>Gateway: Return private key + certificate- Gateway->>SSH: Connect with certificate- SSH->>SSH: Verify certificate against CA- SSH-->>Gateway: Session established- Gateway-->>CLI: Proxied SSH session-```--## Prerequisites--Before configuring SSH access in Infisical PAM, ensure you have:--1. **An Infisical Gateway** deployed with network reachability to your SSH servers-2. **Network connectivity** from the Gateway to your SSH servers on port 22 (or custom SSH port)-3. **SSH server credentials** (password, private key, or CA setup for certificate auth)--## Create the PAM Resource--The PAM Resource represents the SSH server you want to protect.--<Steps>- <Step title="Navigate to Resources">- Go to your PAM project and click on the **Resources** tab.- </Step>-- <Step title="Add SSH Resource">- Click **Add Resource** and select **SSH**.- </Step>-- <Step title="Configure Connection Details">- Fill in the connection details:-- <ParamField path="Name" type="string" required>- A friendly name for this resource (e.g., `production-server`, `bastion-host`)- </ParamField>-- <ParamField path="Gateway" type="string" required>- Select the Gateway that has network access to this SSH server- </ParamField>-- <ParamField path="Host" type="string" required>- The hostname or IP address of the SSH server (e.g., `192.168.1.100` or `server.internal.example.com`)- </ParamField>-- <ParamField path="Port" type="number" required>- The SSH port (default: `22`)- </ParamField>- </Step>-- <Step title="Create the Resource">- Click **Create Resource**. Infisical will validate that the Gateway can reach the SSH server.- </Step>-</Steps>--## Create PAM Accounts--A PAM Account represents a specific user account on the SSH server. You can create multiple accounts per resource with different authentication methods.--### Password Authentication--<Steps>- <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**.- </Step>-- <Step title="Configure Password Auth">- <ParamField path="Name" type="string" required>- A friendly name for this account (e.g., `ubuntu-admin`, `deploy-user`)- </ParamField>-- <ParamField path="Authentication Method" type="string" required>- Select **Password**- </ParamField>-- <ParamField path="Username" type="string" required>- The SSH username on the server- </ParamField>-- <ParamField path="Password" type="string" required>- The SSH password for this user- </ParamField>- </Step>-</Steps>--### SSH Key Authentication--<Steps>- <Step title="Add Account">- Click **Add Account** and select your SSH resource.- </Step>-- <Step title="Configure Key Auth">- <ParamField path="Name" type="string" required>- A friendly name for this account- </ParamField>-- <ParamField path="Authentication Method" type="string" required>- Select **SSH Key**- </ParamField>-- <ParamField path="Username" type="string" required>- The SSH username on the server- </ParamField>-- <ParamField path="Private Key" type="string" required>- The private key in OpenSSH format (begins with `-----BEGIN OPENSSH PRIVATE KEY-----`)- </ParamField>- </Step>-</Steps>--### Certificate Authentication--Certificate authentication requires additional setup on your SSH server to trust the Infisical CA.--<Steps>- <Step title="Configure the SSH Server">- Before creating the account, you need to configure your SSH server to trust certificates signed by Infisical.-- Run the following command on your SSH server (requires root/sudo):-- ```bash- curl -H "Authorization: Bearer <YOUR_TOKEN>" \- "https://app.infisical.com/api/v1/pam/resources/ssh/<RESOURCE_ID>/ssh-ca-setup" \- | sudo bash- ```-- This script will:- 1. Download the CA public key for your SSH resource- 2. Save it to `/etc/ssh/infisical_ca.pub`- 3. Add `TrustedUserCAKeys /etc/ssh/infisical_ca.pub` to `/etc/ssh/sshd_config`- 4. Validate and restart the SSH service-- <Info>- **First-time setup**: The CA key pair is generated automatically when you first call the setup endpoint. Subsequent calls will return the same CA public key.- </Info>-- <Warning>- **Manual setup**: If you prefer to configure the server manually, you can download just the CA public key and configure sshd yourself:-- ```bash- curl -H "Authorization: Bearer <YOUR_TOKEN>" \- "https://app.infisical.com/api/v1/pam/resources/ssh/<RESOURCE_ID>/ssh-ca-public-key" \- | sudo tee /etc/ssh/infisical_ca.pub- ```-- Then configure sshd:- 1. Add to `/etc/ssh/sshd_config`:- ```- TrustedUserCAKeys /etc/ssh/infisical_ca.pub- ```- 2. Restart sshd: `sudo systemctl restart sshd`- </Warning>- </Step>-- <Step title="Add Account in Infisical">- <ParamField path="Name" type="string" required>- A friendly name for this account- </ParamField>-- <ParamField path="Authentication Method" type="string" required>- Select **Certificate**- </ParamField>-- <ParamField path="Username" type="string" required>- The SSH username that the certificate will be issued for. This user must exist on the SSH server.- </ParamField>-- <Note>- Unlike password or key authentication, you don't need to provide any credentials. Infisical will generate a new key pair and certificate for each session.- </Note>- </Step>-</Steps>--## Access SSH Servers--Once your resource and accounts are configured, users can access SSH servers through the Infisical CLI.--<Steps>- <Step title="Install the CLI">- If you haven't already, install the Infisical CLI:-- ```bash- # macOS- brew install infisical/get-cli/infisical-- # Linux- curl -1sLf 'https://artifacts-cli.infisical.com/setup.deb.sh' | sudo -E bash- sudo apt-get install infisical- ```- </Step>-- <Step title="Login to Infisical">- ```bash- infisical login- ```- </Step>-- <Step title="Connect to SSH Server">- Specify the **resource name** and **account name** as shown in Infisical:-- ```bash- infisical pam ssh access --resource <resource-name> --account <account-name> --project-id <project-id> --duration <duration>- ```-- For example, to access the account `ubuntu-admin` on the resource `production-server`:-- ```bash- 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/resources/windows-server.mdx b/docs/documentation/platform/pam/getting-started/resources/windows-server.mdxdeleted file mode 100644index 69c6e77ab6..0000000000--- a/docs/documentation/platform/pam/getting-started/resources/windows-server.mdx+++ /dev/null@@ -1,151 +0,0 @@-----title: "Windows Server"-sidebarTitle: "Windows Server"-description: "Learn how to configure Windows Server access through Infisical PAM for secure, audited, and just-in-time access to your Windows servers via RDP."------Infisical PAM supports secure, just-in-time access to Windows servers via the Remote Desktop Protocol (RDP).-This allows your team to access Windows servers without sharing long-lived credentials, while maintaining a complete audit trail of who accessed what and when.--## How It Works--Windows Server access in Infisical PAM uses an Infisical Gateway to securely proxy RDP connections to your Windows server. When a user requests access, Infisical establishes a secure tunnel through the Gateway, enabling access without exposing your server directly.--```mermaid-sequenceDiagram- participant User- participant CLI as Infisical CLI- participant Infisical- participant Gateway as Infisical Gateway- participant Windows as Windows Server-- User->>CLI: Request Windows Server access- CLI->>Infisical: Authenticate & request session- Infisical-->>CLI: Session credentials & Gateway info- CLI->>Gateway: Establish secure tunnel- Gateway->>Windows: RDP connection (port 3389)- Windows-->>Gateway: Session established- Gateway-->>CLI: Proxied RDP session- CLI-->>User: RDP access-```--### Key Concepts--1. **Gateway**: An Infisical Gateway deployed in your network that can reach the Windows server. The Gateway handles secure communication between users and your server.--2. **RDP Protocol**: Infisical connects to your Windows server using the Remote Desktop Protocol (RDP) on the configured port (default: 3389).--3. **Account Types**: Windows accounts can be categorized as either **User** accounts or **Service** accounts, allowing you to organize and manage different types of access.--## Prerequisites--Before configuring Windows Server access in Infisical PAM, you need:--1. **Infisical Gateway** - A Gateway deployed in your network with access to the Windows server-2. **RDP Enabled** - Remote Desktop must be enabled on the Windows server (port 3389 by default)-3. **Windows Credentials** - A username and password for a Windows account on the server--<Warning>- **Gateway Required**: Windows Server access requires an Infisical Gateway to be deployed and registered with your Infisical instance. The Gateway must have network connectivity to your Windows server on the RDP port (default: 3389).-</Warning>--## Create the PAM Resource--The PAM Resource represents the Windows server you want to manage access to.--<Steps>- <Step title="Ensure Gateway is Running">- Before creating the resource, ensure you have an Infisical Gateway running and registered with your Infisical instance. The Gateway must have network access to your Windows server.- </Step>-- <Step title="Create the Resource in Infisical">- 1. Navigate to your PAM project and go to the **Resources** tab- 2. Click **Add Resource** and select **Windows Server**- 3. Fill in the connection details:-- <ParamField path="Name" type="string" required>- A friendly name for this resource (e.g., `production-windows`, `dev-server`)- </ParamField>-- <ParamField path="Gateway" type="string" required>- Select the Gateway that has network access to this Windows server- </ParamField>-- <ParamField path="Hostname" type="string" required>- The hostname or IP address of the Windows server (e.g., `192.168.1.100` or `server.internal.example.com`)- </ParamField>-- <ParamField path="Port" type="number" required>- The RDP port (default: `3389`)- </ParamField>-- <ParamField path="Active Directory Domain" type="string">- Optionally select an [Active Directory](/documentation/platform/pam/getting-started/resources/active-directory) resource to associate this Windows server with an AD domain. See [Domain Join](#domain-join) below for more details.- </ParamField>-- Clicking **Create Resource** will trigger a connection test from the selected Gateway to your Windows server. Infisical verifies that the server is reachable and responds to RDP connection requests.- </Step>-</Steps>--## Create PAM Accounts--A PAM Account represents a specific Windows user account on the server. You can create multiple accounts per resource with different permission levels.--<Steps>- <Step title="Navigate to the Resource">- After creating the resource, click into it to open the resource detail view. Select the **Accounts** tab on the right.- </Step>-- <Step title="Add Account">- Click **Add Account**.- </Step>-- <Step title="Fill in Account Details">- Fill in the account details:-- <ParamField path="Name" type="string" required>- A friendly name for this account (e.g., `admin-account`, `deploy-user`)- </ParamField>-- <ParamField path="Account Type" type="string" required>- Select the type of Windows account:- - **User Account** - A standard Windows user account- - **Service Account** - A Windows service account- </ParamField>-- <ParamField path="Username" type="string" required>- The Windows username on the server- </ParamField>-- <ParamField path="Password" type="string" required>- The Windows password for this user- </ParamField>- </Step>-</Steps>--## Access Windows Server--You can connect to a Windows Server account using either the browser-based RDP client or the Infisical CLI.--- **Web Access**: Connect directly from your browser with a full graphical desktop session. See [Windows RDP Web Access](/documentation/platform/pam/product-reference/web-access/windows-rdp) for details.-- **CLI Access**: Run `infisical pam rdp access` to start a local RDP proxy that launches your native RDP client (mstsc, Microsoft Remote Desktop, or FreeRDP). Credentials are injected automatically.--## Domain Join--Windows Server resources can be associated with an [Active Directory](/documentation/platform/pam/getting-started/resources/active-directory) resource to represent domain membership. This is useful for organizing your infrastructure and understanding which servers belong to which AD domain.--When creating or editing a Windows Server resource, select an AD domain from the **Active Directory Domain** dropdown. Once associated:--- The Windows server's connection details page will display the linked AD domain.-- The AD resource's **Related Resources** tab will list this Windows server as a domain member.-- AD account **Resources** tabs will show all domain-joined Windows servers, providing a centralized view of machines accessible with those domain credentials.--<Note>- Depending on your environment, you may need to allow inbound traffic from your internal network on the Windows server's host firewall, in addition to any infrastructure-level firewall rules. For example, in PowerShell on the Windows server:-- ```powershell- New-NetFirewallRule -DisplayName "Allow AD Subnet" -Direction Inbound -RemoteAddress 10.0.0.0/24 -Action Allow- ```-- Replace `10.0.0.0/24` with your actual internal subnet.-</Note>diff --git a/docs/documentation/platform/pam/getting-started/setup.mdx b/docs/documentation/platform/pam/getting-started/setup.mdxdeleted file mode 100644index 0817c53c32..0000000000--- a/docs/documentation/platform/pam/getting-started/setup.mdx+++ /dev/null@@ -1,35 +0,0 @@-----title: "Setup"-sidebarTitle: "Setup"-description: "This guide provides a step-by-step walkthrough for configuring Infisical's Privileged Access Management (PAM). Learn how to deploy a gateway, define resources, and grant your team secure, audited access to critical infrastructure."------Infisical's Privileged Access Management (PAM) solution enables you to provide developers with secure, just-in-time access to your critical infrastructure, such as databases, servers, and web applications. Instead of sharing static credentials, your team can request temporary access through Infisical, which is then brokered through a secure gateway with full auditing and session recording.--Getting started involves a few key components:-- **Gateways:** A lightweight service you deploy in your own infrastructure to act as a secure entry point to your private resources.-- **Resources:** The specific systems you want to manage access to (e.g., a PostgreSQL database or an SSH server).-- **Accounts:** The privileged credentials (e.g., a database user or an SSH user) that Infisical uses to connect to a resource on behalf of a user.--The following steps will guide you through the entire setup process, from deploying your first gateway to establishing a secure connection.--<Steps>- <Step title="Deploy a Gateway">- Before you can manage any resources, you must deploy an **Infisical Gateway** within your infrastructure. This component is responsible for brokering connections to your private resources.-- [Read the Gateway Deployment Guide](/documentation/platform/gateways/gateway-deployment)- </Step>- <Step title="Create a Resource">- Once the Gateway is active, define a **Resource** in Infisical (e.g., "Production Database"). You will link this resource to your deployed Gateway so Infisical knows how to reach it.-- [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.-- [Learn about Accounts](/documentation/platform/pam/getting-started/accounts)- </Step>- <Step title="Connect">- 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/guides/ssh-certificate-auth.mdx b/docs/documentation/platform/pam/guides/ssh-certificate-auth.mdxnew file mode 100644index 0000000000..ed53a64d5f--- /dev/null+++ b/docs/documentation/platform/pam/guides/ssh-certificate-auth.mdx@@ -0,0 +1,147 @@+---+title: "Set Up SSH Certificate Authentication"+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.++## 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++## Next Steps++<CardGroup cols={2}>+ <Card title="Sessions" icon="display" href="/documentation/platform/pam/sessions/overview">+ View SSH session recordings.+ </Card>+ <Card title="Team Access Guide" icon="users" href="/documentation/platform/pam/guides/team-access">+ Grant team access to databases.+ </Card>+</CardGroup>diff --git a/docs/documentation/platform/pam/guides/team-access.mdx b/docs/documentation/platform/pam/guides/team-access.mdxnew file mode 100644index 0000000000..e532be43eb--- /dev/null+++ b/docs/documentation/platform/pam/guides/team-access.mdx@@ -0,0 +1,132 @@+---+title: "Grant Team Access to a Database"+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++## Prerequisites++- Product Admin access (to create folders and optionally templates)+- A PostgreSQL database reachable from your [Gateway](/documentation/platform/gateways/overview)+- 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++## 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.++## Next Steps++<CardGroup cols={2}>+ <Card title="SSH Certificate Auth" icon="key" href="/documentation/platform/pam/guides/ssh-certificate-auth">+ Set up secure SSH access with certificates.+ </Card>+ <Card title="Sessions" icon="display" href="/documentation/platform/pam/sessions/overview">+ View and manage team sessions.+ </Card>+</CardGroup>diff --git a/docs/documentation/platform/pam/overview.mdx b/docs/documentation/platform/pam/overview.mdxindex 6c9cc7adc3..035fb2cbd4 100644--- a/docs/documentation/platform/pam/overview.mdx+++ b/docs/documentation/platform/pam/overview.mdx@@ -1,96 +1,45 @@----title: "Overview"+title: "Privileged Access Management"sidebarTitle: "Overview"-description: "Manage and secure access to critical infrastructure like databases and servers with policy-based controls and approvals."+description: "Manage and secure access to critical infrastructure like databases and servers with policy-based controls, session recording, and audit trails."----Infisical Privileged Access Management (PAM) provides a centralized way to manage and secure access to your critical infrastructure. It allows you to enforce fine-grained, policy-based controls over resources like databases, servers, and more, ensuring that only authorized users can access sensitive systems, and only when they need to.+Infisical 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.-## The PAM Workflow--At its core, Infisical PAM is designed to decouple **user identity** from **infrastructure credentials**. Instead of sharing static passwords or SSH keys, users authenticate with their SSO identity, and Infisical handles the rest.--Here is how a typical access lifecycle looks:--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.--## Core Concepts+<Card title="Get Started" icon="rocket" href="/documentation/platform/pam/getting-started">+ New to PAM? Launch your first session in under 10 minutes.+</Card>-To successfully implement Infisical PAM, it is essential to understand the relationship between the following components:+## What You Can Do-<CardGroup cols={3}>- <Card title="Gateway" icon="server" href="/documentation/platform/gateways/overview">- A lightweight service deployed in your network that acts as a secure bridge to your private infrastructure.+<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="Resource" icon="database" href="/documentation/platform/pam/getting-started/resources">- The specific target you are protecting (e.g., a PostgreSQL database or an Ubuntu server).+ <Card title="Sessions" icon="display" href="/documentation/platform/pam/sessions/overview">+ Monitor active sessions and review recordings.</Card>- <Card title="Account" icon="user-lock" href="/documentation/platform/pam/getting-started/accounts">- The specific identity on the Resource that the user is trying to access. One Resource can have multiple Accounts.+ <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>-### Relationship Model--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]-- DB --> A1[Account: admin]- DB --> A2[Account: readonly]-- SRV --> A3[Account: ubuntu]-```--1. **Gateway**: Deployed once per network/VPC. It provides connectivity to all resources in that environment.-2. **Resource**: Configured within Infisical. It points to a specific IP/Host accessible by the Gateway.-3. **Account**: Defined under a Resource. Users request access to a specific *Account* on a *Resource*.--## Network Architecture--Infisical PAM uses a secure proxy-based architecture to connect users to resources without direct network exposure.--When a user accesses a resource, their connection is routed securely through a Relay to your self-hosted Gateway, which then connects to the target resource. This ensures zero-trust access without exposing your infrastructure to the public internet.--For a deep dive into the technical architecture and security model, see [Architecture](/documentation/platform/pam/architecture).--## Getting Started--Ready to set up Infisical PAM? Follow our step-by-step guide to deploy a gateway, define resources, and grant your team secure access to critical infrastructure.--<Card title="Setup Guide" icon="rocket" href="/documentation/platform/pam/getting-started/setup">- Learn how to deploy a gateway, create resources, add accounts, and connect to your infrastructure.-</Card>--## Supported Resources--Infisical PAM supports a variety of resource types:+## Learn More<CardGroup cols={2}>- <Card title="SSH Servers" icon="terminal" href="/documentation/platform/pam/getting-started/resources/ssh">- Secure access to Linux servers via SSH with session recording.+ <Card title="Core Concepts" icon="book" href="/documentation/platform/pam/concepts/pam-components">+ Understand how templates, folders, and accounts work together.</Card>- <Card title="Kubernetes" icon="dharmachakra" href="/documentation/platform/pam/getting-started/resources/kubernetes">- Manage access to Kubernetes clusters.+ <Card title="Guides" icon="map" href="/documentation/platform/pam/guides/overview">+ End-to-end workflows for common scenarios.</Card>- <Card title="AWS IAM" icon="aws" href="/documentation/platform/pam/getting-started/resources/aws-iam">- Broker access to AWS resources via IAM credentials.+ <Card title="Access Control" icon="shield-halved" href="/documentation/platform/pam/concepts/access-control">+ Understand roles and permissions.</Card>- <Card title="Redis" icon="database" href="/documentation/platform/pam/getting-started/resources/redis">- Secure access to Redis databases.+ <Card title="Architecture" icon="sitemap" href="/documentation/platform/pam/architecture">+ How Gateways proxy connections securely.</Card></CardGroup>--## Core Capabilities--- **[Discovery](/documentation/platform/pam/discovery/overview)**: Automatically discover resources, accounts, and service dependencies across your infrastructure.-- **[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.mdxdeleted file mode 100644index bad790e325..0000000000--- a/docs/documentation/platform/pam/product-reference/access-policies.mdx+++ /dev/null@@ -1,159 +0,0 @@-----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](https://www.malikbrowne.com/blog/a-beginners-guide-glob-patterns/) (e.g. `prod-*`, `{prod,staging}-*`, `*-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 maximum access durations for requests matching this policy.-- **Bypass Approvals**: Optionally allow designated users to self-approve their own request in break-glass situations.--### Guide to Creating an Approval Policy--To create an approval policy, navigate to your PAM Project > Approvals > Policies and click **Create Policy**.----<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 maximum access duration allowed for requests matching this policy.- - **Bypass Approvals** (optional): Allow specific users or groups to self-approve their own request in break-glass situations. See *Bypass Approvals* below.-- - </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.-- 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>--### Bypass Approvals (Break-Glass)--The **Bypass Approvals** option enables emergency access in break-glass situations:--- When enabled, designated users (bypassers) can self-approve their own pending request with a written reason, skipping the configured approver workflow.-- When disabled, all requests must go through the full approval process.-- You can specify which users or groups are allowed to bypass.--The bypass is recorded as a `pam-access-policy-bypassed` audit event and notifies all approvers via in-app notification and email.--<Warning>- If bypass approvals is enabled and no specific users or groups are selected, anyone in the project can bypass this policy.-</Warning>--## 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----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.-- If the policy has Bypass Approvals enabled and you are a configured bypasser on your own request, you can also tick **Approve immediately without approver review (bypass policy)**, provide a reason, and approve in the same step.- </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.--## Role-based Permission Conditions--In addition to approval policies, project roles can scope PAM-account access using CASL conditions (Project > Access Control > Roles > edit role > PAM Accounts).--The `resourceName` and `resourceType` conditions behave slightly differently depending on the action:--- **Access action**: both conditions match the resource the user is connecting *through*. For local accounts this is the same resource the account belongs to. For domain accounts (Active Directory) it is the Windows host the credentials are being used against, not the account's domain parent.-- **All other actions** (read, create, update, delete): both conditions match the resource the account belongs to. Domain accounts have no owning resource, so these conditions don't apply to them for non-Access actions; use `domainName` / `domainType` to scope domain accounts instead.--`domainName` and `domainType` match the account's domain parent in every action, and are only set for domain accounts.--## 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/account-policies.mdx b/docs/documentation/platform/pam/product-reference/account-policies.mdxdeleted file mode 100644index 5baf51880a..0000000000--- a/docs/documentation/platform/pam/product-reference/account-policies.mdx+++ /dev/null@@ -1,113 +0,0 @@-----title: "Account Policies"-sidebarTitle: "Account Policies"-description: "Learn how to define behavioral rules for PAM accounts using account policies."------Account Policies let you define behavioral rules that are enforced on PAM accounts during sessions. Use them to block dangerous commands, mask sensitive data in session logs, or both.--## Concepts--An account policy is a named, project-scoped configuration that contains one or more **rules**. Each rule targets a specific behavior:--| Rule Type | Description | Supported Resources |-|---|---|---|-| **Command Blocking** | Prevents execution of commands matching specified regex patterns. | SSH |-| **Session Log Masking** | Redacts data matching specified regex patterns from session logs. | All resource types |-| **Require Access Reason** | Requires the user to provide a reason before a session can start. The reason is stored for audit. | All resource types |--A policy can be **active** or **inactive**. Only active policies are enforced during sessions.--## Creating an Account Policy--Navigate to your PAM project sidebar and click **Account Policies**, then click **Create Policy**.----<Steps>- <Step title="Name and Description">- Provide a **name** for the policy (must be unique within the project) and an optional **description**.-- - </Step>- <Step title="Add Rules">- Click **Add Rule** and select a rule type from the menu. Each rule type can only be added once per policy.-- - **Command Blocking**: Add one or more regex patterns. Commands matching any of these patterns will be blocked during SSH sessions.- - **Session Log Masking**: Add one or more regex patterns. Any data matching these patterns will be redacted in session logs.- - **Require Access Reason**: Forces the user to provide a non-empty reason before they can start a session. When the rule is active, the CLI prompts for a reason (or accepts the `--reason` flag) and the browser shows a Reason Required screen before the session is created.-- For each rule, click the **+** button to add additional patterns.-- -- Here's an example of command blocking in action during a live SSH session:-- -- And session logs with masked sensitive data:-- - </Step>- <Step title="Save">- Click **Create** to save the policy. The policy is active by default and will be enforced on any accounts it is assigned to.- </Step>-</Steps>--## Assigning a Policy to an Account--When creating or editing an [Account](/documentation/platform/pam/getting-started/accounts), select a policy from the **Account Policy** dropdown. Each account can have at most one policy assigned. Multiple accounts can share the same policy.----If a policy is deleted, any accounts that were using it will have their policy reference removed automatically.--## Toggling a Policy--You can toggle a policy between active and inactive from the account policies list page using the switch in the **Active** column. Inactive policies are not enforced during sessions.--## Editing a Policy--Click the **three-dot menu** on any policy row and select **Edit** to open the policy sheet. You can modify the name, description, and rules of the policy.--## Deleting a Policy--Click the **three-dot menu** on any policy row and select **Delete**. Deleting a policy removes it from all accounts that reference it.--## Writing Regex Patterns--Patterns use standard regular expression syntax. Some examples:--| Pattern | Effect |-|---|---|-| `rm\s+-rf` | Blocks `rm -rf` commands (command blocking) |-| `sudo\s+su` | Blocks `sudo su` commands (command blocking) |-| `password=.*` | Masks password values in logs (session log masking) |-| `api[_-]?key=.*` | Masks API key values in logs (session log masking) |--<Info>- Patterns are matched as regular expressions against the full command (for command blocking) or session log content (for session log masking). Test your patterns carefully to avoid overly broad matches.-</Info>--<Note>- Command blocking helps prevent unintended or careless commands from reaching the target, adding a guardrail in front of systems where direct controls on the target resource aren't available.-- Because matches are evaluated with regular expressions, patterns need to cover the different ways a command might be typed, and exhaustive coverage of every variation is difficult to guarantee in practice. It is highly recommended to pair command blocking with target-side controls like restricted shells or `sudoers` rules where those are available.-</Note>--## FAQ--<AccordionGroup>- <Accordion title="Can I assign multiple policies to a single account?">- No. Each account can have at most one policy assigned. If you need to combine rules, create a single policy that includes all the rules you need.- </Accordion>- <Accordion title="What happens when I deactivate a policy?">- Deactivating a policy stops it from being enforced during sessions. The policy remains assigned to its accounts and can be reactivated at any time.- </Accordion>- <Accordion title="What happens when I delete a policy that is assigned to accounts?">- The accounts will have their policy reference removed. The accounts themselves are not affected — they will simply have no policy applied.- </Accordion>- <Accordion title="What happens if a policy has rules that don't apply to the account's resource type?">- Only the rules that are applicable to the resource type are enforced. For example, if a policy contains both a command blocking rule and a session log masking rule, and it is assigned to a PostgreSQL account, only the session log masking rule will be enforced — command blocking is specific to SSH resources and will be ignored for non-SSH accounts.- </Accordion>-</AccordionGroup>diff --git a/docs/documentation/platform/pam/product-reference/ai-session-insights.mdx b/docs/documentation/platform/pam/product-reference/ai-session-insights.mdxdeleted file mode 100644index 3d6b4b6dc4..0000000000--- a/docs/documentation/platform/pam/product-reference/ai-session-insights.mdx+++ /dev/null@@ -1,93 +0,0 @@-----title: "AI Session Insights"-sidebarTitle: "AI Session Insights"-description: "Learn how Infisical uses AI to automatically summarize PAM session activity."------AI Session Insights is disabled by default and must be enabled per resource. Once enabled, it automatically generates a summary of what happened during a PAM session once it ends. Instead of manually reviewing raw logs, administrators get a concise, human-readable overview of the user's activity along with any flagged actions that may warrant further review.--<Warning>- AI Session Insights are generated by a large language model and may not be fully accurate. Summaries and warnings should be used as a starting point for investigation, not as a definitive record of session activity. Always refer to the raw session logs for authoritative information.-</Warning>--## How It Works--When a session ends (whether the user disconnects, it times out, or an admin terminates it), Infisical asynchronously processes the session logs using the AI model configured for that resource. The model produces a structured output containing:--- **Summary**: A 2–4 sentence overview of what the user was trying to accomplish during the session, grouping related actions together.-- **Warnings**: Specific actions the model flagged as potentially destructive or suspicious (e.g., a `DROP TABLE` on a production database or a `rm -rf` on a server). Each warning includes a short description and, for database sessions, a reference to the specific log entry.--The insights are encrypted at rest using the same KMS key as the rest of your project's data.--## Supported Resources--AI Session Insights are currently supported for the following resource types:--- **PostgreSQL**: Summarizes SQL queries and flags destructive or suspicious operations such as dropping tables, bulk deletes, and privilege changes.-- **SSH**: Summarizes terminal commands and flags dangerous operations such as file deletion, privilege escalation, or data exfiltration attempts.--<Note>- Support for additional resource types is planned for future releases.-</Note>--## Prerequisites--- An [Anthropic App Connection](/integrations/app-connections/anthropic) configured in your organization. This is the connection Infisical uses to call the Claude API on your behalf.--## Configuration--AI Session Insights are configured per resource. To enable them:--<Steps>- <Step title="Open the resource">- Navigate to your PAM project and click on the resource you want to configure.- </Step>- <Step title="Edit Session Recording settings">- On the resource detail page, click the **Edit** button in the **Session Recording** section.-- - </Step>- <Step title="Enable AI Insights">- Toggle **AI Insights** on. Two additional fields will appear:-- - **App Connection**: Select the Anthropic connection to use for generating summaries.- - **Model**: Choose the Claude model to use. We recommend **Claude Sonnet 4.6** for a balance of quality and cost, or **Claude Opus 4.6** for the most detailed analysis.-- - </Step>- <Step title="Save">- Click **Update Details** to save the configuration. AI Insights will be generated for all new sessions on this resource going forward.- </Step>-</Steps>--## Viewing AI Insights--After a session ends, Infisical processes the logs and generates insights in the background. To view them:--1. Navigate to the **Sessions** page in your PAM project.-2. Click on a completed session.-3. The **AI Insights** card appears at the top of the session detail page, showing the summary and any warnings.----For PostgreSQL sessions, each warning links directly to the relevant log entry so you can inspect the raw activity in context. SSH warnings do not include log entry references.--## FAQ--<AccordionGroup>- <Accordion title="Does Infisical share my session data with Anthropic?">- AI Insights uses the Anthropic connection you configure in your organization, meaning requests go through your own API key and are subject to your agreement with Anthropic. Only the logs from the specific session being summarized are included in the request. No secrets, credentials, or other project data are shared. Refer to [Anthropic's privacy policy](https://www.anthropic.com/legal/privacy) for details on how they handle API inputs.- </Accordion>- <Accordion title="Can I use AI Insights with any Claude model?">- AI Insights supports Claude Sonnet 4.6, Claude Opus 4.6, and Claude Haiku 4.5. Sonnet 4.6 is recommended for most use cases as a balance of quality and cost.- </Accordion>- <Accordion title="How long does it take for insights to appear after a session ends?">- Insights are generated asynchronously and typically appear within a few seconds to a minute after a session ends, depending on the length of the session logs and the model selected. For very long sessions, generation may take longer.- </Accordion>- <Accordion title="Can I configure different AI models for different resources?">- Yes. AI Insights are configured per resource, so each resource can use a different Anthropic connection or Claude model. This lets you apply a more powerful model to high-risk resources and a lighter model elsewhere.- </Accordion>- <Accordion title="What happens if the session log is very long?">- If the session logs exceed the size limit, Infisical will not generate an AI summary for that session. The raw logs are always available to review regardless of session length.- </Accordion>-</AccordionGroup>diff --git a/docs/documentation/platform/pam/product-reference/auditing.mdx b/docs/documentation/platform/pam/product-reference/auditing.mdxdeleted file mode 100644index 00a464a1ed..0000000000--- a/docs/documentation/platform/pam/product-reference/auditing.mdx+++ /dev/null@@ -1,23 +0,0 @@-----title: "Auditing"-sidebarTitle: "Auditing"-description: "Learn how Infisical audits all actions across your PAM project."------## What's Audited--Infisical logs a wide range of actions to provide a complete audit trail for your PAM project. These actions include:--- Session Start and End-- Fetching session credentials-- 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).-</Info>--## Viewing Audit Logs--You can view, search, and filter all events from the **Audit Logs** page within your PAM project.--diff --git a/docs/documentation/platform/pam/product-reference/credential-rotation.mdx b/docs/documentation/platform/pam/product-reference/credential-rotation.mdxdeleted file mode 100644index b32cf0d435..0000000000--- a/docs/documentation/platform/pam/product-reference/credential-rotation.mdx+++ /dev/null@@ -1,48 +0,0 @@-----title: "Credential Rotation"-sidebarTitle: "Credential Rotation"-description: "Learn how to automate credential rotation for your PAM resources."------Automated Credential Rotation enhances your security posture by automatically changing the passwords of your accounts at set intervals. This minimizes the risk of compromised credentials by ensuring that even if a password is leaked, it remains valid only for a short period.--## How it Works--When rotation is enabled, Infisical's Gateway connects to the target resource using a privileged "Rotation Account". It then executes the necessary commands to change the password for the target user account to a new, cryptographically secure random value.--## Configuration--Setting up automated rotation requires a two-step configuration: first at the Resource level, and then at the individual Account level.--<Steps>- <Step title="Configure Rotation Account on Resource">- A **Rotation Account** is a master or privileged account that has the necessary permissions to change the passwords of other users on the target system.-- When creating or editing a [Resource](/documentation/platform/pam/getting-started/resources), you must provide the credentials for this privileged account.-- *Example: For a PostgreSQL database, this would typically be the `postgres` superuser or another role with `ALTER ROLE` privileges.*-- - </Step>-- <Step title="Enable Rotation on Account">- Once the resource has a rotation account configured, you can enable rotation for individual [Accounts](/documentation/platform/pam/getting-started/accounts) that belong to that resource.-- In the account settings:- 1. Toggle **Enable Rotation**.- 2. Set the **Rotation Interval** (e.g., every 7 days, 30 days).-- - </Step>-</Steps>--## Supported Resources--Automated rotation is currently supported for the following resource types:--- **PostgreSQL**: Requires a rotation account with `ALTER ROLE` permissions.-- **Windows Server**: Requires a rotation account in the local Administrators group. Rotation applies to local machine accounts only.--<Note>- We are constantly adding support for more resource types.-</Note>diff --git a/docs/documentation/platform/pam/product-reference/external-storage.mdx b/docs/documentation/platform/pam/product-reference/external-storage.mdxdeleted file mode 100644index 5a4d5d9add..0000000000--- a/docs/documentation/platform/pam/product-reference/external-storage.mdx+++ /dev/null@@ -1,67 +0,0 @@-----title: "External Storage"-sidebarTitle: "External Storage"-description: "Store PAM session recordings in your own S3 bucket for full control over data residency and retention."------By default, Infisical stores session recordings in its managed database. You can instead point recordings at your own Amazon S3 bucket so that encrypted session data stays in infrastructure you control.--## Prerequisites--Before configuring external storage you need an **AWS Connection** set up in your organization. This connection gives Infisical the credentials it needs to write and read objects in your bucket.--If you don't have one yet, follow the [AWS Connection guide](/integrations/app-connections/aws) to create one. The connection's IAM role must have `s3:PutObject`, `s3:GetObject`, and `s3:HeadObject` permissions on the target bucket.--## Configuring the Bucket--<Steps>- <Step title="Navigate to PAM project settings">- Open your PAM project, go to **Settings**, then select the **Session Recording** tab.- </Step>- <Step title="Select the AWS connection and fill in bucket details">- Choose your AWS Connection from the dropdown, then enter the bucket name, region, and an optional key prefix. The key prefix is useful when multiple projects share the same bucket.- </Step>- <Step title="Save the configuration">- Click **Save**. Infisical will validate that it can reach the bucket with the provided credentials before persisting the configuration.- </Step>-</Steps>--<Warning>-Changing the bucket or key prefix on a project that already has recordings makes those recordings inaccessible unless you manually migrate the objects. When rotating credentials, keep the same bucket and key prefix.-</Warning>--## CORS Configuration--During session playback the browser fetches encrypted chunks directly from S3 using presigned GET URLs. For this to work the bucket needs a CORS policy that allows requests from your Infisical dashboard origin.--Open the bucket in the AWS console, go to **Permissions > Cross-origin resource sharing (CORS)**, and add:--```json-[- {- "AllowedHeaders": ["*"],- "AllowedMethods": ["GET"],- "AllowedOrigins": ["https://app.infisical.com"],- "ExposeHeaders": [],- "MaxAgeSeconds": 3600- }-]-```--Replace `https://app.infisical.com` with the origin where your Infisical dashboard is served (for example `https://eu.infisical.com` or `http://localhost:8080` during development). You can list multiple origins if needed.--If CORS is not configured, the config page will show a warning toast after saving and session playback will fail with a network error in the browser console.--## FAQ--<AccordionGroup>- <Accordion title="Can I use a bucket in a different AWS account?">- Yes, as long as the IAM role in your AWS Connection has cross-account access to the bucket. Configure the bucket policy to allow the role's ARN.- </Accordion>- <Accordion title="What happens if I disable the external storage configuration?">- New sessions will fall back to the managed database. Existing recordings in the bucket remain there but won't be accessible from the dashboard until you reconfigure with the same bucket and key prefix.- </Accordion>- <Accordion title="Can I share one bucket across multiple projects?">- Yes. Use a different key prefix for each project (for example `pam/prod` and `pam/staging`) to keep recordings organized.- </Accordion>-</AccordionGroup>diff --git a/docs/documentation/platform/pam/product-reference/session-recording.mdx b/docs/documentation/platform/pam/product-reference/session-recording.mdxdeleted file mode 100644index 11c19b0ba9..0000000000--- a/docs/documentation/platform/pam/product-reference/session-recording.mdx+++ /dev/null@@ -1,69 +0,0 @@-----title: "Session Recording"-sidebarTitle: "Session Recording"-description: "Learn how Infisical records and stores session activity for auditing and monitoring."------Infisical PAM provides robust session recording capabilities to help you audit and monitor user activity across your infrastructure.--## How It Works--When a user initiates a session by accessing an account, a recording of the session begins. The Gateway securely caches all recording data in temporary encrypted files on its local system.--Every 10 seconds, the Gateway incrementally uploads new session events to the Infisical platform, allowing administrators to monitor activity in near real-time without waiting for the session to end. If the connection to the Infisical platform is temporarily lost, the Gateway continues recording locally and resumes uploading once connectivity is restored, ensuring no data is lost. After the session concludes, administrators can search and review the complete session logs on the Infisical platform.--## What's Captured--The content captured during a session depends on the type of resource being accessed.--<AccordionGroup>- <Accordion title="Database Sessions">- Infisical captures all queries executed and their corresponding responses, including timestamps for each action.- </Accordion>- <Accordion title="SSH Sessions">- Infisical captures all commands executed and their corresponding responses, including timestamps for each action.- </Accordion>- <Accordion title="Windows RDP Sessions">- Infisical captures keyboard input, mouse events, and screen frames with timestamps for each action.- </Accordion>-</AccordionGroup>--## Viewing Recordings--To review session recordings:--1. Navigate to the **Sessions** page in your PAM project.-2. Click on a session from the list to view its details.----The session details page provides key information, including the complete session logs, connection status, the user who initiated it, and more.----### Searching Logs--You can use the search bar to quickly find relevant information:--**Sessions page:** Search across all session logs to locate specific queries or outputs.---**Individual session page:** Search within that specific session's logs to pinpoint activity.---## AI Insights--Infisical can automatically generate an AI-powered summary of each session's activity once it ends. The summary includes a plain-language overview of what the user did and highlights any actions that may warrant further review.--See [AI Session Insights](/documentation/platform/pam/product-reference/ai-session-insights) to learn how to configure this feature.--## FAQ--<AccordionGroup>- <Accordion title="Are session recordings encrypted?">- Yes. All session recordings are encrypted at rest by default, ensuring your data is always secure.- </Accordion>- <Accordion title="How quickly do session logs appear on the platform?">- Session events are uploaded every 10 seconds, so logs appear on the platform in near real-time during an active session. The session detail page refreshes automatically while a session is active.- </Accordion>-</AccordionGroup>diff --git a/docs/documentation/platform/pam/product-reference/view-credentials.mdx b/docs/documentation/platform/pam/product-reference/view-credentials.mdxdeleted file mode 100644index 066d35ec95..0000000000--- a/docs/documentation/platform/pam/product-reference/view-credentials.mdx+++ /dev/null@@ -1,28 +0,0 @@-----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/documentation/platform/pam/product-reference/web-access/overview.mdx b/docs/documentation/platform/pam/product-reference/web-access/overview.mdxdeleted file mode 100644index f5412e5950..0000000000--- a/docs/documentation/platform/pam/product-reference/web-access/overview.mdx+++ /dev/null@@ -1,60 +0,0 @@-----title: "Web Access"-sidebarTitle: "Overview"-description: "Access PAM-managed resources directly from your browser."------Infisical PAM Web Access provides a browser-based portal for interacting with your infrastructure directly from your browser via the Infisical dashboard — no client tools or CLI required.--<Info>- Web Access currently supports **PostgreSQL** databases (with visual table browsing, inline editing, and a SQL query runner), **Redis** servers, **SSH** servers, and **Windows** servers via RDP.-</Info>--## How It Works--When you open a web access session, Infisical establishes a secure WebSocket connection that tunnels through an Infisical Gateway to your target resource. All commands are executed server-side and streamed back to your browser in real time.--```mermaid-sequenceDiagram- participant Browser- participant Infisical- participant Gateway as Infisical Gateway- participant Resource as Target Resource-- Browser->>Infisical: Request session ticket- Infisical-->>Browser: One-time ticket- Browser->>Infisical: Open WebSocket with ticket- Infisical->>Gateway: Establish secure tunnel- Gateway->>Resource: Connect with account credentials- Browser->>Infisical: User input- Infisical->>Gateway: Forward input- Gateway->>Resource: Execute- Resource-->>Browser: Streamed output-```--## Session Limits--| Setting | Value |-|---------|-------|-| **Max session duration** | 1 hour |-| **Idle timeout** | 10 minutes (resets on any input) |-| **Concurrent sessions** | 5 per user per project |--Sessions that exceed the idle timeout or max duration are automatically terminated.--## Supported Resources--<CardGroup cols={2}>- <Card title="PostgreSQL" icon="database" href="/documentation/platform/pam/product-reference/web-access/postgresql">- Visual table browsing and editing, plus an integrated SQL query runner.- </Card>- <Card title="Redis" icon="database" href="/documentation/platform/pam/product-reference/web-access/redis">- Interactive Redis REPL with redis-cli-style output formatting.- </Card>- <Card title="SSH" icon="terminal" href="/documentation/platform/pam/product-reference/web-access/ssh">- Full interactive shell session via browser-based terminal.- </Card>- <Card title="Windows RDP" icon="desktop" href="/documentation/platform/pam/product-reference/web-access/windows-rdp">- Full graphical remote desktop session via browser-based RDP client.- </Card>-</CardGroup>diff --git a/docs/documentation/platform/pam/product-reference/web-access/postgresql.mdx b/docs/documentation/platform/pam/product-reference/web-access/postgresql.mdxdeleted file mode 100644index 86dea08c34..0000000000--- a/docs/documentation/platform/pam/product-reference/web-access/postgresql.mdx+++ /dev/null@@ -1,96 +0,0 @@-----title: "PostgreSQL Web Access"-sidebarTitle: "PostgreSQL"-description: "Browse, query, and edit PostgreSQL databases directly from your browser."--------PostgreSQL web access provides a unified interface for interacting with your database directly from the browser. It combines visual table browsing and editing with an integrated SQL query runner, all in one interface.--## Connecting--<Steps>- <Step title="Navigate to Account">- Go to the **Resources** tab in your PAM project, open the PostgreSQL resource, and find the account you want to access. Click the **Connect** button next to the account.-- -- Alternatively, if you are on the account page, click the **Access** button.-- - </Step>-- <Step title="Connect in Browser">- In the connect modal, click **Connect in Browser** to launch the web access interface in a new tab.-- - </Step>-</Steps>--Once connected, you get a spreadsheet-like interface for your database where you can:--- Browse tables and explore their data-- Filter and sort to quickly find what you need-- Edit data directly — add, update, or delete rows-- Export results as CSV or JSON (download or copy to clipboard)----## Tabs--The interface uses tabs to keep multiple working contexts open at once. Tabs come in two kinds:--- **Table tabs** — opened by clicking a table in the sidebar. Clicking a table that is already open switches to its existing tab. To open a duplicate tab for the same table, right-click the table and choose **Open in new tab**, or hold <kbd>⌘</kbd> / <kbd>Ctrl</kbd> while clicking.-- **Query tabs** — opened with the **+ New query** button in the tab bar.--Each tab uses its own database connection, so transactions are scoped to the tab they were opened in.--## SQL Queries--The SQL query runner lets you run arbitrary SQL against your database without leaving the browser.----### Usage--Write your query in the editor and run it by clicking **Run** or pressing `Cmd+Enter` (Mac) / `Ctrl+Enter` (Windows/Linux). Results are displayed in a table below the editor with column types, primary key, and foreign key indicators.--#### Multi-statement queries--If you run multiple statements at once, the results of the last statement are shown, the same behaviour as `psql`.--#### Mutation queries--`INSERT`, `UPDATE`, and `DELETE` statements display the number of affected rows instead of a result table.--## Exporting Data--You can export the currently visible data from both table browse tabs and query result panels. Click the download icon to open the export menu with the following options:--- **Download as CSV / JSON** — saves a file to your machine.-- **Copy as CSV / JSON** — copies the data to your clipboard.--## Limits--In addition to the [common session limits](/documentation/platform/pam/product-reference/web-access/overview#session-limits), the following PostgreSQL-specific limits apply:--| Setting | Value |-|---------|-------|-| **Statement timeout** | 30 seconds per query |--While the browser tab is in the foreground, sessions are kept alive against the [idle timeout](/documentation/platform/pam/product-reference/web-access/overview#session-limits) (10 minutes); the timeout starts counting once the tab becomes hidden. The max session duration still applies regardless.--## FAQ--<AccordionGroup>- <Accordion title="Can I edit data for all tables?">- Editing is only available for tables that have a primary key defined. Tables without a primary key, as well as views, are displayed in read-only mode.- </Accordion>- <Accordion title="Does the SQL query runner support transactions?">- Yes. You can use `BEGIN`, `COMMIT`, and `ROLLBACK` to manage transactions. The toolbar will show a **Transaction open** indicator while a transaction is in progress.- </Accordion>- <Accordion title="Can I run only part of a query?">- Yes. Select any portion of the SQL in the editor and click **Run Selection** (or press <kbd>⌘ Enter</kbd> / <kbd>Ctrl Enter</kbd>) to execute only the selected text.- </Accordion>-</AccordionGroup>diff --git a/docs/documentation/platform/pam/product-reference/web-access/redis.mdx b/docs/documentation/platform/pam/product-reference/web-access/redis.mdxdeleted file mode 100644index 97402d55bd..0000000000--- a/docs/documentation/platform/pam/product-reference/web-access/redis.mdx+++ /dev/null@@ -1,60 +0,0 @@-----title: "Redis Web Access"-sidebarTitle: "Redis"-description: "Run Redis commands directly from your browser with an interactive REPL."------The Redis web access terminal provides a `redis-cli`-like experience in your browser. It is designed for light, ad-hoc usage — quick lookups, debugging, and administrative tasks — not as a replacement for a full Redis client or long-running workloads.--## Connecting--<Steps>- <Step title="Navigate to Account">- Go to the **Resources** tab in your PAM project, open the Redis resource, and find the account you want to access. Click the **Connect** button next to the account.-- -- Alternatively, if you are on the account page, click the **Access** button.-- - </Step>-- <Step title="Connect in Browser">- In the connect modal, click **Connect in Browser** to open the web access terminal.-- - </Step>-- <Step title="End Session">- Click the **Disconnect** button from the web access terminal status bar or type `quit` or `exit`. You can reconnect from the same page.- </Step>-</Steps>----## Usage--Once connected, you'll see a `>` prompt. Type Redis commands as you would in `redis-cli`:--```-> SET greeting "Hello, World!"-OK-> GET greeting-"Hello, World!"-> KEYS *-1) "greeting"-> DEL greeting-(integer) 1-```--## Limits--See the [common session limits](/documentation/platform/pam/product-reference/web-access/overview#session-limits) that apply to all web access sessions.--## FAQ--<AccordionGroup>- <Accordion title="Is this an actual redis-cli session?">- No. The web access terminal is not a `redis-cli` client. It is a custom REPL that connects directly to Redis and provides a `redis-cli`-like experience, including familiar prompts and reply formatting.- </Accordion>-</AccordionGroup>diff --git a/docs/documentation/platform/pam/product-reference/web-access/ssh.mdx b/docs/documentation/platform/pam/product-reference/web-access/ssh.mdxdeleted file mode 100644index a3b06e5418..0000000000--- a/docs/documentation/platform/pam/product-reference/web-access/ssh.mdx+++ /dev/null@@ -1,55 +0,0 @@-----title: "SSH Web Access"-sidebarTitle: "SSH"-description: "Connect to SSH servers directly from your browser with an interactive terminal."------The SSH web access terminal provides a browser-based interactive shell for SSH servers. It is designed for quick interactive sessions — running commands, debugging, and administrative tasks.--## Connecting--<Steps>- <Step title="Navigate to Account">- Go to the **Resources** tab in your PAM project, open the SSH resource, and find the account you want to access. Click the **Connect** button next to the account.-- -- Alternatively, if you are on the account page, click the **Access** button.-- - </Step>-- <Step title="Connect in Browser">- In the connect modal, click **Connect in Browser** to open the web access terminal.-- - </Step>-- <Step title="End Session">- Click the **Disconnect** button from the web access terminal status bar or type `exit` or `logout`.- </Step>-</Steps>----## Usage--Once connected, you have a full interactive shell.--## Authentication Methods--All three SSH [authentication methods](/documentation/platform/pam/getting-started/resources/ssh#authentication-methods) are supported:--- **Password** — username and password-- **SSH Key** — public/private key pair-- **Certificate** — SSH certificates--Credentials are injected automatically from the PAM account configuration. You never need to enter or see them.--## FAQ--<AccordionGroup>- <Accordion title="Is this a real SSH session?">- Yes. Unlike the PostgreSQL web access terminal which is a custom SQL REPL, the SSH terminal is a real SSH shell session proxied through the Infisical Gateway. You get a full interactive shell with all the capabilities of a native SSH connection.- </Accordion>-</AccordionGroup>diff --git a/docs/documentation/platform/pam/product-reference/web-access/windows-rdp.mdx b/docs/documentation/platform/pam/product-reference/web-access/windows-rdp.mdxdeleted file mode 100644index d35b49a7f5..0000000000--- a/docs/documentation/platform/pam/product-reference/web-access/windows-rdp.mdx+++ /dev/null@@ -1,70 +0,0 @@-----title: "Windows RDP Web Access"-sidebarTitle: "Windows RDP"-description: "Connect to Windows servers via RDP directly from your browser."------Infisical PAM supports two ways to connect to a Windows server via RDP:--- **Browser**: Connect directly from the Infisical dashboard with a full graphical desktop session. No RDP client installation required.-- **Native RDP Client**: Use the Infisical CLI to start a local RDP proxy that launches your native RDP client (mstsc, Microsoft Remote Desktop, or FreeRDP). Run `infisical pam rdp access` to start a session.--In both cases, credentials are injected automatically from the PAM account configuration. You never need to enter or see them.--## Connecting via Browser--<Steps>- <Step title="Navigate to Account">- Go to the **Resources** tab in your PAM project, open the Windows Server resource, and find the account you want to access. Click the **Connect** button next to the account.-- -- Alternatively, if you are on the account page, click the **Access** button.-- - </Step>-- <Step title="Connect in Browser">- In the connect modal, click **Connect in Browser**. A new tab opens and begins establishing the RDP session. A loading indicator is displayed while Infisical sets up the secure tunnel through the Gateway to your Windows server.-- - </Step>-- <Step title="Interact with the Desktop">- Once connected, you have a full graphical desktop session.-- - </Step>-- <Step title="End Session">- Click the **Disconnect** button in the status bar at the bottom of the screen. You can reconnect from the same page using the **Reconnect** button.- </Step>-</Steps>--## Session Recording--RDP sessions are recorded by the Gateway as a full video capture of the remote desktop, including keyboard input, mouse events, and screen frames with timestamps. Administrators can play back the recording from the **Sessions** page in the PAM project to review exactly what the user saw and did.--See [Session Recording](/documentation/platform/pam/product-reference/session-recording) for details on how recordings are captured, uploaded, and stored.--RDP session recordings require external S3 storage to be configured. See [External Storage](/documentation/platform/pam/product-reference/external-storage) for setup instructions.--## Active Directory--Windows Server resources can be associated with an Active Directory domain. When a server is domain-joined, accounts from the AD domain can be used to access the server through RDP web access. The Gateway injects the domain credentials (including the domain name) into the RDP connection automatically.--See [Windows Server - Domain Join](/documentation/platform/pam/getting-started/resources/windows-server#domain-join) and [Active Directory](/documentation/platform/pam/getting-started/resources/active-directory) for setup instructions.--## FAQ--<AccordionGroup>- <Accordion title="What RDP features are supported in the browser?">- Keyboard input (including shortcuts like Ctrl+Alt+Del and Alt+Tab), mouse interaction, and screen display with automatic scaling are supported. Clipboard sharing, file/drive redirection, audio redirection, and printer redirection are not currently supported.- </Accordion>- <Accordion title="What happens if my connection drops?">- If your browser tab closes or the network connection drops, the session ends. Click **Reconnect** to start a new session. Sessions cannot be resumed after a disconnect, so any unsaved work on the remote desktop will be lost.- </Accordion>- <Accordion title="Does the session stay active if I switch to another tab?">- The session continues running in the background, but it will automatically close after 10 minutes of inactivity. Switch back to the tab periodically to keep the session alive.- </Accordion>-</AccordionGroup>diff --git a/docs/documentation/platform/pam/quick-starts/launch-first-session.mdx b/docs/documentation/platform/pam/quick-starts/launch-first-session.mdxnew file mode 100644index 0000000000..056a5f31c8--- /dev/null+++ b/docs/documentation/platform/pam/quick-starts/launch-first-session.mdx@@ -0,0 +1,95 @@+---+title: "Launch Your First Session"+sidebarTitle: "Launch First Session"+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.++## Prerequisites++- Admin access to PAM+- A PostgreSQL database reachable from your [Gateway](/documentation/platform/gateways/overview)+- 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**.++## Next Steps++<CardGroup cols={2}>+ <Card title="Core Concepts" icon="book" href="/documentation/platform/pam/concepts/pam-components">+ Understand how folders, templates, and accounts work together.+ </Card>+ <Card title="Team Access Guide" icon="users" href="/documentation/platform/pam/guides/team-access">+ Grant your team access to production databases.+ </Card>+</CardGroup>diff --git a/docs/documentation/platform/pam/sessions/external-storage.mdx b/docs/documentation/platform/pam/sessions/external-storage.mdxnew file mode 100644index 0000000000..4fafeb3d03--- /dev/null+++ b/docs/documentation/platform/pam/sessions/external-storage.mdx@@ -0,0 +1,112 @@+---+title: "External Storage"+sidebarTitle: "External Storage"+description: "Store session recordings in your own S3 bucket."+---++By default, session recordings are stored in Infisical's managed database. If you need control over where recordings live — for data residency, retention policies, or compliance requirements — you can store them in your own S3 bucket instead.++## Prerequisites++Before configuring external storage, you need an **AWS Connection** set up in your organization. This provides the credentials Infisical uses to write to your bucket.++If you don't have one, see the [AWS Connection guide](/integrations/app-connections/aws).++### Required Permissions++The connection's IAM role needs these permissions on the bucket:++```json+{+ "Version": "2012-10-17",+ "Statement": [+ {+ "Effect": "Allow",+ "Action": ["s3:PutObject", "s3:GetObject", "s3:HeadObject"],+ "Resource": "arn:aws:s3:::your-bucket-name/*"+ }+ ]+}+```++## Configuring a Template for External Storage++External storage is set at the template level. Each template can use a different bucket if needed.++<Steps>+ <Step title="Open the template">+ Go to **Account Templates** and click on the template you want to configure.+ </Step>+ <Step title="Find Recording Storage">+ In **System Settings**, find the **Recording Storage** section.+ </Step>+ <Step title="Select External S3">+ Change from **Internal** to **External S3**.+ </Step>+ <Step title="Configure the bucket">+ | Field | Description |+ |-------|-------------|+ | **AWS Connection** | Select your AWS connection |+ | **Bucket Name** | Your S3 bucket |+ | **Region** | AWS region |+ | **Key Prefix** | Optional prefix for object keys (e.g., `pam/prod/`) |+ </Step>+ <Step title="Save">+ Click **Save**. Infisical validates that it can reach the bucket before saving.+ </Step>+</Steps>++## CORS Configuration++For session playback to work in the browser, your bucket needs a CORS policy:++```json+[+ {+ "AllowedHeaders": ["*"],+ "AllowedMethods": ["GET"],+ "AllowedOrigins": ["https://app.infisical.com"],+ "MaxAgeSeconds": 3600+ }+]+```++Replace `https://app.infisical.com` with your Infisical URL if self-hosted.++To configure:+1. Open the bucket in AWS Console+2. Go to **Permissions → Cross-origin resource sharing (CORS)**+3. Add the configuration above++If CORS isn't set up correctly, session playback will fail with a network error.++## How Recordings Are Stored++Recordings are stored as encrypted chunks:++```+<key-prefix>/sessions/<session-id>/chunk-0.enc+<key-prefix>/sessions/<session-id>/chunk-1.enc+...+```++Infisical encrypts recordings before upload, so the data in your bucket is encrypted. You can add bucket-level encryption (SSE-S3 or SSE-KMS) for additional protection.++## Managing Retention++Since recordings are in your bucket, you control retention. Configure S3 lifecycle rules to automatically delete or transition objects after a certain period.++<Tip>+This gives you full control over how long recordings are kept — essential for compliance requirements.+</Tip>++## Next Steps++<CardGroup cols={2}>+ <Card title="Session Recording" icon="video" href="/documentation/platform/pam/sessions/session-recording">+ Learn more about how recording works.+ </Card>+ <Card title="Auditing" icon="clipboard-list" href="/documentation/platform/pam/auditing">+ View the audit trail for all PAM activity.+ </Card>+</CardGroup>diff --git a/docs/documentation/platform/pam/sessions/overview.mdx b/docs/documentation/platform/pam/sessions/overview.mdxnew file mode 100644index 0000000000..7a054fabd5--- /dev/null+++ b/docs/documentation/platform/pam/sessions/overview.mdx@@ -0,0 +1,87 @@+---+title: "Sessions"+sidebarTitle: "Overview"+description: "View and manage active and past sessions."+---++Every time someone connects to an account through PAM, a session is created. The **Sessions** page shows all sessions — active and completed — so you can monitor who's connected and review what happened.++## Viewing Sessions++Go to **Privileged Access Management → Sessions** to see the session list.++| Column | What it shows |+|--------|---------------|+| **Account** | Which account was accessed |+| **Folder** | Which folder it belongs to |+| **User** | Who connected |+| **Status** | Active, Completed, or Terminated |+| **Started** | When the session began |+| **Duration** | How long it lasted (or has been active) |++Click on any session to see its details and recording.++### Filtering++Use the filters to find specific sessions:+- **Status** — Active, Completed, Terminated+- **Account** or **Folder** — Narrow to specific resources+- **User** — Sessions by a specific person+- **Date range** — Sessions within a time period++The search bar finds sessions by account name, folder name, or user email.++## Active Sessions++Active sessions show a **Live** indicator. While a session is active:+- Logs update in near real-time (every 10 seconds)+- You can monitor what's happening+- You can terminate the session if needed++## Session Details++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.++## Terminating Sessions++If someone shouldn't be connected — security incident, policy violation, or they're stuck — you can terminate their session.++1. Find the active session+2. Click on it to open details+3. Click **Terminate**+4. Confirm++<Warning>+The user is immediately disconnected. Use this for emergencies; normal sessions should end naturally.+</Warning>++## Who Can See What++| Role | What they can see |+|------|-------------------|+| **Product Admin** | All sessions across PAM |+| **Admin** (on a folder) | All sessions for accounts in that folder |+| **Connector** (on a folder) | Their own sessions for accounts in that folder |+| **Auditor** (on a folder) | All sessions for accounts in that folder (read-only) |++## Next Steps++To understand how session recordings work and where they're stored:++<CardGroup cols={2}>+ <Card title="Session Recording" icon="video" href="/documentation/platform/pam/sessions/session-recording">+ How sessions are recorded.+ </Card>+ <Card title="External Storage" icon="cloud" href="/documentation/platform/pam/sessions/external-storage">+ Store recordings in your own S3 bucket.+ </Card>+</CardGroup>diff --git a/docs/documentation/platform/pam/sessions/session-recording.mdx b/docs/documentation/platform/pam/sessions/session-recording.mdxnew file mode 100644index 0000000000..a3eb527e2d--- /dev/null+++ b/docs/documentation/platform/pam/sessions/session-recording.mdx@@ -0,0 +1,88 @@+---+title: "Session Recording"+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.++## What Gets Recorded++The content depends on the account type:++**PostgreSQL sessions:**+- All SQL queries executed+- Query results and responses+- Timestamps for each action++**SSH sessions:**+- All commands entered+- Command output+- Timestamps for each action++Both Web Access and CLI sessions are recorded the same way.++## How Recording Works++Recording happens at the Gateway level:++1. Traffic flows through the Gateway+2. 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++This 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++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++| Backend | Description |+|---------|-------------|+| **Internal** | Stored in Infisical's managed database |+| **External S3** | Stored in your own S3 bucket |++For most cases, internal storage works fine. Use [External Storage](/documentation/platform/pam/sessions/external-storage) if you need control over data residency or retention.++## Viewing Recordings++1. Go to **Sessions** and click on a session+2. The session detail page shows the full log of activity+3. 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.++## 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}>+ <Card title="External Storage" icon="cloud" href="/documentation/platform/pam/sessions/external-storage">+ Store recordings in your own S3 bucket.+ </Card>+ <Card title="Auditing" icon="clipboard-list" href="/documentation/platform/pam/auditing">+ View the complete audit trail.+ </Card>+</CardGroup>diff --git a/docs/documentation/platform/pam/templates/overview.mdx b/docs/documentation/platform/pam/templates/overview.mdxnew file mode 100644index 0000000000..2dd56e2cbd--- /dev/null+++ b/docs/documentation/platform/pam/templates/overview.mdx@@ -0,0 +1,84 @@+---+title: "Account Templates"+sidebarTitle: "Account Templates"+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.++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++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 |++These defaults work for many cases. If they fit your needs, you can skip straight to [adding accounts](/documentation/platform/pam/accounts/overview).++## Creating a Custom Template++If you need different rules — say, 4-hour sessions with MFA for production — create a custom template.++<Steps>+ <Step title="Navigate to Account Templates">+ Go to **Privileged Access Management → Account Templates** and click **Create Template**.+ </Step>+ <Step title="Set the basics">+ | Field | Description |+ |-------|-------------|+ | **Name** | A descriptive name (e.g., `prod-postgres`) |+ | **Type** | PostgreSQL or SSH |+ | **Description** | Optional context about when to use this template |+ </Step>+ <Step title="Configure access policy">+ These rules control the user experience when connecting:++ | Setting | What it does |+ |---------|--------------|+ | **Max Session Duration** | How long can someone stay connected |+ | **Require Reason** | Must they explain why they need access |+ | **Require MFA** | Must they verify their identity first |+ </Step>+ <Step title="Configure system settings">+ These settings control how the system behaves:++ | 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>+ <Step title="Save">+ Click **Create**. The template is now available when adding accounts.+ </Step>+</Steps>++## How Templates Work with Accounts++Every account references a template. When you create an account, you select which template it should use. The account then inherits all the rules from that template.++This means you can:+- Apply the same rules to many accounts by having them use the same template+- 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 Steps++With templates set up, you're ready to add accounts to your folders.++<CardGroup cols={2}>+ <Card title="PostgreSQL Accounts" icon="database" href="/documentation/platform/pam/accounts/postgresql">+ Add PostgreSQL database accounts.+ </Card>+ <Card title="SSH Accounts" icon="terminal" href="/documentation/platform/pam/accounts/ssh">+ Add SSH server accounts.+ </Card>+</CardGroup>