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

推荐订阅源

钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
大猫的无限游戏
大猫的无限游戏
月光博客
月光博客
Last Week in AI
Last Week in AI
腾讯CDC
The Cloudflare Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
MyScale Blog
MyScale Blog
博客园 - Franky
MongoDB | Blog
MongoDB | Blog
I
InfoQ
雷峰网
雷峰网
人人都是产品经理
人人都是产品经理
Blog — PlanetScale
Blog — PlanetScale
Y
Y Combinator Blog
H
Help Net Security
T
Tailwind CSS Blog
美团技术团队
aimingoo的专栏
aimingoo的专栏
博客园 - 三生石上(FineUI控件)
云风的 BLOG
云风的 BLOG
Google DeepMind News
Google DeepMind News
P
Proofpoint News Feed

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): redact URL query secrets · openclaw/opencla...
steipete · 2026-04-27 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -556,7 +556,7 @@ describe("diagnostic support export", () => {

556556

const cases = [

557557

[

558558

"connect wss://support-user:support-password@gateway.example/ws?token=short-token&ok=1",

559-

"connect wss://<redacted>:<redacted>@gateway.example/ws?token=<redacted>",

559+

"connect wss://<redacted>:<redacted>@gateway.example/ws?token=<redacted>&ok=1",

560560

],

561561

[

562562

"connect https://gateway.example/ws?access-token=short-token",

Original file line numberDiff line numberDiff line change

@@ -134,6 +134,24 @@ describe("redactSensitiveText", () => {

134134

expect(output).toBe(input);

135135

});

136136
137+

it("masks sensitive URL query params while preserving non-sensitive params", () => {

138+

const input = "GET /_matrix/client/v3/sync?access_token=abcdef1234567890ghij&since=123";

139+

const output = redactSensitiveText(input, {

140+

mode: "tools",

141+

patterns: defaults,

142+

});

143+

expect(output).toBe("GET /_matrix/client/v3/sync?access_token=abcdef…ghij&since=123");

144+

});

145+
146+

it("treats sensitive URL query param names case-insensitively", () => {

147+

const input = "connect https://gateway.example/ws?Access-Token=short-token&ok=1";

148+

const output = redactSensitiveText(input, {

149+

mode: "tools",

150+

patterns: defaults,

151+

});

152+

expect(output).toBe("connect https://gateway.example/ws?Access-Token=***&ok=1");

153+

});

154+
137155

it("redacts private key blocks", () => {

138156

const input = [

139157

"-----BEGIN PRIVATE KEY-----",

Original file line numberDiff line numberDiff line change

@@ -14,6 +14,9 @@ const DEFAULT_REDACT_PATTERNS: string[] = [

1414

// ENV-style assignments. Keep this case-sensitive so diagnostics like

1515

// `Unrecognized key: "llm"` do not lose the actual config key.

1616

String.raw`/\b[A-Z0-9_]*(?:KEY|TOKEN|SECRET|PASSWORD|PASSWD)\b\s*[=:]\s*(["']?)([^\s"'\\]+)\1/g`,

17+

// URL query parameters. Keep this separate from ENV-style assignments so

18+

// lower-case URL secrets stay redacted without hiding config-key diagnostics.

19+

String.raw`/[?&](?:access[-_]?token|auth[-_]?token|hook[-_]?token|refresh[-_]?token|api[-_]?key|client[-_]?secret|token|key|secret|password|pass|passwd|auth|signature)=([^&\s"'<>]+)/gi`,

1720

// JSON fields.

1821

String.raw`"(?:apiKey|token|secret|password|passwd|accessToken|refreshToken)"\s*:\s*"([^"]+)"`,

1922

// CLI flags.