Option to set TLS domain name and :authority origin (client behind a tunnel/proxy)
@inamdarmihir ya está trabajando en esto.
Desde el 26/10/2026.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- rust
- Área
- backend-api-design
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Rust
- Estrellas
- 425
- Forks
- 89
- Merge medio
- 2 h 48 min
- PR fusionados (30 d)
- 3
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de qdrant/rust-client
-
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
qdrant/rust-client#320 ·
-
upsert_points deep-clones the whole request on every call, not only on retryQuizá libre de nuevo @NullSense la tomó hace 7 días y no hay ningún pull request abierto. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
qdrant/rust-client#316 · 3 comentarios ·
-
enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 38/100
qdrant/rust-client#289 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 30/100
qdrant/rust-client#272 · 2 reacciones ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
qdrant/rust-client#267 · 1 comentario · 2 reacciones ·
Todos los issues de qdrant/rust-client
Issues similares
-
app bug session
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
marketing
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
Los mantenedores suelen responder en 1 día
-
macOS autosubmit enable passes unsupported --wait to launchctl bootoutPosiblemente ocupada @iqdoctor la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
junhoyeo/tokscale#1713 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día