Option to set TLS domain name and :authority origin (client behind a tunnel/proxy)
@inamdarmihir 已经在做这个了。
开始于 2026年10月26日。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 48/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- rust
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- Rust
- 星标
- 425
- 派生
- 89
- 平均合并
- 2 小时 48 分钟
- 30 天内合并 PR
- 3
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
qdrant/rust-client 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 55/100
qdrant/rust-client#320 ·
-
upsert_points deep-clones the whole request on every call, not only on retry可能重新可做 @NullSense 于 7 天前认领,目前没有进行中的 PR。 未关闭
难度 4/5 3-5 天 新手友好度 35/100
qdrant/rust-client#316 · 3 条评论 ·
-
enhancement
难度 5/5 一周以上 新手友好度 38/100
qdrant/rust-client#289 ·
-
难度 3/5 1-2 天 新手友好度 30/100
qdrant/rust-client#272 · 2 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 25/100
qdrant/rust-client#267 · 1 条评论 · 2 个 reaction ·
查看 qdrant/rust-client 的全部 Issue
相似的 Issue
-
app bug session
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
marketing
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
bug
难度 1/5 1 小时以内 新手友好度 92/100
维护者通常 1 天内回复
-
macOS autosubmit enable passes unsupported --wait to launchctl bootout可能已有人在做 @iqdoctor 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
junhoyeo/tokscale#1713 · 3 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复