Repository navigation
Refresh browser ClientHello profiles on Boring 5.6.0 - #7
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
4 open issues
This Markdown table is malformed due to the leading double pipes (||), which renders as an extra… · New Thiscargo testinvocation is not valid:--libis a flag and does not take a trailing test-name… · New tokio_boring::connect(..., "localhost", ...)` is inconsistent with the rest of this test module,… · New The comment on line 523 is misleading: the implementation ultimately rejects trailing bytes/extra… · New
What changed in this PR
Refreshes the opt-in native ClientHello templates on the BoringSSL 5.6.0 line, adds bounded Zstd certificate decompression support (notably for Firefox), and updates REALITY hybrid negotiation/documentation to make hybrid explicitly selectable while keeping classic as default.
Changes:
- Replace retired Chrome133/Firefox120/Safari16 templates with Chrome155/Firefox148/Safari263 across Rust tests, examples, and Python interop probes.
- Add a bounded Zstd certificate decompressor and wire it into the fingerprint connector/profile catalog (plus dev/test coverage).
- Update REALITY hybrid docs and profile documentation to reflect the new profile set and behaviors.
| File | Description |
|---|---|
| tokio-boring/tests/shadow_tls.rs | Updates Tokio ShadowTLS tests to use the refreshed profile variants (Chrome155/Firefox148/Safari263). |
| tokio-boring/tests/selected_fingerprint.rs | Adds TLS behavior tests for new profiles, including ML-DSA signature negotiation and Zstd certificate compression interoperability. |
| tokio-boring/Cargo.toml | Adds zstd as a dev-dependency for Tokio-side tests. |
| tests/interop/shadow_tls_v3.py | Updates interop harness profile strings and HRR case label to new profiles. |
| tests/interop/jls.py | Updates interop harness profile strings to new profiles. |
| docs/reality-hybrid.md | Notes probe now uses Chrome155; tables still reference earlier Chrome133 runs. |
| docs/reality-client.md | Updates REALITY client docs to “named templates” wording and new compatibility notes (Chrome155, etc.). |
| docs/client-fingerprint.md | Rewrites profile documentation to the new catalog and adds notes about Zstd and recent profiles. |
| boring/tests/selected_fingerprint.rs | Replaces older independent-wire checks with new profile assertions and adds TLS floor tests + native ID retirement test. |
| boring/tests/reality.rs | Updates REALITY tests to use new profiles and adds coverage for authenticating when either X25519 group is selected. |
| boring/tests/jls.rs | Updates JLS tests to use the refreshed profiles. |
| boring/src/ssl/reality.rs | Updates docs to reference Chrome155 as an example compatible hybrid-capable profile. |
| boring/src/ssl/mod.rs | Adds a ZSTD certificate compression algorithm identifier constant. |
| boring/src/ssl/fingerprint.rs | Reworks profile catalog (new profiles, trust anchors, TLS1.2 floor), adds Zstd decompressor, and updates compression handling. |
| boring/examples/shadow_tls_v3.rs | Updates example profile parsing to new profile names/variants. |
| boring/examples/reality_hybrid.rs | Updates example to use Chrome155 for the chrome case. |
| boring/examples/jls.rs | Updates example profile parsing to new profile names/variants. |
| boring/Cargo.toml | Adds optional zstd dependency for client-fingerprint feature. |
| boring-sys/patches/client-fingerprint.patch | Updates native patch layer for new profile IDs and behaviors (ECH grease selection, extension ordering, Firefox shared X25519 key, etc.). |
| Cargo.toml | Adds workspace zstd dependency version. |
Review effort: Lite
| | Family | Variants | | ||
| | --- | --- | | ||
| | Chrome | `Chrome120`, `Chrome155` | | ||
| | Firefox | `Firefox148` | | ||
| | Safari | `Safari263` (26.3) | | ||
| | iOS and Android | `Ios14`, `Android11` (OkHttp) | | ||
| | Edge, 360 Browser and QQ | `Edge85`, `ThreeSixty75` (7.5), `Qq111` (11.1) | |
|
|
||
| ```sh | ||
| cargo test -p boring --features reality,client-fingerprint --test client_fingerprint --test selected_fingerprint --test reality --test hkdf | ||
| cargo test -p boring --features client-fingerprint --lib zstd_decoder_ |
| let mut tls = | ||
| tokio_boring::connect(connector.configure(b"\x02h2").unwrap(), "localhost", io) | ||
| .await | ||
| .unwrap(); |
| // Using the slice directly preserves any input after the first frame. | ||
| let mut decoder = zstd::stream::read::Decoder::with_buffer(input)?.single_frame(); | ||
| decoder.window_log_max(MAX_CERTIFICATE_BYTES.ilog2())?; | ||
| io::copy( | ||
| &mut decoder.by_ref().take(MAX_CERTIFICATE_BYTES as u64), | ||
| output, | ||
| )?; | ||
| // At the output limit one more read completes the frame or detects overflow. | ||
| if decoder.read(&mut [0])? != 0 || !decoder.into_inner().is_empty() { | ||
| return Err(io::Error::other( | ||
| "invalid or oversized certificate compression", | ||
| )); | ||
| } |


Summary
Refresh the opt-in native ClientHello templates on the 5.6.0 release line. Add bounded Zstd certificate decompression for Firefox. Keep classic REALITY as the default and make hybrid negotiation explicitly selectable.
Evidence
releasecontains the 5.6.0 upstream merge and the previous browser templates.git diff --checkpassed. The current Vole Core review branch builds with the exact head revision3fd21428. External peer interoperability was not rerun for this PR.Merge Danger
Door Two-way
Blast radius TLS consumers using the opt-in fingerprint feature. Callers of the removed enum variants need to select a current profile.