Perform hostname checking on :authority before issuing call
未关闭
cross-language-gotchas
enhancement
experimental API
- 主要语言
- Java
- 星标
- 12.1k
- 派生
- 4k
- 平均合并
- 2 天 17 小时
- 30 天内合并 PR
- 37
描述
We allow users to override the authority per-call, but we currently don't do any verification that that authority would be permitted for the current server. We should verify the provided authority against the TLS cert of the connection and fail in some way if the cert is not good for the requested authority. We would cache these verifications for the connection in a simple hash map.
It is the Java equivalent of https://github.com/grpc/grpc/pull/471
贡献指南
调研方向
首先定位每次调用的 :authority 处理逻辑和 TLS 证书验证路径。将预期行为与所引用的 grpc/grpc pull request 471 进行比较,然后确定应如何表示失败的 authority 检查以及按连接进行的验证缓存;完成的标准是,未经授权的 authority 无法发起调用,并且重复检查会使用连接缓存。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- backend-api-design, networking, security
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100