Option to set TLS domain name and :authority origin (client behind a tunnel/proxy)
@inamdarmihir is already working on this.
Since Oct 26, 2026.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- rust
- Domain
- backend-api-design
Research direction
Start by reading QdrantConfig, ChannelPool::make_channel, and the tonic 0.14 Endpoint and TLS configuration APIs; compare them with the reported tonic 0.12 behavior. Check the related issues #272 and #271 for current API direction. Done means callers can optionally set the TLS domain and gRPC origin, defaults preserve existing behavior, and TLS verification remains enabled.
Written by the indexing model from the issue text.
Description
Problem
Qdrant builds its tonic channel internally (ChannelPool::make_channel) from QdrantConfig::uri alone. When the client dials a local forward or proxy whose address differs from the server's name — e.g. an SSH tunnel at https://127.0.0.1:50123 in front of qdrant.internal:6334 — two things go wrong:
- TLS name: the certificate is verified against (and SNI is sent for)
127.0.0.1, which a real server certificate doesn't carry, so the handshake fails unless verification is disabled. :authority: HTTP/2 requests carry127.0.0.1:50123, so an ingress / load balancer that routes gRPC on authority can't place them.
There is no caller-side workaround: the client takes no prebuilt Channel and doesn't expose the Endpoint.
Proposal
Two optional fields on QdrantConfig, default None (no behaviour change):
let client = Qdrant::from_url("https://127.0.0.1:50123")
.tls_domain_name("qdrant.internal") // -> ClientTlsConfig::domain_name
.origin("https://qdrant.internal:6334") // -> Endpoint::origin
.build()?;
In make_channel: endpoint.origin(..) when set, and ClientTlsConfig::new().with_native_roots().domain_name(..) for https. Verification is unchanged — only the name it's checked against moves. In tonic 0.12 the two are independent (TLS name = domain_name else URI host; origin only sets :authority).
Relation to #272 / #271
A caller-supplied ClientTlsConfig (#271) would cover (1) via domain_name, but not (2): :authority comes from Endpoint::origin, not the TLS config. An origin option would still be needed alongside it.
We currently carry this as a ~50-line patch on 1.18.0 (fields + ChannelPool::with_server_identity), tested against a real TLS server behind a 2-hop SSH tunnel. Happy to open a PR against the current tonic 0.14 line if this direction is acceptable.
- Dominant language
- Rust
- Stars
- 425
- Forks
- 89
- Avg merge
- 2h 48m
- Merged PRs (30d)
- 3
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from qdrant/rust-client
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
qdrant/rust-client#320 ·
-
upsert_points deep-clones the whole request on every call, not only on retryMay be free again @NullSense claimed this 7 days ago, and no pull request is open. Open
Difficulty 4/5 3-5 days Newbie friendliness 35/100
qdrant/rust-client#316 · 3 comments ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 38/100
qdrant/rust-client#289 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 30/100
qdrant/rust-client#272 · 2 reactions ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
qdrant/rust-client#267 · 1 comment · 2 reactions ·
All issues in qdrant/rust-client
Similar issues
-
app bug session
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
marketing
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 92/100
Maintainers usually reply within 1 day
-
macOS autosubmit enable passes unsupported --wait to launchctl bootoutPossibly taken @iqdoctor claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
junhoyeo/tokscale#1713 · 3 comments ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day