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分
- マージ済み PR(30日)
- 3
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
qdrant/rust-client#316 · コメント 3 件 ·
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 38/100
qdrant/rust-client#289 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
qdrant/rust-client#272 · リアクション 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
qdrant/rust-client#267 · コメント 1 件 · リアクション 2 件 ·
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 日以内に返信