Skip to content

Commit 9a72002

Browse files
calvinbrewerclaude
authored andcommitted
chore: bump EQL pins eql-2.2.1 → eql-2.3.1
PR #476 (merged before this branch's rebase) pinned every EQL install script and the postgres-eql CI container at eql-2.2.1. This branch upgrades the code to emit the EQL v2.3 payload format, so every pin must move in lockstep — otherwise CI runs the new bytes against the old EQL extension and JSON inserts hit `_encrypted_check_c`. Flipped: - `.github/workflows/tests.yml` — container image `ghcr.io/cipherstash/postgres-eql:17-2.2.1` → `17-2.3.1`. - `local/docker-compose.yml` — same tag; the bench workflow (`tests-bench.yml`) consumes this compose file via `docker compose up --wait`. - `packages/cli/src/installer/index.ts` and `packages/drizzle/src/bin/generate-eql-migration.ts` — `EQL_VERSION` constant. - The three docs the `EQL_VERSION` pin appears in (`packages/protect/README.md`, `packages/drizzle/README.md`, `packages/drizzle/GENERATE_EQL_MIGRATION_CLI.md`). The vendored SQL in `packages/cli/src/sql/*.sql` and the prisma-next install bundle were already eql-2.3.1 from earlier in this PR; the example app's `examples/prisma/migrations/cipherstash/install_eql_bundle/` copy was also synced. `@cipherstash/schema` no longer bundles any `.sql` (verified — no `*.sql` under `packages/schema/`). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent f75f551 commit 9a72002

7 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515

1616
# Postgres + EQL for the integration tests. Official EQL image —
1717
# PostgreSQL 17 with EQL pre-installed via /docker-entrypoint-initdb.d.
18-
# Pinned to eql-2.2.1 to match the EQL payload format the code emits
18+
# Pinned to eql-2.3.1 to match the EQL payload format the code emits
1919
# (protect-ffi 0.21.x); bump in lockstep with the protect-ffi upgrade.
2020
services:
2121
postgres:
22-
image: ghcr.io/cipherstash/postgres-eql:17-2.2.1
22+
image: ghcr.io/cipherstash/postgres-eql:17-2.3.1
2323
env:
2424
POSTGRES_USER: cipherstash
2525
POSTGRES_PASSWORD: password

local/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ services:
22
postgres: &postgres
33
# PostgreSQL 17 with CipherStash EQL pre-installed (official image).
44
# Pinned by tag — bump in lockstep with the EQL version the code targets.
5-
image: ghcr.io/cipherstash/postgres-eql:17-2.2.1
5+
image: ghcr.io/cipherstash/postgres-eql:17-2.3.1
66
environment:
77
PGPORT: 5432
88
POSTGRES_DB: "cipherstash"

packages/cli/src/installer/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import pg from 'pg'
44

55
// EQL release, pinned to match the EQL payload format this package emits.
66
// Bump in lockstep with @cipherstash/protect-ffi.
7-
const EQL_VERSION = 'eql-2.2.1'
7+
const EQL_VERSION = 'eql-2.3.1'
88
const EQL_INSTALL_URL =
99
`https://github.com/cipherstash/encrypt-query-language/releases/download/${EQL_VERSION}/cipherstash-encrypt.sql`
1010
const EQL_INSTALL_NO_OPERATOR_FAMILY_URL =

packages/drizzle/GENERATE_EQL_MIGRATION_CLI.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Or use your custom migration workflow.
9898
### Before (manual):
9999
```bash
100100
npx drizzle-kit generate --custom --name=install-eql
101-
curl -sL https://github.com/cipherstash/encrypt-query-language/releases/download/eql-2.2.1/cipherstash-encrypt.sql > drizzle/0001_install-eql.sql
101+
curl -sL https://github.com/cipherstash/encrypt-query-language/releases/download/eql-2.3.1/cipherstash-encrypt.sql > drizzle/0001_install-eql.sql
102102
npx drizzle-kit migrate
103103
```
104104

packages/drizzle/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ If you prefer to install EQL manually:
6464

6565
```bash
6666
npx drizzle-kit generate --custom --name=install-eql
67-
curl -sL https://github.com/cipherstash/encrypt-query-language/releases/download/eql-2.2.1/cipherstash-encrypt.sql > drizzle/0001_install-eql.sql
67+
curl -sL https://github.com/cipherstash/encrypt-query-language/releases/download/eql-2.3.1/cipherstash-encrypt.sql > drizzle/0001_install-eql.sql
6868
npx drizzle-kit migrate
6969
```
7070

packages/drizzle/src/bin/generate-eql-migration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { detectRunner } from './runner.js'
66

77
// EQL release, pinned to match the EQL payload format this package emits.
88
// Bump in lockstep with @cipherstash/protect-ffi.
9-
const EQL_VERSION = 'eql-2.2.1'
9+
const EQL_VERSION = 'eql-2.3.1'
1010
const EQL_INSTALL_URL =
1111
`https://github.com/cipherstash/encrypt-query-language/releases/download/${EQL_VERSION}/cipherstash-encrypt.sql`
1212

packages/protect/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -817,14 +817,14 @@ To enable searchable encryption in PostgreSQL, [install the EQL custom types and
817817
1. Download the EQL install script. The version is pinned to match this release of Protect.js — install exactly this version:
818818

819819
```sh
820-
curl -sLo cipherstash-encrypt.sql https://github.com/cipherstash/encrypt-query-language/releases/download/eql-2.2.1/cipherstash-encrypt.sql
820+
curl -sLo cipherstash-encrypt.sql https://github.com/cipherstash/encrypt-query-language/releases/download/eql-2.3.1/cipherstash-encrypt.sql
821821
```
822822

823823
Using [Supabase](https://supabase.com/)? We ship an EQL release specifically for Supabase.
824824
Download the matching Supabase EQL install script:
825825

826826
```sh
827-
curl -sLo cipherstash-encrypt-supabase.sql https://github.com/cipherstash/encrypt-query-language/releases/download/eql-2.2.1/cipherstash-encrypt-supabase.sql
827+
curl -sLo cipherstash-encrypt-supabase.sql https://github.com/cipherstash/encrypt-query-language/releases/download/eql-2.3.1/cipherstash-encrypt-supabase.sql
828828
```
829829

830830
2. Run this command to install the custom types and functions:

0 commit comments

Comments
 (0)