Skip to content

fix(tls): enforce current trust before session resumption - #213

Merged
joshavant merged 2 commits into
mainfrom
claude/emudhra-session-blocklist-20261026
Oct 26, 2026
Merged

joshavant merged 2 commits into
mainfrom
claude/emudhra-session-blocklist-20261026

Conversation

@joshavant

@joshavant joshavant commented Oct 26, 2026 •

Copy link
Copy Markdown

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 + WebKit b82bc917e99110b61c3a21202d6def7457aa194c pair. 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:

  • Before the repair, persisted actual incident TLS1.2 sessions resumed as authorized in the published fork; focused owning TLS1.2/1.3 regressions failed (8 failures, 2 compatibility passes). Client and server/mTLS QUIC probes independently reproduced delivery of blocked early bytes. Owning QUIC regressions fail before and pass after the repair.
  • Canonical bun bd --webkit=local --lto=off -j4 test gate, 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 SHA256 d4b9fd7a5b79ced0acc7cb2ad597f518b77dfd32593cb051559e6c8977bf3fd7.
  • Final local release-mode owning TLS + QUIC suites: 49 passed, 0 failed, 3,722 assertions. Legitimate 0-RTT stream/datagram and client-auth conformance controls pass.
  • Final rebuilt artifact: all 42 actual incident-chain probes reject with CERT_REVOKED across 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.
  • Final actual QUIC client and mTLS probes refuse blocked identity with zero blocked server receipts while legitimate 0-RTT remains accepted. A distinct previously trusted mTLS client recovers on the same server/policy without resetting policy state.
  • Actual installed OpenClaw OpenAI HTTPS streaming transport: private-CA request succeeds, actual incident chain rejects with native CERT_REVOKED, then legitimate HTTPS succeeds using retained history without clearing retry/cooldown policy.
  • Fresh complete independent P0–P3 review: scoped-clean, no actionable findings. git diff --check passes. 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 cebbfd55168d21df9e44df372aab75b870763c44 adds 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.

@autofix-troubleshooter

Copy link
Copy Markdown

Hi! I'm the autofix logoautofix.ci troubleshooter bot.

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! 😃

@joshavant
joshavant merged commit 191755e into main Oct 26, 2026
11 checks passed
@joshavant
joshavant deleted the claude/emudhra-session-blocklist-20261026 branch October 26, 2026 19:52
vincentkoc added a commit that referenced this pull request Oct 27, 2026
* commit '191755ec115ece3dd642eba3cb0143cecb5e5d7a':
  fix(tls): enforce current trust before session resumption (#213)
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.

2 participants