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

推荐订阅源

Engineering at Meta
Engineering at Meta
Microsoft Azure Blog
Microsoft Azure Blog
I
InfoQ
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
人人都是产品经理
人人都是产品经理
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
T
Tailwind CSS Blog
MongoDB | Blog
MongoDB | Blog
Google DeepMind News
Google DeepMind News
WordPress大学
WordPress大学
量子位
美团技术团队
大猫的无限游戏
大猫的无限游戏
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Last Week in AI
Last Week in AI
博客园 - 司徒正美
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
小众软件
小众软件
C
Check Point Blog
博客园 - 三生石上(FineUI控件)
N
Netflix TechBlog - Medium
Recent Announcements
Recent Announcements
有赞技术团队
有赞技术团队
月光博客
月光博客

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(security): harden CodeQL secret ref validation · open...
vincentkoc · 2026-04-28 · via Recent Commits to openclaw:main

@@ -4,7 +4,9 @@ import { validateConfigObjectRaw } from "../config/validation.js";

44

import { SecretRefSchema as GatewaySecretRefSchema } from "../gateway/protocol/schema/primitives.js";

55

import { buildSecretInputSchema } from "../plugin-sdk/secret-input-schema.js";

66

import {

7+

INVALID_FILE_SECRET_REF_IDS,

78

INVALID_EXEC_SECRET_REF_IDS,

9+

VALID_FILE_SECRET_REF_IDS,

810

VALID_EXEC_SECRET_REF_IDS,

911

} from "../test-utils/secret-ref-test-vectors.js";

1012

import {

@@ -13,7 +15,7 @@ import {

1315

TALK_TEST_PROVIDER_ID,

1416

} from "../test-utils/talk-test-provider.js";

1517

import { isSecretsApplyPlan } from "./plan.js";

16-

import { isValidExecSecretRefId } from "./ref-contract.js";

18+

import { isValidExecSecretRefId, isValidFileSecretRefId } from "./ref-contract.js";

1719

import { materializePathTokens, parsePathPattern } from "./target-registry-pattern.js";

1820

import { canonicalizeSecretTargetCoverageId } from "./target-registry-test-helpers.js";

1921

import { listSecretTargetRegistryEntries } from "./target-registry.js";

@@ -39,6 +41,21 @@ describe("exec SecretRef id parity", () => {

3941

return result.ok;

4042

}

414344+

function configAcceptsFileRef(id: string): boolean {

45+

const result = validateConfigObjectRaw({

46+

models: {

47+

providers: {

48+

openai: {

49+

baseUrl: "https://api.openai.com/v1",

50+

apiKey: { source: "file", provider: "default", id },

51+

models: [{ id: "gpt-5", name: "gpt-5" }],

52+

},

53+

},

54+

},

55+

});

56+

return result.ok;

57+

}

58+4259

function planAcceptsExecRef(id: string): boolean {

4360

return isSecretsApplyPlan({

4461

version: 1,

@@ -57,6 +74,17 @@ describe("exec SecretRef id parity", () => {

5774

});

5875

}

597677+

for (const id of [...VALID_FILE_SECRET_REF_IDS, ...INVALID_FILE_SECRET_REF_IDS]) {

78+

it(`keeps config/gateway/plugin parity for file id "${id}"`, () => {

79+

const expected = isValidFileSecretRefId(id);

80+

expect(configAcceptsFileRef(id)).toBe(expected);

81+

expect(validateGatewaySecretRef({ source: "file", provider: "default", id })).toBe(expected);

82+

expect(

83+

pluginSdkSecretInput.safeParse({ source: "file", provider: "default", id }).success,

84+

).toBe(expected);

85+

});

86+

}

87+6088

for (const id of [...VALID_EXEC_SECRET_REF_IDS, ...INVALID_EXEC_SECRET_REF_IDS]) {

6189

it(`keeps config/plan/gateway/plugin parity for exec id "${id}"`, () => {

6290

const expected = isValidExecSecretRefId(id);