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): update web access docs to reflect sql query runner, remove em dashes
Bernie Gandin5a4fc6c75da0
diff --git a/docs/documentation/platform/pam/product-reference/web-access/overview.mdx b/docs/documentation/platform/pam/product-reference/web-access/overview.mdxindex 23c02697fb..9c76100580 100644--- a/docs/documentation/platform/pam/product-reference/web-access/overview.mdx+++ b/docs/documentation/platform/pam/product-reference/web-access/overview.mdx@@ -1,13 +1,13 @@---title: "Web Access"sidebarTitle: "Overview"-description: "Access PAM-managed resources directly from your browser with an interactive terminal."+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 a visual Data Explorer and SQL terminal), **Redis** servers, and **SSH** servers.+ Web Access currently supports **PostgreSQL** databases (with a visual Data Explorer and SQL query runner), **Redis** servers, and **SSH** servers.</Info>## How It Works@@ -46,7 +46,7 @@ Sessions that exceed the idle timeout or max duration are automatically terminat<CardGroup cols={2}><Card title="PostgreSQL" icon="database" href="/documentation/platform/pam/product-reference/web-access/postgresql">- Visual Data Explorer for browsing and editing tables, plus an interactive SQL terminal.+ Visual Data Explorer for browsing and editing tables, 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.diff --git a/docs/documentation/platform/pam/product-reference/web-access/postgresql.mdx b/docs/documentation/platform/pam/product-reference/web-access/postgresql.mdxindex c28a52e70d..2bbf88f2ea 100644--- a/docs/documentation/platform/pam/product-reference/web-access/postgresql.mdx+++ b/docs/documentation/platform/pam/product-reference/web-access/postgresql.mdx@@ -1,16 +1,16 @@---title: "PostgreSQL Web Access"sidebarTitle: "PostgreSQL"-description: "Browse, query, and edit PostgreSQL databases directly from your browser."+description: "Browse, query, and edit PostgreSQL databases directly from your browser using the Data Explorer."----PostgreSQL web access provides two modes for interacting with your database directly from the browser: the **Data Explorer** for visual browsing and editing, and the **SQL Terminal** for running ad-hoc queries.+PostgreSQL web access provides a unified **Data Explorer** 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.## Data Explorer-The Data Explorer is a visual interface for browsing and editing PostgreSQL tables. It provides schema and table navigation, filtering, sorting, inline editing, and full CRUD operations — all without writing SQL.+The Data Explorer is a visual interface for browsing and editing PostgreSQL tables. It provides schema and table navigation, filtering, sorting, inline editing, and full CRUD operations, all without writing SQL.### Connecting@@ -40,63 +40,25 @@ Once connected, you get a spreadsheet-like interface for your database where you-## SQL Terminal+## SQL Query Runner-The SQL terminal provides a `psql`-like experience in your browser. It is designed for ad-hoc usage — quick queries, debugging, and administrative tasks.+The SQL query runner is built into the Data Explorer and lets you run arbitrary SQL against your database without leaving the browser.-### 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="Open Console">- In the connect modal, click **Open Console** to launch the SQL terminal in a new tab.-- - </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-+Click the **+** button in the tab bar to open a new query tab. Each tab has its own SQL editor and results panel.-### 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.-Once connected, you'll see a `=>` prompt. Type SQL queries as you would in `psql`:+You can open multiple query tabs at once. Tabs are independent: each has its own SQL content and results.-```sql-=> SELECT * FROM users LIMIT 5;- id | name | email-----+------------+---------------------- 1 | Alice | [email protected]- 2 | Bob | [email protected]-(2 rows)-```+#### Multi-statement queries-#### Transactions+If you run multiple statements at once, the results of the last statement are shown, the same behaviour as `psql`.-Transactions are fully supported. You can use `BEGIN`, `COMMIT`, and `ROLLBACK` as you would in `psql`:+#### Mutation queries-```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-```+`INSERT`, `UPDATE`, and `DELETE` statements display the number of affected rows instead of a result table.## Limits@@ -109,10 +71,10 @@ In addition to the [common session limits](/documentation/platform/pam/product-r## FAQ<AccordionGroup>- <Accordion title="Is the SQL terminal an actual psql session?">- No. The SQL 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><Accordion title="Can I edit data in the Data Explorer 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="Is the SQL query runner an actual psql session?">+ No. The SQL query runner connects directly to PostgreSQL but is not a `psql` client. Backslash commands like `\dt` or `\d` are not supported.+ </Accordion></AccordionGroup>