Skip to content

chore: minor node version update - #4556

Merged
maheshkutty merged 2 commits into
developfrom
snyk-fix-92ece67441e3796c454df9fe19756e77
Aug 13, 2025
Merged

maheshkutty merged 2 commits into
developfrom
snyk-fix-92ece67441e3796c454df9fe19756e77

Conversation

@maheshkutty

Copy link
Copy Markdown
Contributor

snyk-top-banner

Snyk has created this PR to fix 1 vulnerabilities in the dockerfile dependencies of this project.

Keeping your Docker base image up-to-date means you’ll benefit from security fixes in the latest version of your chosen image.

Snyk changed the following file(s):

  • Dockerfile

We recommend upgrading to node:20.19.4-alpine3.21, as this image has only 0 known vulnerabilities. To do this, merge this pull request, then verify your application still works as expected.

Vulnerabilities that will be fixed with an upgrade:

Issue Score
high severity Directory Traversal
SNYK-UPSTREAM-NODE-10847885
  786  

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.

For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic


Learn how to fix vulnerabilities with free interactive lessons:

🦉 Directory Traversal

@maheshkutty
maheshkutty requested a review from a team August 12, 2025 09:48
@coderabbitai

coderabbitai Bot commented Aug 12, 2025 •

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • Chores
    • Updated the runtime base image to the latest compatible patch and pinned its digest to ensure reproducible, consistent builds across environments.
    • Improves reliability of deployments and incorporates the latest upstream patches for enhanced stability.
    • No functional changes to the app’s behavior; users should not notice any differences.

Walkthrough

Updated the Dockerfile base image from an unpinned tag to a pinned digest: previously node:20.19.2-alpine3.21 (tag) → now node:20.19.4-alpine3.21@sha256:48022836f3fbf... for the base stage; multi-stage references remain unchanged. (≤50 words)

Changes

Cohort / File(s) Summary
Docker image base pin
Dockerfile
Replace node:20.19.2-alpine3.21 AS base with node:20.19.4-alpine3.21@sha256:48022836f3fbf7d8cd398114b5091cbe3c4b6cd5a4f37f0e5b2aece7fd6d2fc4 AS base. All other Dockerfile lines and downstream stage references unchanged.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Suggestions:

  • Verify CI build and runtime smoke tests for all stages.
  • Consider updating changelog and CI automation to track pinned-digest updates.
  • Optionally pin other base images or add a brief comment explaining the digest pin for maintainers.

Possibly related PRs

Suggested reviewers

  • sivashanmukh
  • utsabc
  • koladilip

📜 Recent review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between c0c77f3 and 8b658d6.

📒 Files selected for processing (1)
  • Dockerfile (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • Dockerfile
⏰ 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). (9)
  • GitHub Check: Build Transformer Docker Image - PR / Build Transformer Docker Image ARM64
  • GitHub Check: Build Transformer Docker Image - PR / Build Transformer Docker Image AMD64
  • GitHub Check: Build User Transformer Docker Image - PR / Build Transformer Docker Image ARM64
  • GitHub Check: Build User Transformer Docker Image - PR / Build Transformer Docker Image AMD64
  • GitHub Check: Code Coverage
  • GitHub Check: test_and_publish
  • GitHub Check: UT Tests
  • GitHub Check: Analyze (go)
  • GitHub Check: Analyze (javascript-typescript)
✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch snyk-fix-92ece67441e3796c454df9fe19756e77

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.
    • 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.
  • 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 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/Issue comments)

Type @coderabbitai help to get the list of available commands.

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.

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • 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.

@maheshkutty
maheshkutty changed the base branch from main to develop August 12, 2025 09:51
@maheshkutty maheshkutty changed the title [Snyk] Security upgrade node from 20.19.2-alpine3.21 to 20.19.4-alpine3.21 chore: minor node version update Aug 12, 2025
@maheshkutty
maheshkutty force-pushed the snyk-fix-92ece67441e3796c454df9fe19756e77 branch from 8a1e2f4 to c0c77f3 Compare August 12, 2025 09:52

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

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 (2)
Dockerfile (2)

2-2: Verify runtime assumptions after Node patch bump (healthcheck, native deps, npm)

  • Healthcheck uses wget; ensure it still exists in the updated base (busybox wget should be present, but verify container healthcheck passes).
  • Native build toolchain (make, g++, python3) still compiles any native modules under Node 20.19.4 (node-gyp).
  • Confirm npm ci behavior and lockfile remain unchanged.

Would you like a minimal CI smoke job snippet to build and run the container, asserting the health endpoint?


2-2: Optional: reduce layers and improve build determinism around apk usage

Not a blocker for this PR, but consider:

  • Combining update/upgrade into a single layer to reduce image layers.
  • Alternatively, rely on the base image’s patched packages and drop apk upgrade to keep builds deterministic (security posture can stay enforced through base image bumps like this PR).

Example (non-diff, outside the changed line range):

# fewer layers
RUN apk update && apk upgrade
📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between ffbd7f6 and c0c77f3.

📒 Files selected for processing (1)
  • Dockerfile (1 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). (9)
  • GitHub Check: Code Coverage
  • GitHub Check: Build User Transformer Docker Image - PR / Build Transformer Docker Image ARM64
  • GitHub Check: Build User Transformer Docker Image - PR / Build Transformer Docker Image AMD64
  • GitHub Check: Build Transformer Docker Image - PR / Build Transformer Docker Image ARM64
  • GitHub Check: Build Transformer Docker Image - PR / Build Transformer Docker Image AMD64
  • GitHub Check: test_and_publish
  • GitHub Check: UT Tests
  • GitHub Check: Analyze (go)
  • GitHub Check: Analyze (javascript-typescript)
🔇 Additional comments (1)
Dockerfile (1)

2-2: LGTM on the patch-level Node upgrade

Bumping base to node:20.19.4-alpine3.21 is a safe, non-breaking patch update and aligns with the Snyk advisory. All subsequent stages inherit the secure base as expected.

Comment thread Dockerfile Resolved
@devops-github-rudderstack

Copy link
Copy Markdown
Contributor

Allure Test reports for this run are available at:

@codecov

codecov Bot commented Aug 12, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.79%. Comparing base (7ae313f) to head (8b658d6).
⚠️ Report is 31 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #4556      +/-   ##
===========================================
+ Coverage    91.63%   91.79%   +0.16%     
===========================================
  Files          643      642       -1     
  Lines        34020    33886     -134     
  Branches      8048     8023      -25     
===========================================
- Hits         31174    31107      -67     
+ Misses        2588     2527      -61     
+ Partials       258      252       -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread Dockerfile Resolved
@devops-github-rudderstack

Copy link
Copy Markdown
Contributor

Allure Test reports for this run are available at:

@sonarqubecloud

Copy link
Copy Markdown

@maheshkutty
maheshkutty merged commit 5617eb8 into develop Aug 13, 2025
@maheshkutty
maheshkutty deleted the snyk-fix-92ece67441e3796c454df9fe19756e77 branch August 13, 2025 06:39
@coderabbitai coderabbitai Bot mentioned this pull request Sep 11, 2025
10 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants