diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index f933cc883..b981cbedd 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -157,6 +157,14 @@ jobs:
- name: Install dependencies
run: pnpm install
+ - name: Install PostgreSQL plugin for web e2e
+ run: |
+ mkdir -p e2e/web/fixtures/plugins/postgresql
+ curl -sL "https://github.com/TabularisDB/tabularis-postgresql-plugin/releases/download/v1.0.0-rc.16/default.tabularium" -o e2e/web/fixtures/plugins/postgresql/.tabularium
+ curl -sL "https://github.com/TabularisDB/tabularis-postgresql-plugin/releases/download/v1.0.0-rc.16/postgresql-plugin-linux-x64.zip" -o /tmp/pg-plugin.zip
+ unzip -o /tmp/pg-plugin.zip -d e2e/web/fixtures/plugins/postgresql/
+ chmod +x e2e/web/fixtures/plugins/postgresql/postgresql-plugin
+
- name: Install browser engines
run: pnpm exec playwright install --with-deps chromium firefox webkit
diff --git a/.github/workflows/pg-integration.yml b/.github/workflows/pg-integration.yml
deleted file mode 100644
index 6bf1a8f0e..000000000
--- a/.github/workflows/pg-integration.yml
+++ /dev/null
@@ -1,97 +0,0 @@
-name: Integration Tests (PostgreSQL)
-
-concurrency:
- group: pg-integration-${{ github.ref }}
- cancel-in-progress: true
-
-on:
- push:
- branches: [main]
- paths:
- - 'src-tauri/**'
- - '.github/workflows/pg-integration.yml'
- - 'tests/fixtures/**'
- pull_request:
- branches: [main]
- paths:
- - 'src-tauri/**'
- - '.github/workflows/pg-integration.yml'
- - 'tests/fixtures/**'
- workflow_dispatch:
- inputs:
- regenerate_golden:
- description: 'Regenerate golden files and upload as an artifact for review (does not commit)'
- type: boolean
- default: false
-
-jobs:
- test-postgres:
- runs-on: blacksmith-4vcpu-ubuntu-2404
-
- services:
- postgres:
- image: postgres:16
- ports:
- - 54320:5432
- env:
- POSTGRES_USER: postgres
- POSTGRES_PASSWORD: password
- POSTGRES_DB: testdb
- options: >-
- --volume /tmp/tabularis-pg-socket:/var/run/postgresql
- --health-cmd pg_isready
- --health-interval 10s
- --health-timeout 5s
- --health-retries 5
-
- steps:
- - name: Checkout
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
-
- - name: Seed PostgreSQL databases
- run: |
- sudo apt-get update
- sudo apt-get install -y --no-install-recommends postgresql-client
- bash tests/fixtures/seed_postgres.sh
-
- - name: Install Rust toolchain
- uses: dtolnay/rust-toolchain@stable
-
- - name: Cache cargo registry and build
- uses: actions/cache@v6
- with:
- path: |
- ~/.cargo/registry
- ~/.cargo/git
- src-tauri/target
- key: ${{ runner.os }}-cargo-pg-${{ hashFiles('src-tauri/Cargo.lock') }}
- restore-keys: |
- ${{ runner.os }}-cargo-pg-
-
- - name: Install system dependencies
- run: |
- sudo apt-get update
- sudo apt-get install -y libwebkit2gtk-4.1-dev libsoup-3.0-dev build-essential libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev
-
- - name: Prepare Tauri frontend resource directory
- run: mkdir -p packages/web-ui/dist
-
- - name: Run PostgreSQL integration tests
- working-directory: src-tauri
- env:
- RUST_TEST_THREADS: "1"
- REGENERATE_GOLDEN: ${{ (github.event_name == 'workflow_dispatch' && inputs.regenerate_golden) && '1' || '' }}
- run: cargo test --test postgres_integration -- --include-ignored
-
- - name: Verify PostgreSQL socket and TCP TLS settings
- working-directory: src-tauri
- env:
- PG_UNIX_SOCKET: /tmp/tabularis-pg-socket/.s.PGSQL.5432
- run: cargo test --test socket_integration postgres_socket_tls_and_tcp_regression -- --ignored --exact
-
- - name: Upload golden files
- if: github.event_name == 'workflow_dispatch' && inputs.regenerate_golden
- uses: actions/upload-artifact@v7
- with:
- name: golden-files
- path: src-tauri/tests/postgres_integration/golden/
diff --git a/.github/workflows/postgres-integration.yml b/.github/workflows/postgres-integration.yml
new file mode 100644
index 000000000..20d99a6fc
--- /dev/null
+++ b/.github/workflows/postgres-integration.yml
@@ -0,0 +1,97 @@
+name: Integration Tests (PostgreSQL plugin)
+
+concurrency:
+ group: postgres-integration-${{ github.ref }}
+ cancel-in-progress: true
+
+on:
+ push:
+ branches: [main]
+ paths:
+ - 'src-tauri/**'
+ - '.github/workflows/postgres-integration.yml'
+ pull_request:
+ branches: [main]
+ paths:
+ - 'src-tauri/**'
+ - '.github/workflows/postgres-integration.yml'
+ workflow_dispatch:
+
+env:
+ # The release the host's plugin contract is tested against: Unix sockets and
+ # the table-copy RPCs. Must be at least MINIMUM_PLUGIN_VERSIONS in
+ # src-tauri/src/plugins/force_install.rs; keep the web-e2e fixture in ci.yml
+ # on the same release.
+ PG_PLUGIN_VERSION: v1.0.0-rc.16
+
+jobs:
+ test-postgres-plugin:
+ runs-on: blacksmith-4vcpu-ubuntu-2404
+
+ services:
+ postgres:
+ image: postgres:16
+ ports:
+ - 54320:54320
+ env:
+ POSTGRES_PASSWORD: password
+ POSTGRES_DB: testdb
+ # One port for TCP and for the socket file name (.s.PGSQL.54320).
+ PGPORT: "54320"
+ options: >-
+ --volume /tmp/tabularis-pg-socket:/var/run/postgresql
+ --health-cmd "pg_isready -U postgres -d testdb"
+ --health-interval 5s
+ --health-timeout 5s
+ --health-retries 20
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+
+ - name: Install Rust toolchain
+ uses: dtolnay/rust-toolchain@stable
+
+ - name: Cache cargo registry and build
+ uses: actions/cache@v6
+ with:
+ path: |
+ ~/.cargo/registry
+ ~/.cargo/git
+ src-tauri/target
+ key: ${{ runner.os }}-cargo-postgres-${{ hashFiles('src-tauri/Cargo.lock') }}
+ restore-keys: |
+ ${{ runner.os }}-cargo-postgres-
+
+ - name: Install system dependencies
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y libwebkit2gtk-4.1-dev libsoup-3.0-dev build-essential libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev postgresql-client
+
+ - name: Prepare Tauri frontend resource directory
+ run: mkdir -p packages/web-ui/dist
+
+ - name: Install the PostgreSQL plugin
+ run: |
+ plugin_dir="$RUNNER_TEMP/xdg/tabularis/plugins/drivers/postgresql"
+ mkdir -p "$plugin_dir"
+ base="https://github.com/TabularisDB/tabularis-postgresql-plugin/releases/download/${PG_PLUGIN_VERSION}"
+ curl -fsSL "$base/default.tabularium" -o "$plugin_dir/.tabularium"
+ curl -fsSL "$base/postgresql-plugin-linux-x64.zip" -o "$RUNNER_TEMP/pg-plugin.zip"
+ unzip -o "$RUNNER_TEMP/pg-plugin.zip" -d "$plugin_dir"
+ chmod +x "$plugin_dir/postgresql-plugin"
+ echo "XDG_DATA_HOME=$RUNNER_TEMP/xdg" >> "$GITHUB_ENV"
+ echo "TABULARIS_TEST_PG_PLUGIN_DIR=$plugin_dir" >> "$GITHUB_ENV"
+
+ - name: Verify PostgreSQL socket and TCP connections through the plugin
+ working-directory: src-tauri
+ env:
+ PG_UNIX_SOCKET: /tmp/tabularis-pg-socket
+ run: cargo test --test socket_integration postgresql_plugin_honors_unix_socket_path -- --ignored --exact
+
+ - name: Copy tables through the plugin
+ working-directory: src-tauri
+ env:
+ RUST_TEST_THREADS: "1"
+ TABULARIS_TEST_PSQL: psql postgresql://postgres:password@127.0.0.1:54320/testdb
+ run: cargo test --test postgres_plugin_table_copy -- --include-ignored
diff --git a/docs/web/WEB_MANUAL_PARITY_AUDIT.md b/docs/web/WEB_MANUAL_PARITY_AUDIT.md
index c24910ebd..b83bec561 100644
--- a/docs/web/WEB_MANUAL_PARITY_AUDIT.md
+++ b/docs/web/WEB_MANUAL_PARITY_AUDIT.md
@@ -27,7 +27,7 @@ The sign-off applies to the implementation and documented limitations at this ba
| Results/data grid | Shared grid editing, insertion, deletion, referenced records, and BLOB display/save continue through Tauri and native file selection. | The same record service is used over RPC; BLOB uploads, previews, and single-use downloads avoid exposing host paths. | Browser sandbox file semantics require opaque transfer tokens while database mutations remain identical. | Browser BLOB and result transfers retain explicit size limits and downloads depend on browser download handling. | `packages/web-ui/tests/components/ui/DataGrid.test.tsx`
`packages/web-ui/tests/api/contract/transportContract.ts`
`src-tauri/src/application/records_tests.rs` | Approved by Web UI parity reviewer on 2026-08-22 |
| Multiple result windows | Desktop keeps native secondary windows and Tauri route/event adapters for detached results and JSON views. | Browser mode opens an opaque session route in a tab and synchronizes through the shared route-session host. | A browser tab is the platform-equivalent independent surface and avoids reproducing native window management. | An in-memory detached session shows an explicit expired state after its owner is gone; popup blockers can require user action. | `packages/web-ui/tests/pages/SecondaryWindowPages.test.tsx`
`packages/web-ui/tests/platform/secondaryWindowSessions.test.ts`
`packages/web-ui/tests/platform/tauriCapabilities.test.ts` | Approved by Web UI parity reviewer on 2026-08-22 |
| ER/schema diagram | Desktop opens schema and ER diagrams in native secondary windows and saves through the native dialog. | Browser mode opens the same diagram component at an opaque route and downloads through a token or browser save. | Routes and downloads replace native window and filesystem primitives without changing diagram generation. | Browser tab and download behavior is subject to popup and download policies; no native always-on-top behavior is reproduced. | `packages/web-ui/tests/platform/secondaryWindowSessions.test.ts`
`packages/web-ui/tests/utils/schemaDiagram.test.ts`
`src-tauri/src/application/generic_exports_tests.rs` | Approved by Web UI parity reviewer on 2026-08-22 |
-| Views/routines/triggers | Existing create, inspect, edit, refresh, and drop flows remain in the shared UI over Tauri commands. | Database-authorized RPC routes the same object commands to shared services. | Object DDL and metadata semantics are transport-independent. | Availability and exact DDL support remain driver-capability and database-version dependent, matching desktop behavior. | `packages/web-ui/tests/api/contract/transportContract.ts`
`src-tauri/src/transport/web/rpc_tests.rs`
`src-tauri/tests/postgres_integration/parity_tests.rs` | Approved by Web UI parity reviewer on 2026-08-22 |
+| Views/routines/triggers | Existing create, inspect, edit, refresh, and drop flows remain in the shared UI over Tauri commands. | Database-authorized RPC routes the same object commands to shared services. | Object DDL and metadata semantics are transport-independent. | Availability and exact DDL support remain driver-capability and database-version dependent, matching desktop behavior. | `packages/web-ui/tests/api/contract/transportContract.ts`
`src-tauri/src/transport/web/rpc_tests.rs` | Approved by Web UI parity reviewer on 2026-08-22 |
| User management | Desktop user, grant, privilege, lock, password, create, and drop operations remain available for supporting drivers. | Sensitive database-authorized RPC exposes the same operations and shared validation. | There is no browser-specific workflow change, but authorization remains explicit because these operations are sensitive. | Feature availability follows driver support; current rich user-management behavior is primarily MySQL-oriented. | `packages/web-ui/tests/api/contract/transportContract.ts`
`src-tauri/src/transport/web/rpc_tests.rs`
`src-tauri/src/drivers/mysql/tests.rs` | Approved by Web UI parity reviewer on 2026-08-22 |
| Notebooks | Desktop notebook CRUD, execution, outline, charts, history, parameters, and import/export remain in the shared React implementation. | The same notebook format and services run over RPC; browser imports and exports use opaque transfers and downloads. | Browser file exchange is adapted while notebook content and execution stay identical. | Download location is browser-controlled and server-side notebook storage remains scoped to the Tabularis data directory. | `packages/web-ui/tests/api/contract/transportContract.ts`
`packages/web-ui/tests/utils/notebookTransfer.test.ts`
`src-tauri/src/application/notebooks/tests.rs` | Approved by Web UI parity reviewer on 2026-08-22 |
| Dump/import | Desktop jobs keep native file targets, cancellation, and progress through existing commands and events. | Browser uploads source SQL or archives, runs the same server-side jobs, receives scoped progress, and downloads generated dumps. | Opaque streaming transfers replace trusted native paths and preserve long-running job semantics. | Tool availability and database-specific dump fidelity depend on installed drivers or external utilities; transfer limits remain enforced. | `packages/web-ui/tests/api/contract/transportContract.ts`
`src-tauri/src/application/database_transfers_tests.rs`
`packages/web-ui/tests/utils/dumpUtils.test.ts` | Approved by Web UI parity reviewer on 2026-08-22 |
diff --git a/docs/web/WEB_MODE_CONTAINERS.md b/docs/web/WEB_MODE_CONTAINERS.md
index 29a0e4877..c8620e67a 100644
--- a/docs/web/WEB_MODE_CONTAINERS.md
+++ b/docs/web/WEB_MODE_CONTAINERS.md
@@ -62,9 +62,16 @@ The entrypoint translates these into `tabularis web` flags. Arguments after the
| `TABULARIS_PORT` | `8080` | Port inside the container. |
| `TABULARIS_HOST` | `0.0.0.0` | Bind address inside the container. |
| `TABULARIS_DEBUG` | `false` | Debug logging. |
+| `TABULARIS_DISABLE_PLUGIN_AUTO_INSTALL` | `false` | Stops the server downloading the PostgreSQL plugin on start. See [PostgreSQL connections](#postgresql-connections). |
`TABULARIS_WEB_PASSWORD`, `TABULARIS_WEB_PROXY_SECRET` and `TABULARIS_SECRET_KEY` also accept a `_FILE` variant pointing at a Docker or Kubernetes secret file.
+## PostgreSQL connections
+
+PostgreSQL is provided by the standalone `postgresql` plugin, not by the server itself. When the server starts and a saved connection uses PostgreSQL (the old built-in `postgres` id, which is rewritten to `postgresql`, or `postgresql`), it installs and activates the plugin from the plugin registry in the background if it is missing. A failed download is logged and tried again on the next start, and the server starts either way.
+
+For an air-gapped or locked-down host, set `TABULARIS_DISABLE_PLUGIN_AUTO_INSTALL=true` so the server never downloads anything on its own, and install the plugin yourself: place it under the plugins directory in `/data`, or install it from **Settings → Plugins** while the host can reach the registry. Until it is installed, PostgreSQL connections report `Unsupported driver: postgresql` with a note naming the plugin. The `--mcp` process behaves the same way, using the same environment variable.
+
## Stored credentials
Containers have no OS keychain. The image sets `TABULARIS_SECRET_STORE=file`, which keeps every secret the desktop app would put in the keychain (database and SSH passwords, connection URIs, plugin secrets, AI keys) in `/data/secrets.enc.json`, encrypted with AES-256-GCM under a key derived from `TABULARIS_SECRET_KEY` with Argon2id.
diff --git a/e2e/helpers/navigation.ts b/e2e/helpers/navigation.ts
index 52b739ba6..d978e0f1e 100644
--- a/e2e/helpers/navigation.ts
+++ b/e2e/helpers/navigation.ts
@@ -212,30 +212,14 @@ export async function openMultiDbConnection(
// 1. Open the catalogue.
await clickAddConnection();
- // 2. Pick the PostgreSQL card. Locally there are two (builtin "Deprecated" at
- // [0] and plugin "Relational" at [1]); in CI the plugin may not be installed
- // (only the builtin at [0]). Pick the non-deprecated one, or the only one.
+ // 2. Pick the PostgreSQL card. With the built-in driver removed, only the
+ // plugin card remains.
await browser.waitUntil(
async () => (await $$('button[aria-label="Connect to PostgreSQL"]')).length > 0,
{timeout: 20000, timeoutMsg: 'PostgreSQL catalogue card never rendered'},
);
const pgCards = await $$('button[aria-label="Connect to PostgreSQL"]');
- // Pick the PLUGIN PostgreSQL card (not the builtin "Deprecated" one). The
- // plugin supports list_databases for the multi-db nested feature. Both cards
- // exist in CI (builtin "postgres" + plugin "postgresql"). Use WDIO's
- // element.click() which reliably triggers React's onClick.
- let targetIndex = 0;
- if (pgCards.length > 1) {
- // The plugin card is the one NOT containing "Deprecated" text.
- const isDeprecated = await browser.execute(() =>
- Array.from(document.querySelectorAll('button[aria-label="Connect to PostgreSQL"]')).map(
- (c) => c.textContent?.includes('Deprecated') ?? false,
- ),
- );
- const idx = isDeprecated.findIndex((d: boolean) => !d);
- targetIndex = idx >= 0 ? idx : 0;
- }
- await pgCards[targetIndex].click();
+ await pgCards[0].click();
await browser.pause(2000); // wait for the form to render
// 3. Fill the form via native input event dispatch (React controlled inputs).
diff --git a/e2e/web/tests/web-ui-matrix.spec.ts b/e2e/web/tests/web-ui-matrix.spec.ts
index cf6b4df2c..eb2be184a 100644
--- a/e2e/web/tests/web-ui-matrix.spec.ts
+++ b/e2e/web/tests/web-ui-matrix.spec.ts
@@ -62,7 +62,7 @@ const databaseFixtures: DatabaseFixture[] = [
{
name: 'postgres',
params: {
- driver: 'postgres',
+ driver: 'postgresql',
host: process.env.TABULARIS_E2E_POSTGRES_HOST ?? '127.0.0.1',
port: Number.parseInt(process.env.TABULARIS_E2E_POSTGRES_PORT ?? '45432', 10),
username: process.env.TABULARIS_E2E_POSTGRES_USER ?? 'postgres',
diff --git a/packages/web-ui/src/components/banners/PostgresPluginMigrationBanner.tsx b/packages/web-ui/src/components/banners/PostgresPluginMigrationBanner.tsx
deleted file mode 100644
index c67d586a8..000000000
--- a/packages/web-ui/src/components/banners/PostgresPluginMigrationBanner.tsx
+++ /dev/null
@@ -1,73 +0,0 @@
-import {AlertTriangle, X} from 'lucide-react';
-import {useTranslation} from 'react-i18next';
-import type {MigrationBannerVariant} from '@/hooks/useBuiltinDriverMigration';
-
-interface PostgresPluginMigrationBannerProps {
- /** "nudge" → the "try the plugin" message; "offline" → the "couldn't be
- * downloaded" message. Driven by the connectivity gate in the hook. */
- variant: MigrationBannerVariant;
- /** Tentative removal date for the built-in driver (e.g. `"2026-10-05"`),
- * read from `PluginManifest.deprecated.removal_date` — the same manifest
- * field the deprecated-driver badge/tooltip use — so the two surfaces
- * can't drift out of sync the way a second hardcoded date in this
- * component's translation string would. `undefined` renders the
- * no-date variant of the nudge message. */
- removalDate: string | undefined;
- /** Called when the user dismisses the banner (persists the dismissal). */
- onDismiss: () => void;
- /** Called when the user clicks "Review connections" (nudge variant only). */
- onReview?: () => void;
-}
-
-/**
- * Inline (non-modal) dismissible banner nudging the user toward the
- * PostgreSQL plugin. Rendered inside the Connections page, not stacked in
- * App.tsx's launch-time modals — a non-blocking recommendation, not a
- * required confirmation.
- *
- * Two variants: the nudge (plugin ready, registry reachable) and the honest
- * offline message (plugin not downloaded / registry unreachable). The
- * offline variant never offers a "Switch to plugin" action it can't back up.
- */
-export const PostgresPluginMigrationBanner = ({
- variant,
- removalDate,
- onDismiss,
- onReview,
-}: PostgresPluginMigrationBannerProps) => {
- const {t} = useTranslation();
-
- return (
-
-
-
- {variant === 'nudge' ? (
-
- {removalDate
- ? t('migration.banner.nudgeWithDate', {date: removalDate})
- : t('migration.banner.nudge')}
-
- ) : (
-
- {t('migration.banner.offline')}
-
- )}
- {variant === 'nudge' && onReview && (
-
- )}
-
-
-
- );
-};
diff --git a/packages/web-ui/src/components/connections/ActionButtons.tsx b/packages/web-ui/src/components/connections/ActionButtons.tsx
index 59095d837..a89d81d83 100644
--- a/packages/web-ui/src/components/connections/ActionButtons.tsx
+++ b/packages/web-ui/src/components/connections/ActionButtons.tsx
@@ -1,8 +1,7 @@
import {useTranslation} from 'react-i18next';
-import {Power, Edit, Copy, Trash2, ArrowLeftRight} from 'lucide-react';
+import {Power, Edit, Copy, Trash2} from 'lucide-react';
import clsx from 'clsx';
import type {SavedConnection} from '@/contexts/DatabaseContext';
-import type {MigrationDirection} from '@/utils/connections';
import {useConnectionCapabilities} from '@/hooks/useConnectionCapabilities';
export interface ActionButtonsProps {
@@ -14,10 +13,6 @@ export interface ActionButtonsProps {
onEdit: () => void;
onDuplicate: () => void;
onDelete: () => void;
- /** "to-plugin" / "to-builtin" shows the migration button; `null` hides it —
- * only relevant during a built-in driver's deprecation window. */
- migrationDirection?: MigrationDirection;
- onMigrate?: () => void;
}
const BUTTON_CLASS =
@@ -38,29 +33,11 @@ export const ActionButtons = ({
onEdit,
onDuplicate,
onDelete,
- migrationDirection,
- onMigrate,
}: ActionButtonsProps) => {
const {t} = useTranslation();
const {canUpdate, canDuplicate, canDelete} = useConnectionCapabilities();
return (
<>
- {canUpdate && migrationDirection && onMigrate && (
-
- )}
{isOpen ? (