Repository navigation
feat(docker): run the all-in-one image on DocumentDB instead of MongoDB 4.0.5 #3734
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
6ff89f8
9353406
8b60457
ed14a7c
28a3026
9e64f12
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| --- | ||
| '@hyperdx/api': minor | ||
| --- | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Breaking change shipped as minor bumpHigh Severity The changeset marks this as a Reviewed by Cursor Bugbot for commit 9e64f12. Configure here. |
||
|
|
||
| feat: store all-in-one metadata in DocumentDB instead of MongoDB 4.0.5 | ||
|
|
||
| DocumentDB is MIT licensed and runs on Postgres 18, which removes the SSPL | ||
| licence and the critical OpenSSL 1.1.1k CVEs that came with the bundled MongoDB. | ||
| Metadata still lives on the `/data/db` mount, now under `/data/db/pgdata`. The | ||
| image cannot read the MongoDB files already there, so it refuses to start on a | ||
| `/data/db` volume that holds them. Users, sources, dashboards and alerts saved by | ||
| an older image need to be moved across once, or set | ||
| `HYPERDX_ACCEPT_EMPTY_METADATA=true` to start with an empty database instead: | ||
|
|
||
| 1. Stop the old container, then start its MongoDB on its own: | ||
| `docker run -d --name old-mongod -v <volume>:/data/db --entrypoint mongod <old-image> --dbpath /data/db --bind_ip_all` | ||
| 2. Dump it with the 4.0 tools, since newer `mongodump` refuses MongoDB 4.0: | ||
| `docker run --rm --network container:old-mongod mongo:4.0.5 mongodump --db hyperdx --archive > hyperdx.archive` | ||
| 3. Remove `old-mongod`, start the new image with the same `/data/db` volume and | ||
| `-e HYPERDX_ACCEPT_EMPTY_METADATA=true`, and wait for the UI to load. | ||
| 4. Restore into it, then restart the container: | ||
| `docker run --rm -i --network container:<new-container> mongo:7.0 mongorestore --uri "mongodb://hyperdx:hyperdx@localhost:10260/?authMechanism=SCRAM-SHA-256" --ssl --tlsInsecure --drop --archive < hyperdx.archive` | ||
|
|
||
| The old MongoDB files stay in `/data/db` until you delete them. | ||
This file was deleted.
This file was deleted.


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔴 P1 — Breaking all-in-one change ships as a
minorbump, so the floating:2andlatesttags pick it uprelease.yml(around lines 859–864 and 1052–1057) retags every release as${IMAGE}:${MAJOR}and latest. The PR description's own repro usesclickstack-all-in-one:2. With aminorchangeset, anyone tracking:2who pulls or restarts gets an image that exits at boot (because of the WiredTiger gate) or, with the opt-in set, starts with an empty metadata database. Either mark thismajoror publish it under a new image major tag, so existing:2deployments don't hit the breaking upgrade unannounced.Nothing blocks merge automatically, but a maintainer will expect this fixed if it is a real defect in code this PR changes. If it is about surrounding code, reply and say so instead of patching. Do not widen the PR. How to respond