Skip to content

feat: 增加 Trace 导出脱敏与重放 - #34

Merged
CSJ608 merged 1 commit into
mainfrom
feat-trace-tools
Aug 29, 2026
Merged

CSJ608 merged 1 commit into
mainfrom
feat-trace-tools

Conversation

@CSJ608

@CSJ608 CSJ608 commented Aug 29, 2026

Copy link
Copy Markdown
Owner

概要

  • 新增独立 SecsFrame.Trace 程序集和版本化 SecsFrame-Trace/1 文本信封
  • 导出已解码数据消息的 UTC 时间、方向、可选 Session ID/System Bytes 与 SML
  • 按 S/F 和 Item List 路径执行严格结构化替换脱敏
  • 通过显式 allowlist 只重放 Sent 记录,并始终使用公共发送 API 创建新事务
  • 明确不接管单消费者事件流、不复用旧标识、不自动脱敏或推断业务安全

验证

  • dotnet build SecsFrame.slnx -c Release
  • dotnet test SecsFrame.slnx -c Release --no-build
  • SecsFrame.Tests: 229/229(net8.0、net10.0、net48)
  • 官方 nuget.org Secs4Net 3.1.0 互操作: 2/2(net8.0、net10.0)
  • Trace 专项覆盖黄金向量、畸形信封、资源限制、脱敏泄漏、预验证、取消与真实 TCP 新事务

边界

当前 Trace 只处理已解码 Data Message,不是原始抓包器。控制帧、结构化诊断、故障原始样本和原时序回放保留为后续扩展。

@CSJ608
CSJ608 merged commit bd6d446 into main Aug 29, 2026
4 checks passed
@CSJ608
CSJ608 deleted the feat-trace-tools branch August 29, 2026 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant