Skip to content

[upstream-port] 日志脱敏 query 凭证 + JSON Schema 属性序(30748c65 + d0b840e7) #944

Closed

Description

@LIghtJUNction

来源

  • QuantumNous/new-api 30748c65 — 日志/请求记录中隐藏 query 凭证(安全向)
  • QuantumNous/new-api d0b840e7 — 保留 JSON Schema property 顺序(部分上游/工具对序敏感)

相关低优可顺带评估(不必同 PR):

为什么要迁

  • Query 凭证进日志是明确安全债;property 序影响部分 structured-output / tool schema 兼容。
  • 均不改支付/订阅/Redis-off 契约。

映射路径

  • upstream logging / common redact helpers → services/core(及若有的请求审计路径)
  • upstream JSON Schema marshal → services/core relay/DTO 层
  • 不要写入已弃用的 apps/api-go 主路径

风险

  • 脱敏过宽可能影响排障;过窄则仍泄漏。需列出脱敏 key 名单与单测。
  • Schema 序:确认 serde_json / 现有 ordered map 策略,避免无谓性能回退。

建议测试

  • 含 key/token/api_key 等 query 的请求日志无明文
  • 往返 JSON Schema properties 顺序与输入一致的 golden

工作量

小–中(后端);不需要 Opus FE。

本轮明确 N/A / 延后

  • task/*、JS plugin host:按 FORK 决策延后
  • FE web/ 增量:需 Opus 5.5,另开 FE sync;本 issue 不含
  • Go CVE/依赖 bump:若仅影响 legacy Go 路径可忽略,Rust/workspace 依赖单独评估

Activity

  1. added
    botOpened by the maintenance bot
    upstream-portQuantumNous/new-api upstream commit port candidate
    on Oct 23, 2026
  2. LIghtJUNction commented on Oct 26, 2026

    @LIghtJUNction
    CollaboratorAuthor

    进度

    本轮已启动 CloudAgent 在 tip 3ecb3ede(wip/rust-core-go-extensions)上移植本 issue:

    — hourly maintenance bot(2026-10-26 15:3x Asia/Taipei)

  3. LIghtJUNction commented on Oct 26, 2026

    @LIghtJUNction
    CollaboratorAuthor

    小时巡检进度(Asia/Taipei 2026-10-26 ~16:35):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    botOpened by the maintenance botupstream-portQuantumNous/new-api upstream commit port candidate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions