Repository navigation
Releases
Releases · postgres-ai/database-lab-engine
v4.2.2
New Features
- UI: snapshot, clone and branch pages show a
Data lagrow in the Summary section, e.g.2 hours 3 minutes(!1227, #805)
Improvements and Fixes
- Creating a clone with
"restricted": trueno longer fails when a database name needs quoting, such asapp.24,APP_24_12or a name with spaces (!1233, #816) - Physical mode: when Postgres in the sync instance stops responding for 30 seconds, the engine saves diagnostics and restarts the sync container instead of snapshotting stale data indefinitely (!1218, #799)
- After a config reload, scheduled snapshots and logical refreshes update
dataStateAtin/statusagain instead of leaving it frozen until a restart (!1229, #813) - A config reload during a logical refresh on a multi-pool instance no longer leaves the refreshed pool marked
emptywith its snapshots hidden; pool state is guarded against concurrent reloads (!1230, #814) - A panic in a background goroutine no longer terminates the engine, and a clone caught mid-operation gets a final status instead of staying in a transient one (!1231)
- Logical restore with
skipPolicies: trueworks for explicitdatabases:entries, root-level directory dumps, custom-format files and a single-filedumpLocation(!1211, #797) - Logical restore discovers plain-text SQL dumps, and an explicit
databases: {postgres: {}}entry no longer adds--create(!1213, #798) - With
backupName: LATEST, WAL-G errors such as missing credentials or unreachable storage are reported instead of a generic failure, and an empty backup list says so (!1223, #802) - A failed clone upgrade keeps
pg_upgradeoutput inupgrade/logs/pg_upgrade_output.dand reports the postmaster error on undo (!1207, #793)
Security
/admin/*routes accept only the sharedverificationToken; personal tokens (platform.enablePersonalTokens) keep working on all other routes but no longer grant admin access (breaking change for clients that called admin routes with a personal token) (!1226, #806)- Binaries are built with the latest Go 1.27 patch release (up from 1.26.8), fixing CVE-2026-78667, CVE-2026-97031, CVE-2026-111943 and other standard library CVEs;
klauspost/compressis bumped to 1.18.7 and OpenTelemetry modules to 1.45.0 (!1212, !1224, #803) - The UI and Swagger UI images run on nginx 1.30.6 (up from 1.29), which fixes 17 nginx advisories from 2026 (!1228, #807)
dompurifyis bumped to 3.4.17, and the UI dev dependenciesvite,vitestandhappy-domare bumped to clearpnpm auditfindings (!1225)
Internal
- The e2e suite rebuilds source clusters per job, no longer hangs on failure and runs on a dedicated runner (!1214, !1217)
- The Trivy scan of feature-branch images no longer blocks feature pipelines; the master scan still does (!1212)
Full diff
v4.2.1
Improvements and Fixes
- Clone major upgrade no longer fails at the check stage on instances that mount TLS certificates or other files into clones: the upgrade container now gets the volumes from
databaseContainer.containerConfig(!1206, #792) - The "Upgrade clone" button stays visible when clone upgrade is unavailable (for example,
provision.pgUpgradeImageis not set); it is disabled and shows the engine's reason in a tooltip (!1205) - Creating a clone for a restricted user no longer fails with
cannot alter partition ... with an incomplete detachwhen the snapshot holds a partition with a pendingDETACH PARTITION ... CONCURRENTLY; the detach is finalized in the clone (!1208, #795) - Clone state (
sessions.json) is written atomically, and the engine refuses to start on an unreadable state file; a crash in the middle of a write could previously lead to every clone being destroyed on the next start (!1198, #783) - A panic in a background job or an HTTP handler no longer terminates the engine, and data races in WebSocket token cleanup and webhook reload are fixed (!1198, !1199, #783, #784)
- Config reload is synchronized across engine services, fixing data races between a reload and in-flight requests; two concurrent full refreshes can no longer both start, and a clone being provisioned keeps its database config across a reload (!1202, #788)
- A rotated
verificationTokentakes effect on config reload instead of requiring a restart (!1199, #29) - A Postgres start timeout is reported as an error instead of success, and
POST /observation/stopno longer hangs when the observation session ended with an error (!1199, #784) - The pool is activated and branching is initialized when there are no retrieval jobs or the snapshot already exists (!1199, #784)
--extra-configand--tagsvalues without=makedblabreturn an error instead of panicking (!1199, #784)- Not-found and bad-request API errors return 404/400 instead of 500; percent-encoded snapshot IDs are accepted;
POST /snapshotreturns the snapshot model with correct sizes; an emptydeleteAtis rejected with 400; the log of a branch namedsnapshotis reachable (!1197, #782) - The OpenAPI spec matches the engine's routes and models, including 7 previously undocumented operations (!1196)
- The Logs tab no longer leaks WebSocket connections and auto-scrolls again, and a render error shows a message instead of a blank page (!1203, #787)
Security
- An empty
provision.upgradeImageAllowListnow allows clone upgrades only to images from the repository of the clone image instead of any repository; set["*"]to restore the previous behavior (breaking change of the default) (!1200, #786) - Host, user, database and table names are shell-quoted in logical dump and restore commands (!1200, #786)
- Physical-mode
envsvalues (WAL-G and pgBackRest credentials) are masked in the config view and inGET /admin/config; the configuration editor keeps the stored values on save (!1200, #786) - The HTTP server has read and idle timeouts and a 1 MiB request body limit (413
PAYLOAD_TOO_LARGE), and the API client applies a request timeout (!1200, #786) - Binaries are built with Go 1.26.8 (up from 1.26.7), and
golang.org/x/cryptois bumped to v0.57.0 (!1201) momentis bumped to 2.31.0 (CVE-2026-17495) anddompurifyto 3.4.16, with raised floors forfast-uri,brace-expansion,browserslist,js-yamland other transitive UI dependencies (!1210)
Internal
- Release tags are gated on the e2e matrix (PG 10-18) and the integration suite; publish jobs run only after the tests pass (!1201)
- ESLint and unit tests run for every UI package, including
@postgres.ai/shared(!1203, #787)
Full diff
v4.2.0
New Features
- Simplified install: the UI Configuration tab opens in a new Simple mode — paste a source connection URL and password, and the engine detects the provider (RDS, Aurora, Heroku, Supabase and others), Postgres image and tag, databases,
shared_buffers,shared_preload_librariesand query-tuning parameters, then applies the proposed config; Expert mode keeps full control and adds WAL-G and pgBackRest physical-mode fields (!1148, #713) - CLI: new
dblab local-installcommand runs the same source detection and applies the proposed logical-mode config from the terminal (!1148, !1192, #774) - Clone major upgrade: upgrade an existing clone to a newer PostgreSQL major version in place with
pg_upgrade --link, viaPOST /clone/{id}/upgrade,dblab clone upgradeor the UI; the target version comes from the configuredprovision.pgUpgradeImageand is reported on/status, and resetting the clone rolls it back (!1180, !1188, #756, #768) - Deletion protection and auto-deletion for branches and snapshots: protect a branch or snapshot forever or for a set duration, and let the new
retentionconfig section delete unused ones after N minutes (safe-only: anything with clones, children or protection is never removed); newPATCH /branch/{name}andPATCH /snapshot/{id}endpoints and--protectedoptions indblab branchanddblab snapshot update(!1161, !1166, !1171, #727, #735, #742) - Configs: whole-value
${VAR}/$VARenvironment placeholders are expanded in engine, CI checker and CLI configs, including retrieval job options such as source passwords and S3, WAL-G and pgBackRest credentials, so secrets no longer have to be stored in plain text (!1140, !1178, #750) - Retrieval: new
customOptionsfor WAL-G and pgBackRest physical restore passes extra tool flags (for example--restore-specor--mask) without switching tocustomTool(!1182, #760) - Teleport (Standard and Enterprise Editions): opt-in
platform.bindClonesToUserlabels each clone with its owner (dblab_user), so Teleportdb_labelsrules can limit users to their own clones; covers clones created with a personal token and from the Platform console (!1163, !1173, #731) - Teleport: attach custom labels to sidecar
db/appresources with the repeatable--label key=valueflag orTELEPORT_LABELS; instance ownership moves to a dedicateddblab_instancelabel (!1162, #730)
Improvements and Fixes
- Faster clone creation: data ownership is normalized once when a snapshot is prepared, so clones skip the recursive
chown -Rthat dominated provisioning time on large databases (!1169, #737) - Retrieval:
containerConfig.volumeentries are now applied as bind mounts to retrieval containers (single value or list, bind options such as:ropreserved) (!1175, #746) - Engine: stop stacking a new dump-directory bind mount on every engine start, which could eventually fail with
no space left on deviceand keep the engine down; the engine now warns at startup about nested or stacked mounts and prints recovery steps (!1191, #775) - Engine: failure diagnostics fall back to container logs when no Postgres CSV log exists, and the physical-mode config examples document routing sync and promote container logs to the Docker logging driver (!1146, #711)
- CLI:
list/ls,create,delete/rmandswitchare nowdblab branchsubcommands; previouslydblab branch listsilently created a branch namedlist(!1193, #776) - UI: show branch data state time in UTC instead of shifting it by the browser's timezone offset (!1194, #777)
- UI: stop clone status polling after leaving the clone page (!1172, #743)
- UI: fix snapshot calendar and instance tab colors in the dark theme (!1187, #767)
- Teleport: map clone ID characters that Teleport rejects in resource names (such as
_) to hyphens, so these clones register instead of failing silently (!1189) - Standard Edition: fix an engine crash-loop when the Platform billing response has no recognized organization (!1170, #741)
Security
- Engine: build with Go 1.26.7 (up from 1.26.2), clearing Go standard library CVEs in all shipped binaries (!1147, !1160, !1183, #712, #761)
- Engine: migrate the Docker client from
github.com/docker/dockerto thegithub.com/moby/mobysplit modules, clearing CVE-2026-34040 and related advisories, and drop thedocker/clidependency (!1176, #748) - Engine: bump
golang.org/x/cryptoto v0.55.0 andgolang.org/x/modto v0.40.0, along with relatedgolang.org/xmodules (!1157, !1183, !1184, #706, #764) - Images: digest-pin the
rds-refreshAlpine base image, and track thedocker-cli29.x series so rebuilds pick up upstream security releases (!1152, !1183, #717) - Images: drop the
dblab-server*-zfs0.8variants, which were pinned to end-of-life Alpine 3.12 and ZFS 0.8 and carried unfixable CVEs; hosts still on ZFS 0.8 (stock Ubuntu 18.04/20.04) must upgrade to ZFS 2.x before updating (!1145, #710) - CE UI: update vulnerable dependencies —
vite6.4.3,vitest3.2.7,cypress15.x (dropsextract-zipandenquirer), and raised floors fordompurify,qs,form-data,postcss,js-yaml,wsand others (!1157, !1160, !1179, !1184, #754, #764)
Internal
v4.1.4
Security
- Engine: bump the Go toolchain to 1.26.7 and
golang.org/x/modto v0.40.0, and digest-pin therds-refreshAlpine base image (!1183) - Engine: bump
golang.org/x/cryptoto v0.55.0 (!1184) - Engine: track the
docker-cli29.x series instead of an exact-rNpin, so image rebuilds pick up upstream security releases (!1152, !1186) - CE UI: bump
cypressto 15.x, which drops theextract-zipandenquireradvisories that had no upstream fix (!1184) - CE UI: refresh the
pnpmoverrides fordompurify,qs,nanoidand@babel/core(!1184) - CE UI: add the
postcss,brace-expansion,form-data,tmp,fast-uri,immutable,js-yamlandwsoverrides (!1186) - CE UI: pin
viteto 6.4.3, fixing aserver.fs.denybypass and an NTLMv2 hash disclosure throughlaunch-editor(!1186)
Internal
- CI: install
google-cloud-cliinstead of the retiredgoogle-cloud-sdkpackage, which no longer resolves on Debian trixie (!1183)
Full diff
v4.1.3
v4.1.2
v4.1.1
New Features
- Auto-detect parallelism for
pg_dumpandpg_restorebased on RDS/Aurora instance type in the logical refresh component (!1133) - Expose
logicalRestoreconfigs in config projection and UI (!1130, #701) - CLI
--protectedflag accepts duration suffixes (m/h/d) for time-limited protection leases (!1132, #702)
Improvements and Fixes
- Retrieval: pull container image when Docker
inspectreturns a wrapped not-found error (!1129, #700) - UI: fix CreateClone form layout and deletion protection label (!1134, #703)
- Documented Prometheus metrics endpoint and aligned OpenAPI spec with API version 4.1.0 (!1131)
Security
- Bumped pgx, pinned Go to 1.26.2, updated Docker base image to
docker:29.4.1(!1139, #706) - Bumped backend and UI dependencies and base image to address further CVEs (!1138, #705)
Internal
- Added CVE audit skill and scheduled GitLab CI jobs for recurring dependency and image scans (!1137, #704)
Full diff
DBLab Engine v4.1.0
New Features
- Teleport integration (available in Standard and Enterprise Editions only): new
dblab teleport serveCLI command and hostssl cert in defaultpg_hba(!1105) - RDS/Aurora logical refresh component (!1070)
- Built-in
databaseRenameoption for snapshot jobs (!1096) - Protection lease concept for time-limited clone protection (!1088, #669)
- Prometheus exporter for DBLab metrics (!1087, #668)
- Sync WAL lag Prometheus metric for physical mode (!1093, #673)
- ARM64/Colima support and UI API proxying fixes (!1077)
- Redesigned Disks section in UI to group datasets under a shared pool header (!1103, #682)
- RDS IAM instance identifier added to config projection (!1106)
Improvements and Fixes
- Fixed UI config page crash on undefined
databasesandcustomOptionsinformatConfig(!1126, #697) - Fixed UI 404 on page refresh at
/instance(!1120, #693) - Fixed pool name in the snapshot API (!1117)
- Fixed
projection.Storeoverwriting existing YAML slices and maps (!1111, #687) - Added timeout to retrieval activity endpoint to prevent hanging (!1109, #686)
- Stabilized branch metadata verification and protected branch heads during cleanup (!1097)
- Fixed tab-delimited ZFS output parsing in branch functions (!1102)
- Fixed misleading disk space indicator for shared ZFS pools (!1095, #674)
- Use
--snapshot-idinstead of branch in CLI clone command snippet (!1094, #657) - Set default branch to
mainfor clone creation (!1075, #662) - Fixed test errors after PostgreSQL 9.6 removal (!1116, #683)
Security
- Removed unused crypto/stream polyfills - CVE-2025-14505 (!1124, #270)
- Resolved CVE-2026-1615 (jsonpath/bfj) and CVE-2024-11831 (serialize-javascript) (!1100, #680)
- Addressed 3 additional security vulnerabilities in UI npm dependencies (!1099, #680)
- Fixed CVE-2024-41110: updated Docker base image to 27.5.1 (!1098, #679)
- Dropped PostgreSQL 9.6 support (EOL since November 2021) (!1115, #683)
Internal
- Migrated UI to Vite and ESLint 9, fixed npm CVEs (!1122, #320, #315, #288, #287, #236, #235, #229)
- Bumped backend dependencies, added upgrades and CVE fixes implementation plan (!1121)
- Bumped Node from 22-alpine to 24-alpine and closed remaining Dependabot PRs (!1123)
- Batch patch-level Go and UI dependency bumps (!1128)
- Bumped all dependencies (Dependabot consolidation) (!1118, #691)
- Limited Dependabot to security-only updates (!1127)
- Ignored major version bumps in Dependabot config (!1125)
- Updated Dependabot configuration for weekly updates (!1072)
- Improved unit test coverage from 19% to 26% (!1113)
- DCF-5: added CI peer review gate (SOC2) (!1108)
- Enabled GitLab SAST scanning - DCF-712 (!1104)
- Fixed semgrep-sast job broken by global CI settings - DCF-712
- Added gitleaks pre-commit hook (!1112)
- CI: added interruptible jobs, auto-cancel, and reduced MR test matrix (!1091, #670, #671)
- Added missing artifacts to
build-binary-client-master(!1092, #670) - Added pre-push testing requirement to CLAUDE.md (!1101)
Full diff
DBLab Engine v4.0.4
Security
- Updated pgtype to v1.14.4 to address CVE-2024-27304 (!1086)
Bug Fixes
- Fixed config page losing
shared_preload_librariesvalue on reload when using SE images (!1085) - Fixed logical snapshot cleanup on full-refresh (!1068)
- Fixed duplicate "ago" suffix in snapshots list timestamps (!1089)
- Fixed PostgreSQL icon rendering artifact caused by improper SVG path closure (!1082)
- Fixed dataset names not showing in branch dropdown (!1080)
- Removed hardcoded placeholder IP address (34.56.78.90) from default configuration (!1046)
Full diff
DBLab Engine v4.0.3
Improvements and Fixes
- Fixed snapshot creation using the CLI 'snapshot create' command (!1061)
- Fixed duplicate mount entries in /proc/mounts (!1063)
- Added timeout to psql activity command and improved connection handling (!1062)
- Fixed branch list sorting to use dataStateAt field (!1064)
- Fixed duplicate branches appearing in the CLI list command (!1065)
Internal
- Updated dependencies to address critical CVE vulnerabilities (!1066)
- Updated Docker base image and Docker Go SDK to v27.1.1 (!1066)
- Fixed deprecation linter warnings (!1067)