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

推荐订阅源

J
Java Code Geeks
Stack Overflow Blog
Stack Overflow Blog
B
Blog RSS Feed
C
Check Point Blog
D
Docker
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
Google DeepMind News
Google DeepMind News
MongoDB | Blog
MongoDB | Blog
博客园_首页
Apple Machine Learning Research
Apple Machine Learning Research
量子位
有赞技术团队
有赞技术团队
IT之家
IT之家
大猫的无限游戏
大猫的无限游戏
D
DataBreaches.Net
M
MIT News - Artificial intelligence
B
Blog
阮一峰的网络日志
阮一峰的网络日志
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
腾讯CDC
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
V
V2EX
月光博客
月光博客

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: isolate browser proxy routing · openclaw/openclaw@a9...
steipete · 2026-04-25 · via Recent Commits to openclaw:main

@@ -3,7 +3,6 @@ import {

33

matchesHostnameAllowlist,

44

normalizeHostname,

55

} from "openclaw/plugin-sdk/browser-security-runtime";

6-

import { hasProxyEnvConfigured } from "../infra/net/proxy-env.js";

76

import {

87

isPrivateNetworkAllowedByPolicy,

98

resolvePinnedHostnameWithPolicy,

@@ -32,17 +31,26 @@ export class InvalidBrowserNavigationUrlError extends Error {

32313332

export type BrowserNavigationPolicyOptions = {

3433

ssrfPolicy?: SsrFPolicy;

34+

browserProxyMode?: BrowserNavigationProxyMode;

3535

};

363637+

export type BrowserNavigationProxyMode = "direct" | "explicit-browser-proxy";

38+3739

export type BrowserNavigationRequestLike = {

3840

url(): string;

3941

redirectedFrom(): BrowserNavigationRequestLike | null;

4042

};

41434244

export function withBrowserNavigationPolicy(

4345

ssrfPolicy?: SsrFPolicy,

46+

opts?: { browserProxyMode?: BrowserNavigationProxyMode },

4447

): BrowserNavigationPolicyOptions {

45-

return ssrfPolicy ? { ssrfPolicy } : {};

48+

return {

49+

...(ssrfPolicy ? { ssrfPolicy } : {}),

50+

...(opts?.browserProxyMode && opts.browserProxyMode !== "direct"

51+

? { browserProxyMode: opts.browserProxyMode }

52+

: {}),

53+

};

4654

}

47554856

export function requiresInspectableBrowserNavigationRedirects(ssrfPolicy?: SsrFPolicy): boolean {

@@ -109,13 +117,15 @@ export async function assertBrowserNavigationAllowed(

109117

);

110118

}

111119112-

// Browser network stacks may apply env proxy routing at connect-time, which

113-

// can bypass strict destination-binding intent from pre-navigation DNS checks.

114-

// In strict mode, fail closed unless private-network navigation is explicitly

115-

// enabled by policy.

116-

if (hasProxyEnvConfigured() && !isPrivateNetworkAllowedByPolicy(opts.ssrfPolicy)) {

120+

// Browser proxy routing hides the final connect target from this process.

121+

// Only block when the browser profile is known to be proxy-routed; Gateway

122+

// provider proxy env alone is not proof of browser page proxy behavior.

123+

if (

124+

opts.browserProxyMode === "explicit-browser-proxy" &&

125+

!isPrivateNetworkAllowedByPolicy(opts.ssrfPolicy)

126+

) {

117127

throw new InvalidBrowserNavigationUrlError(

118-

"Navigation blocked: strict browser SSRF policy cannot be enforced while env proxy variables are set",

128+

"Navigation blocked: strict browser SSRF policy cannot be enforced while this browser profile is proxy-routed",

119129

);

120130

}

121131

@@ -188,6 +198,7 @@ export async function assertBrowserNavigationRedirectChainAllowed(

188198

url,

189199

lookupFn: opts.lookupFn,

190200

ssrfPolicy: opts.ssrfPolicy,

201+

browserProxyMode: opts.browserProxyMode,

191202

});

192203

}

193204

}