PROXY v2 fingerprint/mTLS forwarding: end-to-end integration test against the real Harper consumer

未关闭
#29 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
冷清
技术栈
rust

调研方向

首先检查 symphony 现有的 test:integration harness 和 README 中的 PROXY v2 文档,然后确认 #27 和 HarperFast/harper#1858 中的前置条件。添加一个真正的 Harper 集成,涵盖 TLS/mTLS、HTTP 和 MQTT、转发证书认证以及 JA3/JA4 指纹;完成意味着完整的 wire contract 已得到端到端验证。

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

描述

Follow-up from @hdbjeff's review on #23 (documentation/assurance point) and the mTLS forwarding work in #27.

What's missing

Symphony's PROXY v2 TLV emission (JA3 0xE0 / JA4 0xE1 fingerprints, and mTLS client-cert chain 0xE2 + SSL/authority/ALPN TLVs from #27) is currently covered only by symphony-side encoder tests — we assert the bytes symphony writes, not that the intended consumer reads them correctly.

The consumer is Harper, whose PROXY v1/v2 decoder lands in HarperFast/harper#1858 (shared decoder + withProxyProtocol for MQTT/raw sockets, synthesized getPeerCertificate). The two sides agree on a wire contract (TLV type numbers, SSL verify semantics, DER-leaf-first chain ordering) that nothing tests jointly.

Proposed

Once symphony #27 and harper #1858 both merge, add an integration test that:

  1. Stands up a real Harper instance behind symphony (TLS termination + mTLS on a route with sourceAddressHeader: 'proxyProtocolV2').
  2. Connects a client with a CA-signed client cert.
  3. Asserts Harper authenticates the request via the forwarded cert (HTTP and MQTT paths) and sees the correct fingerprint — i.e. the full wire contract round-trips.

This belongs wherever the cross-repo harness lives (symphony's test:integration already pulls Harper as a dev-dep, or a harper-side integration test). Documenting the expected consumer / trust boundary / TLV encoding in the README (partially done in #27) is the lighter-weight half of the same ask.

Blocked on: #27, HarperFast/harper#1858.

🤖 Filed by Claude Fable 5 on Kris's behalf

主要语言
Rust
星标
1
派生
0
平均合并
19 小时 12 分钟
30 天内合并 PR
13

环境准备

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

从这里开始

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

HarperFast/symphony 的其他 Issue

查看 HarperFast/symphony 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

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