-
Notifications
You must be signed in to change notification settings - Fork 44
fix(platform): npm audit security for tar-fs #2656
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
Conversation
WalkthroughThe changes update the project's dependency management by upgrading and adding several packages related to tar file handling and stream processing. The Changes
Sequence Diagram(s)sequenceDiagram
participant App
participant [email protected]
participant [email protected]
participant bare-fs
participant bare-path
participant b4a
participant fast-fifo
participant streamx
App->>[email protected]: Use tar-fs API
[email protected]>>bare-fs: File operations
[email protected]>>bare-path: Path handling
[email protected]>>[email protected]: Stream tar data
[email protected]>>b4a: Buffer operations
[email protected]>>fast-fifo: FIFO queue
[email protected]>>streamx: Stream management
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (18)
.yarn/cache/b4a-npm-1.6.7-a52d28b4e2-1ac056e3bc.zipis excluded by!**/.yarn/**,!**/*.zip.yarn/cache/bare-events-npm-2.5.4-ff815c1e18-135ef380b1.zipis excluded by!**/.yarn/**,!**/*.zip.yarn/cache/bare-fs-npm-4.1.5-f5308cecd1-81334c45db.zipis excluded by!**/.yarn/**,!**/*.zip.yarn/cache/bare-os-npm-3.6.1-4544809acf-285d95c391.zipis excluded by!**/.yarn/**,!**/*.zip.yarn/cache/bare-path-npm-3.0.0-d42919fc21-712d90e9cd.zipis excluded by!**/.yarn/**,!**/*.zip.yarn/cache/bare-stream-npm-2.6.5-1977dd457e-0f5ca2167f.zipis excluded by!**/.yarn/**,!**/*.zip.yarn/cache/chownr-npm-1.1.4-5bd400ab08-115648f8eb.zipis excluded by!**/.yarn/**,!**/*.zip.yarn/cache/fast-fifo-npm-1.3.2-391cc25df4-6bfcba3e4d.zipis excluded by!**/.yarn/**,!**/*.zip.yarn/cache/fs-constants-npm-1.0.0-59576b2177-18f5b71837.zipis excluded by!**/.yarn/**,!**/*.zip.yarn/cache/mkdirp-classic-npm-0.5.3-3b5c991910-3f4e088208.zipis excluded by!**/.yarn/**,!**/*.zip.yarn/cache/streamx-npm-2.22.0-6953aefe6d-9c329bb316.zipis excluded by!**/.yarn/**,!**/*.zip.yarn/cache/tar-fs-npm-2.0.1-0734c93785-85ceac6fce.zipis excluded by!**/.yarn/**,!**/*.zip.yarn/cache/tar-fs-npm-2.1.2-4231292dd1-623f7e8e58.zipis excluded by!**/.yarn/**,!**/*.zip.yarn/cache/tar-fs-npm-3.0.9-3078dff77a-00e194ef36.zipis excluded by!**/.yarn/**,!**/*.zip.yarn/cache/tar-stream-npm-2.2.0-884c79b510-1a52a51d24.zipis excluded by!**/.yarn/**,!**/*.zip.yarn/cache/tar-stream-npm-3.1.7-c34f9aa00f-b21a82705a.zipis excluded by!**/.yarn/**,!**/*.zip.yarn/cache/text-decoder-npm-1.2.3-cc7432569a-bcdec33c0f.zipis excluded by!**/.yarn/**,!**/*.zipyarn.lockis excluded by!**/yarn.lock,!**/*.lock
📒 Files selected for processing (2)
.pnp.cjs(8 hunks)package.json(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (3)
- GitHub Check: Build Docker images (Dashmate helper, dashmate-helper, dashmate-helper) / Build Dashmate helper image
- GitHub Check: Build Docker images (DAPI, dapi, dapi) / Build DAPI image
- GitHub Check: Build JS packages / Build JS
🔇 Additional comments (9)
package.json (1)
103-103: Enforce securetar-fsversion (GHSA-8cj5-5rvv-wf4v)
Pinning"tar-fs"to^3.0.9addresses the high-severity path‐traversal vulnerability in versions <2.1.3 and resolves the CI audit failures..pnp.cjs (8)
6405-6413: Auto-generated Yarn PnP entry for [email protected]
This change reflects the updated dependency graph after bumpingtar-fsto a safe version. No manual action required.
6551-6630: Auto-generated Yarn PnP entries for bare-events, bare-fs, bare-os, bare-path, and bare-stream
These packages were introduced as new runtime dependencies of the upgradedtar-fsandtar-streamversions. All entries look consistent with the resolution inpackage.json. No manual action required.
9194-9194: Auto-generated Yarn PnP update for tar-fs in dockerode’s dependency list
Thetar-fsversion is upgraded to 3.0.9 underdockerode. This matches the security resolution. No manual action required.
9207-9207: Auto-generated Yarn PnP update for tar-fs in @grpc/proto-loader dependency list
Thetar-fsversion is upgraded to 3.0.9 under the gRPC loader dependencies. No manual action required.
10371-10379: Auto-generated Yarn PnP entry for [email protected]
This addition supports the upgradedtar-streampackage. No manual action required.
17914-17925: Auto-generated Yarn PnP entry for [email protected]
Introduced as a new dependency oftar-stream. All metadata aligns with the resolution update. No manual action required.
18265-18273: Auto-generated Yarn PnP entries for [email protected] and [email protected]
These entries capture the safe versions of both packages and their dependencies. No manual action required.
18541-18550: Auto-generated Yarn PnP entry for [email protected]
Added as a dependency ofstreamxin the updated resolution set. No manual action required.
Issue being fixed or feature implemented
All PRs to v2.0-dev currently failing with such message on the CI:
And tar-fs v2 versions considered unsafe leading to CI fail on NPM security check.
This module is used by dockerode npm package that is being used by dashmate.
What was done?
tar-fsto latest version 3.0.9How Has This Been Tested?
Only by typing
yarnBreaking Changes
No
Checklist:
For repository code-owners and collaborators only
Summary by CodeRabbit
No visible changes to features or user interface.