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

推荐订阅源

博客园 - 三生石上(FineUI控件)
S
SegmentFault 最新的问题
Jina AI
Jina AI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
IT之家
IT之家
美团技术团队
V
Visual Studio Blog
人人都是产品经理
人人都是产品经理
博客园 - 叶小钗
有赞技术团队
有赞技术团队
GbyAI
GbyAI
宝玉的分享
宝玉的分享
腾讯CDC
M
MIT News - Artificial intelligence
博客园 - 【当耐特】
Google DeepMind News
Google DeepMind News
月光博客
月光博客
MyScale Blog
MyScale Blog
Last Week in AI
Last Week in AI
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 司徒正美
Recent Announcements
Recent Announcements
MongoDB | Blog
MongoDB | 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(secrets): treat Codex app-server marker as non-secret...
vortexopencl · 2026-06-01 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -22,6 +22,7 @@ function cleanPluginManifestEnv(): Record<(typeof PLUGIN_MANIFEST_ENV_KEYS)[numb

2222

}

2323
2424

let listKnownProviderEnvApiKeyNames: typeof import("./model-auth-env-vars.js").listKnownProviderEnvApiKeyNames;

25+

let CODEX_APP_SERVER_AUTH_MARKER: typeof import("./model-auth-markers.js").CODEX_APP_SERVER_AUTH_MARKER;

2526

let GCP_VERTEX_CREDENTIALS_MARKER: typeof import("./model-auth-markers.js").GCP_VERTEX_CREDENTIALS_MARKER;

2627

let NON_ENV_SECRETREF_MARKER: typeof import("./model-auth-markers.js").NON_ENV_SECRETREF_MARKER;

2728

let isKnownEnvApiKeyMarker: typeof import("./model-auth-markers.js").isKnownEnvApiKeyMarker;

@@ -39,6 +40,7 @@ async function loadMarkerModules() {

3940

import("./model-auth-markers.js"),

4041

]);

4142

listKnownProviderEnvApiKeyNames = envVarsModule.listKnownProviderEnvApiKeyNames;

43+

CODEX_APP_SERVER_AUTH_MARKER = markersModule.CODEX_APP_SERVER_AUTH_MARKER;

4244

GCP_VERTEX_CREDENTIALS_MARKER = markersModule.GCP_VERTEX_CREDENTIALS_MARKER;

4345

NON_ENV_SECRETREF_MARKER = markersModule.NON_ENV_SECRETREF_MARKER;

4446

isKnownEnvApiKeyMarker = markersModule.isKnownEnvApiKeyMarker;

@@ -69,10 +71,18 @@ describe("model auth markers", () => {

6971

expect(isNonSecretApiKeyMarker(resolveOAuthApiKeyMarker("chutes"))).toBe(true);

7072

expect(isNonSecretApiKeyMarker("ollama-local")).toBe(true);

7173

expect(isNonSecretApiKeyMarker("lmstudio-local")).toBe(true);

72-

expect(isNonSecretApiKeyMarker("codex-app-server")).toBe(true);

74+

expect(isNonSecretApiKeyMarker(CODEX_APP_SERVER_AUTH_MARKER)).toBe(true);

7375

expect(isNonSecretApiKeyMarker(GCP_VERTEX_CREDENTIALS_MARKER)).toBe(true);

7476

});

7577
78+

it("recognizes the Codex app-server marker without bundled plugin discovery", async () => {

79+

await withEnvAsync({ OPENCLAW_DISABLE_BUNDLED_PLUGINS: "1" }, async () => {

80+

await loadMarkerModules();

81+

expect(isNonSecretApiKeyMarker(CODEX_APP_SERVER_AUTH_MARKER)).toBe(true);

82+

});

83+

await withEnvAsync(cleanPluginManifestEnv(), loadMarkerModules);

84+

});

85+
7686

it("reads bundled plugin-owned non-secret markers from manifests", () => {

7787

const markers = new Set(listKnownNonSecretApiKeyMarkers());

7888

expect(markers.has("codex-app-server")).toBe(true);

Original file line numberDiff line numberDiff line change

@@ -12,6 +12,8 @@ export const OAUTH_API_KEY_MARKER_PREFIX = "oauth:";

1212

export const OLLAMA_LOCAL_AUTH_MARKER = "ollama-local";

1313

/** @deprecated Bundled local-provider marker; do not use from third-party plugins. */

1414

export const CUSTOM_LOCAL_AUTH_MARKER = "custom-local";

15+

/** @deprecated Codex provider-owned marker; do not use from third-party plugins. */

16+

export const CODEX_APP_SERVER_AUTH_MARKER = "codex-app-server";

1517

export const GCP_VERTEX_CREDENTIALS_MARKER = "gcp-vertex-credentials";

1618

export const NON_ENV_SECRETREF_MARKER = "secretref-managed"; // pragma: allowlist secret

1719

export const SECRETREF_ENV_HEADER_MARKER_PREFIX = "secretref-env:"; // pragma: allowlist secret

@@ -23,6 +25,7 @@ const AWS_SDK_ENV_MARKERS = new Set([

2325

]);

2426

const CORE_NON_SECRET_API_KEY_MARKERS = [

2527

CUSTOM_LOCAL_AUTH_MARKER,

28+

CODEX_APP_SERVER_AUTH_MARKER,

2629

OLLAMA_LOCAL_AUTH_MARKER,

2730

NON_ENV_SECRETREF_MARKER,

2831

] as const;