Skip to content

fix: bump Node to 24.18.0 to resolve STS Premature close regression - #335

Merged
kkohtaka merged 1 commit into
masterfrom
fix/node-24-18-sts-premature-close
Jun 27, 2026
Merged

fix: bump Node to 24.18.0 to resolve STS Premature close regression#335
kkohtaka merged 1 commit into
masterfrom
fix/node-24-18-sts-premature-close

Conversation

@kkohtaka

@kkohtaka kkohtaka commented Jun 27, 2026

Copy link
Copy Markdown
Owner

Summary

Resolves #305. Node 24.17.0 introduced an undici/http regression that broke the GCP STS token fetch in the E2E Workload Identity Federation flow, surfacing as ERR_STREAM_PREMATURE_CLOSE (https://sts.googleapis.com/v1/token: Premature close).

Background

  • The earlier pin back to 24.16.0 (38691b9) restored E2E, but 24.17.0 was a security release, so staying on 24.16.0 drops those security fixes.
  • The upstream fix nodejs/node#64004 landed in v24.18.0 (2026-06-23) and was backported to v24.x. 24.18.0 also carries the 24.17.0 security fixes.

Changes

Bump both version selectors past 24.17.0 to 24.18.0:

  • .nvmrc: 24.16.024.18.0
  • src/functions/drive-scanner/package.json engines.node: 24.16.024.18.0

This resolves the STS "Premature close" failure and picks up the security fixes in one step.

Verification

  • Local npm test (all functions, including drive-scanner) passes.
  • The E2E workflow does not run automatically on PRs, so after merge it should be triggered manually via workflow_dispatch to confirm STS auth succeeds.

Closes #305

🤖 Generated with Claude Code

Node 24.17.0 introduced an undici/http regression causing
ERR_STREAM_PREMATURE_CLOSE during the GCP STS token fetch used by the
E2E Workload Identity Federation flow (issue #305). The 24.16.0 pin
worked around it but missed the 24.17.0 security fixes.

Fixed upstream in 24.18.0 (nodejs/node#64004), which also carries the
24.17.0 security fixes. Bump both version selectors (.nvmrc and
drive-scanner engines.node) past 24.17.0 to 24.18.0.

Closes #305

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@codecov

codecov Bot commented Jun 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

🚀 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.

@github-actions

Copy link
Copy Markdown

✅ Terraform Plan (Staging) SUCCESS

📊 View full plan output in the workflow run

Auto-triggered after Test workflow success

@kkohtaka
kkohtaka merged commit 75538f5 into master Jun 27, 2026
21 checks passed
@kkohtaka
kkohtaka deleted the fix/node-24-18-sts-premature-close branch June 27, 2026 00:27
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.

E2E fails on Node 24.17.0: STS token fetch "Premature close"

1 participant