Repository navigation
chore: drop the eMudhra CA filter and incident TLS probes - #35
Merged
Merged
Conversation
PRs #33 and #34 added a server-side filter that removes the four compromised eMudhra roots from Node's default CA store. They also added a CI step and a script that probe the incident hosts. Node 22.23.4, 24.22.1 and 26.12.1, and Vercel's managed Node (22.x is now v22.23.4, 24.x is v24.22.2, 26.x is v26.13.0), no longer ship those roots, so the filter has nothing left to remove. The probe script tests the incident hosts, not this app, and it will break when those hosts go away. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
PRs #33 and #34 added a server-side filter that removes the four compromised eMudhra roots from Node's default CA store. They also added a CI step and a script that probe the incident hosts. Node 22.23.4, 24.22.1 and 26.12.1, and Vercel's managed Node (22.x is now v22.23.4, 24.x is v24.22.2, 26.x is v26.13.0), no longer ship those roots, so the filter has nothing left to remove. The probe script tests the incident hosts, not this app, and it will break when those hosts go away.
What changed
apps/nextjs/security/emudhra-default-ca.mjs.apps/nextjs/src/instrumentation.js: removed the trust-filter call. Sentry setup is unchanged, and the file stays insrc/, where Next 15 finds it (Activate Node auth middleware and CA startup under src #34).apps/nextjs/src/middleware.ts: removed the trust-filter import and call.runtime: "nodejs"and the Supabase cookie handling are unchanged. Activate Node auth middleware and CA startup under src #34 added the Node runtime for this filter, but switching middleware back to Edge is a separate behavior change, so I left it alone.scripts/test-http-security.mjs, thetest:securityandverify:tlsscripts, and the "HTTP security contracts" CI step.scripts/check-node.mjs: kept as the preinstall gate for the Node floor, with the incident wording removed from its error message.engines(^22.23.4 || ^24.22.1 || >=26.12.1) and.nvmrc(22.23.4).Verification
pnpm install --frozen-lockfilepasses, including the preinstall gate and the sherif postinstall.apps/nextjs,next buildcompiles successfully, including middleware and instrumentation. It then stops at the knownsrc/app/matches/page.tsxinvalid default export. That failure is already on main and is recorded in Patch HTTP runtimes and distrust compromised eMudhra CAs #33 and Activate Node auth middleware and CA startup under src #34.🤖 Generated with Claude Code