惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

IT之家
IT之家
The GitHub Blog
The GitHub Blog
F
Fortinet All Blogs
Last Week in AI
Last Week in AI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
L
LangChain Blog
爱范儿
爱范儿
博客园_首页
Stack Overflow Blog
Stack Overflow Blog
MongoDB | Blog
MongoDB | Blog
博客园 - 三生石上(FineUI控件)
大猫的无限游戏
大猫的无限游戏
宝玉的分享
宝玉的分享
GbyAI
GbyAI
H
Help Net Security
A
About on SuperTechFans
Recent Announcements
Recent Announcements
Hugging Face - Blog
Hugging Face - Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
雷峰网
雷峰网
D
Docker
博客园 - Franky
有赞技术团队
有赞技术团队
G
Google Developers Blog

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(logging): add redaction patterns for Tencent Cloud, A...
gavyngong · 2026-05-01 · via Recent Commits to openclaw:main

@@ -223,6 +223,51 @@ describe("redactSensitiveText", () => {

223223

expect(output).toContain("OPENAI_API_KEY=sk-123…cdef");

224224

});

225225226+

it("masks Tencent Cloud SecretId (AKID prefix, uppercase-only)", () => {

227+

const input = "SecretId is AKIDZ8EXAMPLEFAKE01KEY99TEST";

228+

const output = redactSensitiveText(input, {

229+

mode: "tools",

230+

patterns: defaults,

231+

});

232+

expect(output).toBe("SecretId is AKIDZ8…TEST");

233+

});

234+235+

it("masks Tencent Cloud SecretId with mixed-case characters", () => {

236+

const input = "AKIDz8exampleFake01Key99Test";

237+

const output = redactSensitiveText(input, {

238+

mode: "tools",

239+

patterns: defaults,

240+

});

241+

expect(output).toBe("AKIDz8…Test");

242+

});

243+244+

it("masks Alibaba Cloud AccessKey ID (LTAI prefix)", () => {

245+

const input = "AccessKeyId=LTAI5tExampleFakeKeyXyz9";

246+

const output = redactSensitiveText(input, {

247+

mode: "tools",

248+

patterns: defaults,

249+

});

250+

expect(output).toBe("AccessKeyId=LTAI5t…Xyz9");

251+

});

252+253+

it("masks HuggingFace tokens (hf_ prefix)", () => {

254+

const input = "hf_ABCDEFghijklmnopqrstuv";

255+

const output = redactSensitiveText(input, {

256+

mode: "tools",

257+

patterns: defaults,

258+

});

259+

expect(output).toBe("hf_ABC…stuv");

260+

});

261+262+

it("masks Replicate tokens (r8_ prefix)", () => {

263+

const input = "r8_ABCDEFghijklmnopqrstuv";

264+

const output = redactSensitiveText(input, {

265+

mode: "tools",

266+

patterns: defaults,

267+

});

268+

expect(output).toBe("r8_ABC…stuv");

269+

});

270+226271

it("skips redaction when mode is off", () => {

227272

const input = "OPENAI_API_KEY=sk-1234567890abcdef";

228273

const output = redactSensitiveText(input, {