Repository navigation
fix: patch remaining service dependency vulnerabilities - #400
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 661d0ccbe6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Codex Review: Didn't find any major issues. Chef's kiss. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
…h files The amd64 `sandbox` image failed to build after the v1.11.0 merge: error: Unknown lockfile version at bun.lock:2:22 error: lockfile had changes, but lockfile is frozen v1.11.0's service/bun.lock is lockfileVersion 3, which bun 1.3.14 cannot parse. Every stage in this file still pinned oven/bun:1.3.14 while upstream moved to 1.4.4; service/Dockerfile, which CI uses for the api and worker images, was already on 1.4.4, and languageConfig pins the sandbox runtime to Bun 1.4.4 as well. So the fork was the only thing left behind. All five stages move to 1.4.4. oven/bun:1.4.4-debian is still trixie, so the Posit R build the distro derivation selects does not change. Fixing the version alone then failed differently: error: patch file not found: 'patches/deepmerge@4.3.1.patch' service/package.json declares patchedDependencies (deepmerge@4.3.1, minio@8.0.7), added upstream in LibreChat-AI#400, and --frozen-lockfile refuses to install without the patch files the lockfile records. Upstream copies service/patches before every service install; this fork copied it nowhere. Added to all three stages that install service dependencies: worker-builder, worker-sandbox-kvm and worker-sandbox-nokvm. api/package.json declares no patched dependencies. That is why the Lambda stage, which installs only api dependencies, built fine throughout and why sandbox-microvm did not fail alongside sandbox. Verified: - worker-sandbox-kvm builds on linux/amd64, the exact target and platform that failed; worker-builder installs 513 packages - sandbox-lambda-microvm rebuilt on the new base: the sandbox starts, the NsJail smoke test passes, all five runtimes load, and R 4.5.2 runs end to end through /api/v2/execute including Sys.which and the stats path - the hardening survives the base bump: zero libnl links in nsjail, and sandbox-supervisor-policy, tool-call-pipe-bridge and anonymous-pipes.node all present - no regression and isolation intact: python+numpy runs, the sandbox cannot reach the network, and R cannot read /etc/shadow - 24 pass / 0 fail in service/src/config.spec.ts worker-sandbox-nokvm is not built by CI (images.json builds only worker-sandbox-kvm and sandbox-lambda-microvm) and was not built here; its change is the same one-line copy verified in the other two stages.
Summary
Remove the remaining service audit findings that have fixed releases, and apply a reproducible fix for the unpatched deepmerge advisory.
This does not close the separate sandbox-runtime/Zod alert tracked in #383.
Change Type
Testing
bun audit --jsonnow reports only the locally patched deepmerge 4.3.1 advisory; minimatch and stream-json findings are gone.Checklist