Repository navigation
Activate Node auth middleware and CA startup under src - #34
Merged
Merged
Conversation
ThatXliner
added a commit
that referenced
this pull request
Nov 8, 2026
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.
Put the existing auth middleware and CA startup hook beside
src/app, where Next.js 15 actually discovers them. The project-root files were ignored by the compiler. Run auth middleware on the supported Node runtime and install the existing eMudhra default-CA filter before Supabase client creation/session HTTPS. Cookie handling, matcher, and application UI source are unchanged.Verification: focused strict TypeScript check passes. The production build emits both Node middleware and instrumentation bundles, compiles successfully, and then stops at the same existing invalid
matches/page.tsxexport. No new type/build error was introduced.Both compiled hooks were executed independently on unpatched Node 24.22.0. Each removes the affected default root without a test-side filter call, rejects both incident chains through real fetch, and accepts example.com HTTPS. The compiled middleware returns its expected passthrough response, includes Node TLS and
runtime: nodejs, and is absent from the Edge middleware manifest.Live deployment remains blocked by unavailable access to the established Team3256 Vercel scope. This PR does not claim deployed TLS verification.
The emitted middleware also executes its actual Supabase
getUserHTTPS path using a synthetic local session cookie. A test-only native-fetch wrapper verifies the CA is already removed and that both outgoing credentials are dummy, then forwards only that fixed auth GET to the fixed incident hosts or example.com. Both bad chains reject and good HTTPS is accepted. No real Supabase account or project credentials are used.