Dynamically set ECH configuration

未关闭
#3,119 7 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
冷清
技术栈
rust

调研方向

从 ClientConfig 和 ConfigBuilder::with_ech 开始,然后追踪现有的 TLS 版本约束是如何表示和验证的。比较公开 ech_mode 与添加 ClientConfig 方法这两种方案;当构造出的配置能够安全地接收 ECH 设置(包括 issue 中描述的不支持的 TLS 版本情况)时,即视为完成。

由索引模型根据 Issue 内容生成。

描述

Checklist

  • I've searched the issue tracker for similar requests

Is your feature request related to a problem? Please describe.
While it is possible to enable ECH with the ConfigBuilder::with_ech method, once a ClientConfig has been constructed, that configuration cannot be changed. I have opened an issue over at seanmonstar/reqwest#3035 and this inability of dynamically providing an ECH configuration (dynamically as in with a ClientConfig struct) is currently preventing us from supporting ECH, since in reqwest, a HTTP Client may be used for connections to URLs with different domains.

Describe the solution you'd like
Publicly expose the ech_mode field of the ClientConfig struct (may not be possible due to ECH requiring a TLS version of 1.3 or newer and this might conflict with any previously-defined configuration)

Describe alternatives you've considered
Create a new method for ClientConfig that sets the ech_mode private field of the struct, raising an error if the ClientConfig uses an unsupported TLS version (< 1.3).

Additional context
Related reqwest issue: seanmonstar/reqwest#3035

主要语言
Rust
星标
7.7k
派生
947
平均合并
3 天 11 小时
30 天内合并 PR
46

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

rustls/rustls 的其他 Issue

查看 rustls/rustls 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。