Skip to content

fix(deps): harden cloud HTTP, WebSocket and build dependencies - #19362

Merged
OrcaWin merged 1 commit into
mainfrom
OrcaWin/neil-cloud-dep-updates
Sep 8, 2026
Merged

OrcaWin merged 1 commit into
mainfrom
OrcaWin/neil-cloud-dep-updates

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Sep 7, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 0 0 0 0
Prod 4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​39 $\color{#cf222e}{\Huge{\mathbf{−}}}$​39 0

Ready for review. Validation evidence: 1,455 cloud tests pass including PostgreSQL 16 integration; builds/types pass; audit 9 → 0.

ELI5

Update a small set of dependencies with documented security, performance and correctness fixes. Keep incompatible migrations and native runtime changes out of this update group.

What Changed / Why

Cloud dependency review — 2026-09-07

This independent update group changes only five resolved packages in cloud/pnpm-lock.yaml and the corresponding direct dependency floors in the three cloud apps. The runtime still supports Node >=24 <27; Zod 3 and the relay contract remain unchanged.

Dependency Locked change Concrete benefit Why this version / compatibility risk
hono 4.12.27 → 4.13.7 4.13 release series: reduces hot-path request/context allocations; repairs wildcard routing, cloned request bodies and query parsing past URL fragments; includes CORS/language DoS, SSR disclosure and boundary escaping security fixes. Same major, compatible with the retained adapter 1.x. Includes follow-up router/body fixes after 4.13.0 and the September 4 escaping fix. The performance improvements affect ordinary HTTP requests, but no Orca throughput gain is claimed without a benchmark. Orca does not import the affected CORS/language/SSR/proxy modules; those fixes are defense in depth. Query and router semantics are the main compatibility risks, covered by the cloud HTTP/auth/route tests.
@hono/node-server 1.19.14 → 1.19.17 1.x source comparison: includes the Windows encoded-backslash static path-traversal fix. Retains adapter 1.x and its Hono ^4 peer range. 1.19.16/17 are publishing/CI follow-ups rather than the 2.x request/WebSocket changes. Orca's cloud apps do not import serve-static, so this is defense in depth, not evidence of an exposed traversal route.
ws 8.21.0 → 8.21.3 8.21.1 counts empty fragments toward limits and reduces default fragment/buffer limits; 8.21.3 fixes deflate negotiation. Same patch line as desktop/mobile. The relay disables perMessageDeflate, so the valuable runtime change is fragment-limit hardening, not compression speed. Lower limits could disconnect unusually fragmented clients; relay WebSocket black-box and reconnect tests pass. Normal frames/wire vocabulary are unchanged.
postcss 8.5.15 → 8.5.28 Changelog: restricts source-map loading and fixes CSS parsing/visitor behavior. Dev-only through Vite/Vitest. Includes the follow-up visitor, split and type regression repairs, rather than stopping at first patched 8.5.23. Same 8.5 release line; cloud tests pass.
nanoid 3.3.13 → 3.3.18 3.x comparison: fixes non-secure/custom-generator loops for invalid sizes, including the native entry point follow-up. Dev-only through PostCSS; remains on 3.x. No CommonJS/ESM major migration. PostCSS's normal positive-size call is unchanged.

Validation

On macOS arm64, Node 26.6.0 (inside the cloud engine range), pnpm 10.24.0, with ORCA_BACKGROUND_LAUNCH=1:

  • pnpm install --frozen-lockfile: passed after removing unrelated transitive resolver churn.
  • pnpm build: all four packages/apps passed.
  • pnpm typecheck: all packages/apps passed.
  • pnpm test: passed. Pretest scripts: 153 tests; package suites: 669 passed / 95 skipped; subsequent deployment/operations scripts: 536 tests. Total 1,358 passed, 95 skipped.
  • The relay suite accounts for 535 passed / 95 skipped. PostgreSQL-gated coverage needs ORCA_RELAY_TEST_POSTGRES_URL in CI; no production database or infrastructure was contacted.
  • pnpm audit --json: 9 findings before, 0 after, using the independent cloud lockfile.
  • Final package delta contains exactly the five listed packages; unrelated lightningcss/WASM runtime upgrades were removed. No new native package, override or lifecycle script was introduced.

These are compatibility arguments and test evidence, not a guarantee of no regressions. Linux deployment and database-backed CI must still pass. No new RPC fields/opcodes, execution ownership rules, schemas, authentication rules, Git commands, folder/worktree assumptions or provider-specific behavior are introduced. Existing relay black-box tests exercise host/client connectivity; a live SSH deployment and cross-version desktop session were not run.

Linked Issue

User-requested dependency review; no existing issue linked.

Visual Proof

N/A — dependency lockfile/manifest maintenance; no UI implementation changes.

Testing

See the command outcomes and explicit limitations above. Existing integration tests and direct API smoke checks were used; no implementation-mirroring tests were added.

Review

  • Self-reviewed each resolved package delta and upstream fixes.
  • Cross-platform and SSH/remote compatibility considered.
  • No upstream skill-installer code or assets copied (agent skill upstream boundary is not applicable).
  • Supported-platform and database-backed CI complete.

@OrcaWin

OrcaWin commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator Author

Validation evidence — commit 25580ed3f5161517e23e9c4f7daeba20c6957be4

Reviewed the completed Cloud Verify run, including its test logs, rather than treating skipped root-workspace jobs as coverage.

  • Build passed on Linux/Node 24 for the independent cloud workspace.
  • PostgreSQL-backed tests passed with PostgreSQL 16 and ORCA_RELAY_TEST_POSTGRES_URL set. Relay: 72 files / 632 tests passed, including the database cases skipped on the local machine.
  • Fence broker: 16 passed; relay contract: 23 passed; relay ops: 95 passed; pretest scripts: 153 passed; subsequent operations/deployment script tests: 536 passed. Total: 1,455 passing tests, no relay database skips.
  • Secret scan and Terraform validation passed. Root PR verification also passed; root desktop tests are correctly skipped for this cloud-only change.
  • Previous local evidence: frozen install, build, typecheck, 1,358 tests passed / 95 skipped, and independent cloud audit 9 → 0 findings. CI now covers the PostgreSQL gap.

The source/lockfile still changes exactly Hono, its 1.x Node adapter, ws, PostCSS and nanoid. Runtime schemas, auth rules and wire opcodes are unchanged. HTTP/WebSocket black-box, reconnect and database tests exercise the changed consumers. No production deployment, infrastructure mutation or live customer traffic was used for testing.

Ready for code review. Normal branch protection and reviewer approval still apply; no claim of zero regression risk or production load-canary coverage.

@OrcaWin
OrcaWin marked this pull request as ready for review September 7, 2026 22:35
@OrcaWin
OrcaWin requested a review from Jinwoo-H as a code owner September 7, 2026 22:35
@coderabbitai

coderabbitai Bot commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Team

Run ID: 7834cb74-78af-4126-91d0-c9ed06ec56eb

📥 Commits

Reviewing files that changed from the base of the PR and between d0506bf and 25580ed.

⛔ Files ignored due to path filters (1)
  • cloud/pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (3)
  • cloud/apps/relay-fence-broker/package.json
  • cloud/apps/relay-ops/package.json
  • cloud/apps/relay/package.json

Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.


📝 Walkthrough

Walkthrough

Updated @hono/node-server from ^1.19.14 to ^1.19.17 and hono from ^4.12.27 to ^4.13.7 in three relay applications. Updated ws from ^8.18.3 to ^8.21.3 in the relay application.

Merge Risk: ⚪ Minimal · up to 25580

This updates cloud relay HTTP and WebSocket dependencies within existing major-version compatibility. The dependency resolutions are synchronized and reported cloud build, database-backed relay, security, and infrastructure validation passed, leaving no actionable current-head merge risk.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description provides detailed change rationale, validation results, visual-proof status, testing limits, and review information. However, it does not provide the required linked issue, and the tem… Add a valid linked issue reference in the required format, such as Fixes #123``. Add the required Notes and Checklist sections, or explicitly document their applicable items and completion status.
✅ Passed checks (4 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly summarizes the dependency hardening across cloud HTTP, WebSocket, and build components. It is concise and related to the main changes.
Full details: Description check

Explanation

The description provides detailed change rationale, validation results, visual-proof status, testing limits, and review information. However, it does not provide the required linked issue, and the template's Notes and Checklist sections are not fully represented.

  • Fix all pre-merge checks with AI

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

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

@pullfrog pullfrog 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.

✅ No new issues found.

Reviewed changes

  • Dependency floors — @hono/node-server ^1.19.14 → ^1.19.17 and hono ^4.12.27 → ^4.13.7 across all three cloud apps, plus ws ^8.18.3 → ^8.21.3 in cloud/apps/relay.
  • Lockfile regeneration — cloud/pnpm-lock.yaml reflects exactly the five resolved-package deltas (hono, @hono/node-server, ws, and transitively postcss/nanoid), with no unrelated resolver churn and no new native packages, overrides, or lifecycle scripts.

The change is lockfile/manifest-only with no application-code surface. I verified the two runtime-relevant bumps against actual usage:

  • hono 4.13.x: the only wildcard-routing change is the RegExpRouter fix in 4.13.4, which narrows to suffix/param edge cases this repo does not use; app.use('/v1/admin/*') (relay) and app.use('*') (relay-ops) are unaffected, and the cell-heartbeat/cell-rehome-status early-next() bypass semantics are unchanged. context.req.json() is never called on an already-consumed body. @hono/node-server 1.19.14→1.19.17 is CI/publishing-only (createAdaptorServer/serve are fetch-only here; WebSockets go through the raw ws upgrade handler regardless).
  • ws 8.21.0→8.21.3: all three WebSocketServers in relay-server.ts set explicit maxPayload and perMessageDeflate: false, so the default-limit reduction and deflate-negotiation fix are the defense-in-depth the PR describes rather than a changed connect path.

Pullfrog  | View workflow run | Using DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

@OrcaWin

OrcaWin commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator Author

Additional combined-candidate validation (local, macOS arm64): merged #19361, #19369, #19377, #19378, #19362, #19380 and #19382 into local commit a610eca2303d94ad02199240c0d3afc11bc1757f. Blocked Tiptap #19376 is excluded. This supplements each PR's own exact-commit tests; it does not replace pending CI.

  • Combined frozen-lockfile install, full pnpm tc and pnpm run build:electron-vite: passed.
  • Existing editor + renderer i18n suites: 1,581 passed, 2 skipped; 227 files passed, 1 skipped.
  • 11 parser/query/URI/selector/plist/XML/browser-target/ID assertions: passed.
  • 5 real React Trans rendering/interpolation/language-switch assertions: passed.
  • 6 real headless Chrome sanitizer assertions on the combined installed DOMPurify: passed.
  • Actual combined Electron 43.6.0 / Node 24.20.0: native SQLite read/write, patched PTY spawn/output/exit and filesystem watcher event all passed.

All commands used ORCA_BACKGROUND_LAUNCH=1; no visible app window was opened. The only merge conflict was adjacent package.json entries: resolve by retaining both "dompurify": "3.4.14" and "electron": "43.6.0". Lockfiles merged automatically and the combined frozen install verified consistency. Leaf PR branches remain independent and unchanged; nothing has been merged into main.

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.

1 participant