Repository navigation
fix(tls): enforce current trust before session resumption - #213
Merged
Merged
Conversation
|
Hi! I'm the It looks like you correctly set up a CI job that uses the autofix.ci GitHub Action, but the autofix.ci GitHub App has not been installed for this repository. This means that autofix.ci unfortunately does not have the permissions to fix this pull request. If you are the repository owner, please install the app and then restart the CI workflow! 😃 |
vincentkoc
added a commit
that referenced
this pull request
Oct 27, 2026
* commit '191755ec115ece3dd642eba3cb0143cecb5e5d7a': fix(tls): enforce current trust before session resumption (#213)
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.
What does this PR do?
Re-check current trust and blocked-key policy when a TLS session resumes. The existing fork rejected the incident chains on full handshakes, but persisted sessions could restore earlier authorization; QUIC saved sessions could also send or accept early data before the changed policy was enforced.
Use the existing certificate/blocklist owner for resumed TLS verdicts and saved-session admission. Client QUIC tickets are checked before
lsquic_engine_connect; authenticated server sessions are checked before early-data keys. The HTTP/3 custom-verification context also requests re-verification on resume. Legitimate 0-RTT remains enabled; current CA/hostname checks, manual-verification diagnostics and unused peer-certificate compatibility remain covered.No WebKit/dependency pin, public option, persistent state or workflow changes. This repairs the current
eb34581b9be63a348d40eaf93e021336cf75237d+ WebKitb82bc917e99110b61c3a21202d6def7457aa194cpair. It does not publish a runtime or update downstream consumers.How did you verify your code works?
Native macOS ARM64 in an isolated task-owned UTM guest:
bun bd --webkit=local --lto=off -j4 testgate, default debug ASAN, exact existing WebKit pin built from source: 49 passed, 0 failed, 3,722 assertions. No sanitizer override or WebKit rebase. Debug artifact SHA256d4b9fd7a5b79ced0acc7cb2ad597f518b77dfd32593cb051559e6c8977bf3fd7.CERT_REVOKEDacross default, explicit fetch CA and proxy/explicit CA modes. Each mode's legitimate public/private HTTPS controls succeed and wrong-hostname control rejects. The 14 endpoints collectively cover six blocked TLS intermediate keys; the other two code-signing entries are not live-TLS qualification.CERT_REVOKED, then legitimate HTTPS succeeds using retained history without clearing retry/cooldown policy.git diff --checkpasses. Simplification pass retained the single existing trust owner and no new state/manager.Exact release-mode proof artifact SHA256:
fc1812dd5829db82cc12f4aac76225a6bb004d87156068005512f323026625e1; final source patch SHA256:1d6e0e464b0d1234b9af35aafa9693664579cc3677da8d4354eea62996b4ece6. This local proof artifact is not a published/signed release.Limits: native ARM64 evidence does not establish other release platforms, imported macOS OS-store modes, deployed-fleet delivery or future-release provenance. The mTLS server's pre-key rejection gives its peer a generic TLS alert80 rather than certificate-specific guidance. Actual incident ticket comparisons demonstrate blocked connectivity with valid offered sessions, while a failed socket's post-error resumption flag does not independently prove its internal resumption state; owning hermetic tests cover that distinction. PR CI/review results must be assessed on the final head before a merge decision.
Final head
cebbfd55168d21df9e44df372aab75b870763c44adds only the exact import-order correction reported by Format run40282247430. Its autofix app is not installed, so the independently reviewed correction was pushed manually. Required native debug/ASAN owning replay passed49/49 after this change; production inputs and both proof binaries are unchanged. Final-head hosted checks are pending and must be assessed separately.