Repository navigation
feat(transport): browser impersonation and client certificate support - #8
Merged
Merged
Conversation
Replace official OkHttp with impersonator-okhttp so HTTP/HTTPS and WebSocket connections can present a browser-like TLS/JA3/JA4 and HTTP/2 fingerprint. Impersonation is opt-in through a switch plus a profile (MAC_CHROME by default), and the core and loader clients are built from the same Shell.clientConfig. Add mutual TLS support: clientCertificate (Base64 PKCS#12) and clientCertificatePassword are applied on both the plain and impersonated paths. The shell form gains the switch, the profile select, a .p12/.pfx upload and a certificate password field. Bump mockwebserver3 to 5.5.0 to match the OkHttp version the fork is based on; 5.3.2 calls a Platform.configureTlsExtensions signature that no longer exists there, which broke HTTPS tests.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Document the licenses of the distributed Java runtime and web production dependency sets. The LGPL-3.0 (impersonator) and GPL-3.0 (class-obf) components are called out with their compliance steps and license texts. @fancyapps/ui is a paid-license package that no first-party code imports, so remove it instead of carrying a commercial dependency.
ReaJason
force-pushed
the
transport-impersonator-analysis
branch
from
November 7, 2026 01:22
b3dc4a5 to
7ecebf6
Compare
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #8 +/- ##
============================================
+ Coverage 53.02% 54.05% +1.02%
- Complexity 554 560 +6
============================================
Files 109 109
Lines 3170 3193 +23
Branches 397 400 +3
============================================
+ Hits 1681 1726 +45
+ Misses 1241 1216 -25
- Partials 248 251 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This branch was successfully deployed
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.
Summary
impersonator-okhttpso HTTP/HTTPS and WebSocket connections can present a browser-like TLS/JA3/JA4 and HTTP/2 fingerprint.MAC_CHROMEby default), configurable from the shell form. Core and loader clients are built from the sameShell.clientConfig.clientCertificate(Base64 PKCS#12) andclientCertificatePassword, applied on both the plain and impersonated TLS paths. The shell form gains a.p12/.pfxupload, a remove button and a password field.mockwebserver3to 5.5.0 to match the OkHttp version the fork is based on. 5.3.2 calls aPlatform.configureTlsExtensionssignature that no longer exists, which broke HTTPS tests.THIRD-PARTY-NOTICES.mdplus LGPL-3.0 / GPL-3.0 texts, and remove the unused paid-license@fancyapps/uidependency.Notes
impersonator-okhttp/impersonator-bctlsare LGPL-3.0.THIRD-PARTY-NOTICES.md§1 records the notice, license texts, corresponding sources and rebuild/replace steps.class-obf(GPL-3.0) arrives transitively from the memshellparty core;THIRD-PARTY-NOTICES.md§2 describes the options before redistributing binaries.skipSslVerifybehaves as before.Test plan
./gradlew :noone-transport:test— all pass except two pre-existing Dubbo tests that require external providers./gradlew :noone-server:test --tests '*ClientFactoryCompatTest'bun run fmt,bun run typecheck,bun run lintbun run test:run— 84 tests passbun run build