Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • H holdingk
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • knitting
  • holdingk
  • Merge requests
  • !1680

Merged
Created Oct 06, 2026 by wangzp@wangzpOwner0 of 3 tasks completed0/3 tasks

fix: 业务异常日志脱敏 token、sign 和 security

  • Overview 0
  • Commits 1
  • Changes 2

变更

test_security 已有业务异常请求日志,本 MR 只给敏感字段脱敏。

  • token、sign、signature、security(含 box-token、service-token)留前后各 4 位,短于 8 位打成 ***
  • password、secret、authorization 整段 ***
  • timestamp 和业务字段原样保留

测试

  • 盒子接口抛业务异常时,日志里 box-token / service-token 为 abcd***wxyz
  • query 和 JSON body 里的 password、secret 为 ***
  • timestamp、订单号等业务字段仍是明文
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: hotfix/exception-log-mask