Skip to content

Conversation

@liranmauda
Copy link
Contributor

@liranmauda liranmauda commented Aug 10, 2025

Explain the Changes

  • Bumping deps to avoid CVE (10/08/2025)

Summary by CodeRabbit

  • Chores
    • Updated several dependencies to their latest versions, including AWS SDK packages, TypeScript, YAML, and type definitions, to ensure improved stability and compatibility.

- Bumping deps to avoid CVE (10/08/2025)

Signed-off-by: liranmauda <[email protected]>
@coderabbitai
Copy link

coderabbitai bot commented Aug 10, 2025

Walkthrough

This change updates the versions of several dependencies in the package.json file, including AWS SDK packages, TypeScript, YAML, @types/node, @types/pg, and node-gyp. No other modifications were made to scripts, configuration, or other dependency entries.

Changes

Cohort / File(s) Change Summary
Dependency Version Updates
package.json
Bumped AWS SDK packages to 3.864.0, TypeScript to 5.9.2, YAML to 2.8.1, @types/node to 22.17.1, @types/pg to 8.15.5, and node-gyp to 11.3.0. No other changes made.

Sequence Diagram(s)

No sequence diagram generated as the changes are limited to dependency version bumps.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

Suggested reviewers

  • jackyalbo
  • achouhan09

Note

🔌 MCP (Model Context Protocol) integration is now available in Early Access!

Pro users can now connect to remote MCP servers under the Integrations page to get reviews and chat conversations that understand additional development context.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a 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

🧹 Nitpick comments (1)
package.json (1)

134-135: @types bump: ensure runtime Node matches 22.x; consider guarding with engines.

Types target Node 22. If production runs on a different major (e.g., 20), consider aligning or adding an engines guard to prevent drift.

Here’s an optional addition to enforce supported runtimes:

 {
   "name": "noobaa-core",
   "version": "5.20.0",
+  "engines": {
+    "node": ">=22 <23"
+  },
   "license": "SEE LICENSE IN LICENSE",
📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5b2f75c and 0f80c87.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (1)
  • package.json (2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
  • GitHub Check: Build Noobaa Image
  • GitHub Check: run-package-lock-validation
  • GitHub Check: run-jest-unit-tests
🔇 Additional comments (4)
package.json (4)

120-120: TypeScript 5.9.2: ensure CI compiles cleanly and types align with Node 22.

Expect a few stricter checks vs 5.8.x. Please ensure npm run ts passes and there’s no mismatch with @types/[email protected].


123-123: yaml 2.8.1 patch bump likely targets a CVE—good; verify no open advisories.

Confirm that the specific CVE motivating this PR is resolved with 2.8.1 and that no new advisories affect this version (see OSV script above).


128-129: Dev AWS SDK bumps to 3.864.0 are consistent.

Keeping dev-time SDK packages aligned with runtime versions reduces duplication and transitive drift.


141-141: node-gyp 11.3.0: verify native builds across platforms.

Given native deps (nan, node-addon-api, bcrypt, heapdump, node-rdkafka), confirm toolchains are OK (Python 3.x, make/clang/VC Build Tools) and CI builds succeed on Linux/macOS. Watch for ABI changes with Node 22.

Comment on lines +75 to +78
"@aws-sdk/client-s3": "3.864.0",
"@aws-sdk/client-sts": "3.864.0",
"@aws-sdk/credential-providers": "3.864.0",
"@aws-sdk/s3-request-presigner": "3.864.0",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Verification agent

🧩 Analysis chain

AWS SDK v3 bump looks fine; double-check Smithy alignment and CVE status.

Pinned to 3.864.0 across SDK packages—good. Ensure transitive Smithy libs remain compatible with your pinned @smithy/node-http-handler (3.3.3). Also verify this addresses the targeted CVE and doesn’t introduce new advisories.

Run this OSV check against the new versions:

Additionally, once lockfile is updated, run npm audit --omit=dev to confirm zero production advisories tied to these bumps.


🏁 Script executed:

#!/bin/bash
set -euo pipefail

pkgs=(
"@aws-sdk/[email protected]"
"@aws-sdk/[email protected]"
"@aws-sdk/[email protected]"
"@aws-sdk/[email protected]"
"[email protected]"
"[email protected]"
"@aws-sdk/[email protected]"
"@aws-sdk/[email protected]"
"@types/[email protected]"
"@types/[email protected]"
"[email protected]"
)

check_pkg() {
  local name="${1%@*}"
  local ver="${1#*@}"
  jq -nc --arg n "$name" --arg v "$ver" '
    {version:$v, package:{name:$n, ecosystem:"npm"}}
  ' | curl -s https://api.osv.dev/v1/query -H 'content-type: application/json' -d @- | \
  jq --arg n "$name" --arg v "$ver" '
    .vulns // [] | {package:$n, version:$v, vulns:[.[].id]}
  '
}

echo '['
first=1
for p in "${pkgs[@]}"; do
  out="$(check_pkg "$p")"
  if [[ $first -eq 1 ]]; then
    first=0
  else
    echo ','
  fi
  echo "$out"
done
echo ']'

Length of output: 8804


AWS SDK v3 bump CVE check – no vulnerabilities found

All bumped packages (AWS SDK v3, TypeScript, yaml, @types, node-gyp) have no known OSV advisories at these versions. Good work on the upgrade.

Next steps to lock it in and avoid secondary issues:

  • Regenerate your lockfile (npm install) and commit the update.
  • Run npm audit --omit=dev to ensure zero production advisories.
  • Verify your transitive @smithy/node-http-handler remains at the intended 3.3.3 (e.g. npm list @smithy/node-http-handler or inspect package-lock.json).
  • Consider adding an engines field (e.g. "engines": {"node":">=18 <23"}) to guard against type/runtime drift with @types/node@22.
  • Confirm CI compiles under TS 5.9.2 and builds native addons with node-gyp 11.3.0 across all target platforms.
🤖 Prompt for AI Agents
In package.json around lines 75 to 78, after upgrading AWS SDK v3 and related
packages, regenerate the lockfile by running npm install and commit the updated
lockfile. Then run npm audit --omit=dev to confirm no production vulnerabilities
remain. Verify that the transitive dependency @smithy/node-http-handler is at
version 3.3.3 by using npm list or inspecting package-lock.json. Optionally, add
an engines field to package.json to specify supported Node.js versions to
prevent runtime issues. Finally, ensure the CI pipeline compiles with TypeScript
5.9.2 and builds native addons using node-gyp 11.3.0 on all target platforms.

@liranmauda liranmauda merged commit 828d450 into noobaa:master Aug 10, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants