Repository navigation
fix(security): refresh vulnerable dependencies and cover web image builds - #7
Merged
Merged
Conversation
- Next 16.4.6 clears the remaining 16.4.x advisories. - Override sharp ^0.35.5 and source-map-js ^1.2.2 for their advisories. - Next regenerated next-env.d.ts for its root-params types.
- pyjwt 2.15.1, urllib3 2.8.0, langgraph-sdk 0.4.14. - Also refresh aiohttp, certifi, filelock, pillow, pyasn1 and soupsieve; Trivy found HIGH/CRITICAL advisories fixed in these releases. - requires-python >=3.11.5 for soupsieve 3+; images/CI run 3.11.15+.
- Re-resolved starlette 1.10.0, fastapi 0.165.0, cryptography 50.0.2, pypdf 7.2.0, lightrag-hku 1.5.8, transformers 5.24.1, sentence-transformers 6.3.0, mineru 4.2.3 and gradio 6.32.0. - pypdf 7.2.0 clears the framework stack's advisories; the rag extra remains opt-in and is not installed in the default image. - Also refresh aiohttp, certifi, filelock, pillow, pyasn1 and soupsieve found by Trivy; requires-python >=3.11.5 for soupsieve 3+.
- The web deps stage needs packages/ee/package.json for the frozen workspace install; pnpm install failed without it. - Add a web image build to the docker-build job with compose-default public build args and a gha cache scope.
- Capture resolved versions, plan deviations, focused check results, the Trivy command/result, and the accepted DS-0002 risk.
- Exact resolver-selected versions import and construct the gated backend. - Note the skeleton ingest/query limitation and why no pin-back was needed.
- Format prep page, mastery graph, and theme toggle only. - `pnpm lint` now passes; no behavior change.
- `pnpm lint` now passes after formatting the three web files in ae66eb5.
- setup-python 3.11 + UV_PYTHON=3.11 so uv cannot pick the runner's 3.14; refresh setup-uv to v10.4.0. - Web image build loads a stable tag and smoke-tests /api/health and /. - Add a pinned Trivy 0.76.2 HIGH/CRITICAL vuln+secret gate; the accepted DS-0002 misconfig stays out of the gate. - Correct the pyproject comments that claimed CI already pinned 3.11.
- Add failed run URL, Python 3.14 root cause, code fixes, and local rechecks.
- Link run 46156714212; build, docker-build, gitleaks and security all passed.
- Run `uv lock --check` for apps/agent before sync and for services/lightrag before its pytest step, both under UV_PYTHON=3.11.
- Add f0b7f84 and the exact local `uv lock --check` rechecks.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Upstream PR ngoanpv#113 is the right security work, but its Next 16.3.8 target is stale. This rebuild uses current registry/advisory data and also closes the missing web-image CI build.
Changes
sharp/source-map-jssecurity floors.ragextra.packages/ee/package.jsonin the web Docker deps stage.docker-buildjob.pnpm lintpasses.Verification
pnpm install --frozen-lockfile: passedpnpm build --filter @deepinterview/web...: passedpnpm lint: passedDS-0002— agent image runs as root; deferred follow-upFull evidence and decisions:
WORKLOG.md.Review focus