Repository navigation
fix(namespace): build the mTLS REST client with rustls - #9582
Merged
Merged
Conversation
Xuanwo
marked this pull request as ready for review
September 26, 2026 08:37
Contributor
There was a problem hiding this comment.
✅ Gate recommendation: approve.
The REST client now selects rustls, matching the PEM identity it loads and fixing client construction when other dependencies enable reqwest's native default. The focused TLS tests pass with both mixed and rustls-only feature sets.
BubbleCal
approved these changes
Sep 26, 2026
Xuanwo
added a commit
to lancedb/lancedb
that referenced
this pull request
Sep 29, 2026
Updates the Rust workspace dependencies, Cargo lockfile, and Java `lance-core` to [Lance v13.0.0-beta.18](https://github.com/lance-format/lance/releases/tag/v13.0.0-beta.18). It includes lance-format/lance#9574, which bounds the memory an IVF partition split uses when it re-reads raw vectors during `optimize_indices`, and lance-format/lance#9582, which keeps the mTLS REST namespace client on rustls. Lance's new combined-fields FTS query variant (introduced by v13.0.0-beta.17) is handled the same way as in #4336: the remote capability check and Rust/Node bindings accept it, with a regression test for the remote request payload, and the Python conversion reports that this query type is not yet supported. This PR supersedes #4336.
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.
The REST namespace loads its client identity with
reqwest::Identity::from_pem, which only produces a rustls identity.lance-namespace-implsenables only reqwest's rustls features, but when another crate in the same build enables reqwest'sdefault-tls(native-tls), reqwest'sClientBuilderdefaults to native-tls and rejects the identity when the client is built. In the workspace this happens throughlance-examples(viahf-hub's default features), which is why the fourrest::tlstests from #8456 fail in the Linux CI jobs onmain. Downstream builds hit the same thing whenever any dependency pulls in reqwest's default features, and then mTLS stops working.build_clientnow selects rustls explicitly, so the identity and CA certificate are always applied by the backend that parsed them.test_malformed_ca_certificate_is_dropped_on_its_ownno longer requires the malformed CA certificate to be rejected at build time. With native-tls compiled in, reqwest parses the certificate when it is read, so it is dropped at load time instead. The test still checks that the identity survives and that the dropped material is retried.Checked with
cargo test -p lance-namespace-impls -p lance-examples --features lance-namespace-impls/rest --lib reston Linux (4 failures onmain, all pass here) and on macOS, and with--features restalone.