Skip to content

fix: require Bun 1.4.4 for updated certificate trust - #2

Draft
fgabelmannjr wants to merge 1 commit into
mainfrom
fix/bun-1.4.4-trust
Draft

fgabelmannjr wants to merge 1 commit into
mainfrom
fix/bun-1.4.4-trust

Conversation

@fgabelmannjr

@fgabelmannjr fgabelmannjr commented Oct 22, 2026 •

Copy link
Copy Markdown

What Problem This Solves

Builds and installations can select or accept Bun versions older than the stable certificate-trust update for the eMudhra incident.

User Impact

This proposal is incomplete: the existing pinned fork still carries the incident root and is used by active defaults. The remaining correction is held under the owner’s stable-only policy: no compatible fixed stable fork release has been established.

Official stable Bun paths require 1.4.4 or later. A numerical 1.4.4 fork label does not establish the certificate fix. The shared pinned-fork paths remain affected and must not be treated as remediated. Node runtime requirements remain unchanged. The version floor also applies to the browser native-host entry path.

Why This Change Was Made

Use the existing shared runtime-version owner to enforce the new floor, align active Docker, CI, installation and Crabbox selectors, and update paired diagnostics and documentation. Keep historical references and old-version rejection fixtures intact.

- Minimum and active default Bun: 1.4.3
+ Minimum and active default Bun: 1.4.4

This proposal starts from the exact upstream commit restored to this fork, 3f2d28fa4f6ee41685bfe390e4867bce51091738. It replaces #1; the prior branch is preserved. Main remains unchanged.

Evidence

  • Before: launcher regression cases admit Bun 1.4.3 through the CLI and browser native-host paths.
    After: 16 launcher checks pass, including both old-version rejections and actual official Bun 1.4.4 admission. Fork-label admission tests cover numerical compatibility only. The unchanged pinned fork has now been measured: its authenticated native Darwin ARM64 binary has 121 bundled roots and retains emSign G3. It therefore fails the original incident predicate despite its 1.4.4 label.
  • Actual Docker Bun stage, CI npm-install and authenticated archive-cache paths run Bun 1.4.4 at revision 38afee6c8. Their nonempty bundled certificate inventories omit the incident G3 and AAA roots.
  • The passing result applies to the official stable binary only. The existing fork is selected by local source/test/formatting defaults and desktop runtime packaging; this proposal does not yet close those paths. Its exact revision is ef37c31de3d3c5c59243bba51d420f9efda9d689.
  • Stable-fork hold: all 36 published fork releases report canary-qualified bun --revision values, including the newest published release. No non-canary replacement was established from that inventory. Direct release-manifest retrieval was blocked; the revision evidence comes from public release bodies and the versioned release producer, not a new binary execution.
  • A stock stable swap cannot preserve the documented runtime contract: stable source lacks the fork’s Terminal pause/resume and all-POSIX inherited-descriptor handling. Existing Node-helper fallbacks do not establish native bundle equivalence. Other retained fork/WebKit behaviors remain unqualified.
  • Before repinning, require a compatible authenticated stable fork across all six shared targets, nonempty G3/AAA absence checks on replacement binaries, and the existing paired CI/Bun-only smoke and macOS runtime/two-binary gates. Advance the shared pin atomically; review the current canary-only installer revision validator when a genuine stable fork becomes available. Preserve the owner’s stable-only hold meanwhile.
  • These are bundled-root observations, not live TLS, OS trust-store or production qualification claims.
  • Passing checks: 469 consumer tests, 90 tooling tests, 70 Docker-installer assertions, two focused Crabbox selectors, four typecheck projects, targeted lint, format, integrity/contract checks and Ripwire quality checks.
  • All 21 remaining Crabbox transport/cancellation/artifact fixture failures reproduce on exact unchanged upstream. No assertions, snapshots or failure baselines were weakened, and no full-suite success is claimed.
  • Canonical independent Opus xhigh review is scoped-clean for P0/P1. It explicitly approved restoration of three historical lifecycle fixtures; the committed diff matches the reviewed proposal byte for byte.

Merge Danger

Door: Two-way.

Blast Radius: Runtime.

Reverting the source restores the previous selectors and floor. Existing installations need a Bun upgrade; this PR does not update installed machines or publish packages/images. Keep the PR in draft; broad CI, enforced reviews and any release or production procedures remain separate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant