PostgreSQL backup tool with Point-In-Time-Recovery and restore verification
1. MongoDB client bundle
The arm64 binaries cannot run on an amd64 host without emulation. Their version is read with go version -m and strings instead, and the product's startup check runs them on a real arm64 build.
- 1.1 Download
https://fastdl.mongodb.org/tools/db/mongodb-database-tools-ubuntu2204-x86_64-100.19.1.tgzandhttps://fastdl.mongodb.org/tools/db/mongodb-database-tools-ubuntu2204-arm64-100.19.1.tgzinto a new empty directory outside the repository. Verify thatsha256sumof each archive equals thesha256listed for it inhttps://downloads.mongodb.org/tools/db/release.json(8312f251c360ddfbcdd430c64758bee58b7050e1041e8c9df2906761098acd49for x86_64,e5d37e679ff815c45a86c17bc17de200c3a215a6eafc82516e5ba271f563373efor arm64) - 1.2 Copy
bin/mongodumpandbin/mongorestorefrom each archive overassets/tools/x64/mongodb/bin/andassets/tools/arm/mongodb/bin/without modifying them. Verify thatsha256sumof each copied file equals the file inside its archive - 1.3 Verify the x64 pair starts in the runtime image and reports
100.19.1:docker run --rm --platform linux/amd64 -v "$PWD/assets/tools:/tools:ro" debian:bookworm-slim bash -c 'apt-get update -qq && apt-get install -y -qq libgssapi-krb5-2 >/dev/null && /tools/x64/mongodb/bin/mongodump --version && /tools/x64/mongodb/bin/mongorestore --version' - 1.4 Verify the arm pair without running it:
go version -mshowsgolang.org/x/cryptov0.57.0,stringsfinds100.19.1,objdump -Tshows noGLIBC_2.xabove 2.34, andobjdump -plists noNEEDEDlibrary beyondlibc.so.6,ld-linux-aarch64.so.1andlibgssapi_krb5.so.2 - 1.5 Verify all four files are executable in the working tree and that git sees no mode change:
stat -c '%a %n' assets/tools/{x64,arm}/mongodb/bin/*shows755for every file, andgit diff --summary -- assets/tools/x64/mongodb assets/tools/arm/mongodbprints nomode changeline - 1.6 In
assets/tools/README.md, replace the 100.16.1 paragraph with a MongoDB source table that lists the tools release, the build familyubuntu2204, and the download URL and archivesha256for each architecture. Change the server range to 4.2 to 9.0, as the vendor states for 100.19.1. Verify by checking that the table's checksums match the ones verified in 1.1 - 1.7 Delete the CVE-2026-56854 entry and the now-empty
vulnerabilities:key from.trivyignore.yaml, keeping the file's final newline. Verify withtrivy rootfs --scanners vuln --severity CRITICAL --exit-code 1 assets/tools/x64/mongodband the same forassets/tools/arm/mongodb, iftrivyis installed; otherwise verify with thego version -moutput from 1.4 thatx/cryptois at or above v0.55.0
2. Backend version identity and restore guard
2.1 Add
MongodbVersion9tobackend/internal/util/tools/mongodb.go, deleteGetMongodbVersionEnum, and update the comment onGetMongodbExecutableto the 4.2 to 9.x range. Verify withgo build ./...inbackend/2.2 Rewrite
mapMongodbVersioninbackend/internal/features/databases/databases/mongodb/model.goto take the whole version string frombuildInfo, as design D3 describes, and makedetectMongodbVersionpass that string straight through. The function parses the leadingmajor.minoras integers, refuses anything below 4.2 or above one named upper-bound constant set to 9, and otherwise returns the major as the identity. Update the comment that names the tools release. RewriteTest_MapMongodbVersion_VersionMatrix_ReturnsExpectedto take a version string per case, and rename itsgot/wantErr/wantVersionfields to domain names asbackend/AGENTS.mdasks of touched tests. The table holds:- accepted:
4.2.0and4.4.29→MongodbVersion4,5.0.0→MongodbVersion5,6.0.0→MongodbVersion6,7.0.0→MongodbVersion7,8.0.0and8.10.1→MongodbVersion8,9.0.2and9.2.0→MongodbVersion9. The existing9.0 rejectedcase flips to accepted; - refused below the minimum:
3.6.23,4.0.28and4.1.0, each with an error containing the version found (3.6,4.0,4.1) andminimum supported: 4.2; - refused above the bound:
10.0.0, with an error containing10.0andsupported: 4.2 through 9.x; - unreadable:
abcand an empty string, each with an error containingcould not parse MongoDB versionand the value received.
Verify with
just test-package ./internal/features/databases/databases/mongodb/...inbackend/- accepted:
2.3 Make
IsMongodbBackupVersionHigherThanRestoreVersionreturn(bool, error)and delegate tocompareReleaseLines, like the MySQL guard. Update the caller inbackend/internal/features/restores/service.goto return the error. Addbackend/internal/util/tools/mongodb_test.gocovering 9 onto 8 refused, 8 onto 9 allowed, 9 onto 9 allowed, 4 onto 9 allowed, and an unreadable identity returning an error, named after the MySQL tests inmysql_test.go. Verify withjust test-package ./internal/util/tools/... ./internal/features/restores/...inbackend/2.4 Update the fake client output in
backend/internal/util/tools/common_test.gofrom100.16.1to100.19.1. Verify withjust test-package ./internal/util/tools/...inbackend/
3. Real-server test matrices
- 3.1 Add
{"MongoDB 9.0", tools.MongodbVersion9, "mongo:9.0.2-noble"}tomongodbModelVersionsinmodel_test.goand tomongodbVersionsinbackend/internal/features/tests/logical/mongodb/backup_restore_test.go, then pull the image withdocker pull mongo:9.0.2-noble. Verify withjust test-package ./internal/features/databases/databases/mongodb/...inbackend/ - 3.2 Run the whole MongoDB backup and restore matrix on the new binaries, because the refreshed client serves every version and not only 9. Verify with
just test-package ./internal/features/tests/logical/mongodb/...inbackend/
4. Frontend identity values
- 4.1 Change
frontend/src/entity/databases/model/mongodb/MongodbVersion.tsto the identities the backend sends,MongodbVersion4 = '4'throughMongodbVersion9 = '9', and update the member used indisableSrvWhenTunneled.test.ts. Verify withpnpm typecheck,pnpm lintandpnpm testinfrontend/
5. Documentation
- 5.1 Add 9 to the MongoDB line in the root
README.mdand in all five copies underassets/readme/, following each locale's own list punctuation (the Chinese copy uses、), asassets/readme/AGENTS.mdrequires. Verify withgrep -n 'MongoDB' README.md assets/readme/README.*.mdshowing 9 on line 118 of every file - 5.2 Add 9 to
.github/SECURITY.mdand to the MongoDB entry inwebsite/public/llms.txt. Verify withgrep -n 'MongoDB' .github/SECURITY.md website/public/llms.txt - 5.3 Add 9 to every version list on the English MongoDB page
website/app/(en)/mongodb-backup/page.tsx: the feature list, both FAQ answers, the versions paragraph, and aMongoDB 9badge afterMongoDB 8. Verify withpnpm lintinwebsite/ - 5.4 Mirror 5.3 in the five copies under
website/app/[lang]/mongodb-backup/content/, following each locale's conventions inwebsite/AGENTS.mdand keeping heading anchors unchanged. Verify thatgrep -nE '7 (и|y|e|et|and) 8|7 和 8' website/app/\(en\)/mongodb-backup/page.tsx website/app/\[lang\]/mongodb-backup/content/*.tsxfinds no list that still stops at 8, then runpnpm lintandpnpm buildinwebsite/
6. Close-out
- 6.1 Update the Purpose line of
openspec/specs/database-version-support/spec.mdto name MySQL, MariaDB and MongoDB, since a delta spec cannot change it. Verify withopenspec validate support-mongodb-9 --strict - 6.2 Run
just lintat the repository root andjust formatfor the touched modules, then confirmgit statusshows no formatter changes outside this change's files - 6.3 Confirm that
grep -rn '100\.16\.1' --exclude-dir=openspec --exclude-dir=node_modules .andgrep -rnE 'MongodbVersion(42|44|[5-8]0)\b' frontend/srcfind nothing, so no stale tools version or old frontend member remains