Option to set TLS domain name and :authority origin (client behind a tunnel/proxy)
@inamdarmihir đang làm issue này rồi.
Từ ngày 26/10/2026.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- rust
- Lĩnh vực
- backend-api-design
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Rust
- Star
- 425
- Fork
- 89
- Merge trung bình
- 2 giờ 48 phút
- Pull request đã merge (30 ngày)
- 3
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của qdrant/rust-client
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
qdrant/rust-client#320 ·
-
upsert_points deep-clones the whole request on every call, not only on retryCó thể làm lại được @NullSense đã nhận 7 ngày trước và không có pull request nào đang mở. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
qdrant/rust-client#316 · 3 bình luận ·
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 38/100
qdrant/rust-client#289 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 30/100
qdrant/rust-client#272 · 2 reaction ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
qdrant/rust-client#267 · 1 bình luận · 2 reaction ·
Tất cả issue của qdrant/rust-client
Issue tương tự
-
app bug session
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
marketing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
Maintainer thường phản hồi trong vòng 1 ngày
-
macOS autosubmit enable passes unsupported --wait to launchctl bootoutCó thể đã có người làm @iqdoctor đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
junhoyeo/tokscale#1713 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày