Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
docs(pam): add docs for postgres web access (#5498)
Saif Ur Rahman05c11ba7aa3f
diff --git a/docs/docs.json b/docs/docs.jsonindex 088a185aad..ddf0623703 100644--- a/docs/docs.json+++ b/docs/docs.json@@ -836,7 +836,14 @@"documentation/platform/pam/product-reference/access-policies","documentation/platform/pam/product-reference/auditing","documentation/platform/pam/product-reference/session-recording",- "documentation/platform/pam/product-reference/credential-rotation"+ "documentation/platform/pam/product-reference/credential-rotation",+ {+ "group": "Web Access",+ "pages": [+ "documentation/platform/pam/product-reference/web-access/overview",+ "documentation/platform/pam/product-reference/web-access/postgresql"+ ]+ }]}]diff --git a/docs/documentation/platform/pam/product-reference/web-access/overview.mdx b/docs/documentation/platform/pam/product-reference/web-access/overview.mdxnew file mode 100644index 0000000000..8cbc7b83a0--- /dev/null+++ b/docs/documentation/platform/pam/product-reference/web-access/overview.mdx@@ -0,0 +1,51 @@+---+title: "Web Access"+sidebarTitle: "Overview"+description: "Access PAM-managed resources directly from your browser with an interactive terminal."+---++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.+</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** | 5 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">+ Interactive SQL terminal with psql-style output formatting.+ </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.mdxnew file mode 100644index 0000000000..51a4bc712d--- /dev/null+++ b/docs/documentation/platform/pam/product-reference/web-access/postgresql.mdx@@ -0,0 +1,77 @@+---+title: "PostgreSQL Web Access"+sidebarTitle: "PostgreSQL"+description: "Run SQL queries against PostgreSQL databases directly from your browser."+---++The PostgreSQL web access terminal provides a `psql`-like experience in your browser. It is designed for light, ad-hoc usage — quick queries, debugging, and administrative tasks — not as a replacement for a full database client or long-running workloads.++## 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 open the web access terminal.++ + </Step>++ <Step title="End Session">+ Click the **Disconnect** button from the web access terminal status bar or type `\q`, `quit`, or `exit`. You can reconnect from the same page.+ </Step>+</Steps>++++## Usage++Once connected, you'll see a `=>` prompt. Type SQL queries as you would in `psql`:++```sql+=> SELECT * FROM users LIMIT 5;+ id | name | email+----+------------+---------------------+ 1 | Alice | [email protected]+ 2 | Bob | [email protected]+(2 rows)+```++### Transactions++Transactions are fully supported. You can use `BEGIN`, `COMMIT`, and `ROLLBACK` as you would in `psql`:++```sql+=> BEGIN;+BEGIN+=> UPDATE accounts SET balance = balance - 100 WHERE id = 1;+UPDATE 1+=> UPDATE accounts SET balance = balance + 100 WHERE id = 2;+UPDATE 1+=> COMMIT;+COMMIT+```++## 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 |++## FAQ++<AccordionGroup>+ <Accordion title="Is this an actual psql session?">+ No. The web access terminal is not a `psql` client. It is a custom SQL REPL that connects directly to PostgreSQL and provides a `psql`-like experience, including familiar prompts and tabular output formatting. Backslash commands like `\dt` or `\d` are not supported.+ </Accordion>+</AccordionGroup>diff --git a/docs/images/pam/product-reference/web-access/pg-account-connect-button.png b/docs/images/pam/product-reference/web-access/pg-account-connect-button.pngnew file mode 100644index 0000000000..b8afeea008Binary files /dev/null and b/docs/images/pam/product-reference/web-access/pg-account-connect-button.png differdiff --git a/docs/images/pam/product-reference/web-access/pg-account-page-access-button.png b/docs/images/pam/product-reference/web-access/pg-account-page-access-button.pngnew file mode 100644index 0000000000..925e245a93Binary files /dev/null and b/docs/images/pam/product-reference/web-access/pg-account-page-access-button.png differdiff --git a/docs/images/pam/product-reference/web-access/pg-connect-in-browser.png b/docs/images/pam/product-reference/web-access/pg-connect-in-browser.pngnew file mode 100644index 0000000000..79a8153852Binary files /dev/null and b/docs/images/pam/product-reference/web-access/pg-connect-in-browser.png differdiff --git a/docs/images/pam/product-reference/web-access/pg-web-access-terminal.png b/docs/images/pam/product-reference/web-access/pg-web-access-terminal.pngnew file mode 100644index 0000000000..bb2e3fba79Binary files /dev/null and b/docs/images/pam/product-reference/web-access/pg-web-access-terminal.png differ