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

推荐订阅源

WordPress大学
WordPress大学
Engineering at Meta
Engineering at Meta
D
DataBreaches.Net
月光博客
月光博客
Recent Announcements
Recent Announcements
Google DeepMind News
Google DeepMind News
U
Unit 42
腾讯CDC
爱范儿
爱范儿
J
Java Code Geeks
有赞技术团队
有赞技术团队
Blog — PlanetScale
Blog — PlanetScale
N
Netflix TechBlog - Medium
B
Blog
Stack Overflow Blog
Stack Overflow Blog
GbyAI
GbyAI
T
The Blog of Author Tim Ferriss
小众软件
小众软件
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Y
Y Combinator Blog
大猫的无限游戏
大猫的无限游戏
Microsoft Azure Blog
Microsoft Azure Blog
T
Tailwind CSS 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 inherited XDG env for exec subprocesses (#85139) · op...
joshavant · 2026-05-22 · via Recent Commits to openclaw:main

@@ -548,6 +548,13 @@ describe("sanitizeHostExecEnv", () => {

548548

AZURE_AUTH_LOCATION: "/tmp/trusted-azure-auth.json",

549549

SSH_AUTH_SOCK: "/tmp/trusted-ssh-agent.sock",

550550

DOCKER_CONTEXT: "trusted-remote",

551+

XDG_CACHE_HOME: "/tmp/trusted-xdg-cache",

552+

XDG_CONFIG_DIRS: "/tmp/trusted-xdg-config-dirs:/etc/xdg",

553+

XDG_CONFIG_HOME: "/tmp/trusted-xdg-config",

554+

XDG_DATA_DIRS: "/tmp/trusted-xdg-data-dirs:/usr/share",

555+

XDG_DATA_HOME: "/tmp/trusted-xdg-data",

556+

XDG_RUNTIME_DIR: "/tmp/trusted-xdg-runtime",

557+

XDG_STATE_HOME: "/tmp/trusted-xdg-state",

551558

VIMINIT: ":!touch /tmp/pwned",

552559

EXINIT: "silent !touch /tmp/pwned",

553560

LUA_INIT_5_4: "os.execute('touch /tmp/pwned')",

@@ -579,6 +586,13 @@ describe("sanitizeHostExecEnv", () => {

579586

expect(env.AZURE_AUTH_LOCATION).toBe("/tmp/trusted-azure-auth.json");

580587

expect(env.SSH_AUTH_SOCK).toBe("/tmp/trusted-ssh-agent.sock");

581588

expect(env.DOCKER_CONTEXT).toBe("trusted-remote");

589+

expect(env.XDG_CACHE_HOME).toBe("/tmp/trusted-xdg-cache");

590+

expect(env.XDG_CONFIG_DIRS).toBe("/tmp/trusted-xdg-config-dirs:/etc/xdg");

591+

expect(env.XDG_CONFIG_HOME).toBe("/tmp/trusted-xdg-config");

592+

expect(env.XDG_DATA_DIRS).toBe("/tmp/trusted-xdg-data-dirs:/usr/share");

593+

expect(env.XDG_DATA_HOME).toBe("/tmp/trusted-xdg-data");

594+

expect(env.XDG_RUNTIME_DIR).toBe("/tmp/trusted-xdg-runtime");

595+

expect(env.XDG_STATE_HOME).toBe("/tmp/trusted-xdg-state");

582596

expect(env.AWS_CONTAINER_CREDENTIALS_FULL_URI).toBeUndefined();

583597

expect(env.AWS_CONTAINER_CREDENTIALS_RELATIVE_URI).toBeUndefined();

584598

expect(env.CONFIG_SITE).toBeUndefined();

@@ -607,7 +621,13 @@ describe("sanitizeHostExecEnv", () => {

607621

TF_PLUGIN_CACHE_DIR: "/tmp/evil-tf-plugin-cache",

608622

CFLAGS: "-I/attacker/include",

609623

LDFLAGS: "-L/attacker/lib",

624+

XDG_CACHE_HOME: "/tmp/evil-cache",

610625

XDG_CONFIG_DIRS: "/tmp/evil-config-dirs",

626+

XDG_CONFIG_HOME: "/tmp/evil-config",

627+

XDG_DATA_DIRS: "/tmp/evil-data-dirs",

628+

XDG_DATA_HOME: "/tmp/evil-data",

629+

XDG_RUNTIME_DIR: "/tmp/evil-runtime",

630+

XDG_STATE_HOME: "/tmp/evil-state",

611631

TF_VAR_admin_cidr: "10.0.0.0/24",

612632

GITHUB_TOKEN: "ghp-test",

613633

DATABASE_URL: "postgres://attacker",

@@ -630,7 +650,13 @@ describe("sanitizeHostExecEnv", () => {

630650

expect(env.TF_PLUGIN_CACHE_DIR).toBeUndefined();

631651

expect(env.CFLAGS).toBeUndefined();

632652

expect(env.LDFLAGS).toBeUndefined();

653+

expect(env.XDG_CACHE_HOME).toBeUndefined();

633654

expect(env.XDG_CONFIG_DIRS).toBeUndefined();

655+

expect(env.XDG_CONFIG_HOME).toBeUndefined();

656+

expect(env.XDG_DATA_DIRS).toBeUndefined();

657+

expect(env.XDG_DATA_HOME).toBeUndefined();

658+

expect(env.XDG_RUNTIME_DIR).toBeUndefined();

659+

expect(env.XDG_STATE_HOME).toBeUndefined();

634660

expect(env.TF_VAR_admin_cidr).toBeUndefined();

635661

expect(env.GITHUB_TOKEN).toBeUndefined();

636662

expect(env.DATABASE_URL).toBeUndefined();

@@ -830,10 +856,20 @@ describe("isDangerousHostEnvOverrideVarName", () => {

830856

expect(isDangerousHostEnvOverrideVarName("TF_VAR_admin_cidr")).toBe(true);

831857

expect(isDangerousHostEnvOverrideVarName("CORECLR_PROFILER_PATH")).toBe(true);

832858

expect(isDangerousHostEnvOverrideVarName("coreclr_profiler_path")).toBe(true);

859+

expect(isDangerousHostEnvOverrideVarName("XDG_CACHE_HOME")).toBe(true);

860+

expect(isDangerousHostEnvOverrideVarName("xdg_cache_home")).toBe(true);

833861

expect(isDangerousHostEnvOverrideVarName("XDG_CONFIG_HOME")).toBe(true);

834862

expect(isDangerousHostEnvOverrideVarName("xdg_config_home")).toBe(true);

835863

expect(isDangerousHostEnvOverrideVarName("XDG_CONFIG_DIRS")).toBe(true);

836864

expect(isDangerousHostEnvOverrideVarName("xdg_config_dirs")).toBe(true);

865+

expect(isDangerousHostEnvOverrideVarName("XDG_DATA_DIRS")).toBe(true);

866+

expect(isDangerousHostEnvOverrideVarName("xdg_data_dirs")).toBe(true);

867+

expect(isDangerousHostEnvOverrideVarName("XDG_DATA_HOME")).toBe(true);

868+

expect(isDangerousHostEnvOverrideVarName("xdg_data_home")).toBe(true);

869+

expect(isDangerousHostEnvOverrideVarName("XDG_RUNTIME_DIR")).toBe(true);

870+

expect(isDangerousHostEnvOverrideVarName("xdg_runtime_dir")).toBe(true);

871+

expect(isDangerousHostEnvOverrideVarName("XDG_STATE_HOME")).toBe(true);

872+

expect(isDangerousHostEnvOverrideVarName("xdg_state_home")).toBe(true);

837873

expect(isDangerousHostEnvOverrideVarName("AWS_CONFIG_FILE")).toBe(true);

838874

expect(isDangerousHostEnvOverrideVarName("aws_config_file")).toBe(true);

839875

expect(isDangerousHostEnvOverrideVarName("yarn_rc_filename")).toBe(true);

@@ -861,7 +897,13 @@ describe("isDangerousHostEnvOverrideVarName", () => {

861897

"TF_PLUGIN_CACHE_DIR",

862898

"CFLAGS",

863899

"LDFLAGS",

900+

"XDG_CACHE_HOME",

864901

"XDG_CONFIG_DIRS",

902+

"XDG_CONFIG_HOME",

903+

"XDG_DATA_DIRS",

904+

"XDG_DATA_HOME",

905+

"XDG_RUNTIME_DIR",

906+

"XDG_STATE_HOME",

865907

"AWS_SECRET_ACCESS_KEY",

866908

"AZURE_CLIENT_SECRET",

867909

"DATABASE_URL",

@@ -1113,7 +1155,13 @@ describe("sanitizeHostExecEnvWithDiagnostics", () => {

11131155

GITHUB_TOKEN: "ghp-test",

11141156

DATABASE_URL: "postgres://attacker",

11151157

R_PROFILE_USER: "/tmp/evil-Rprofile",

1158+

XDG_CACHE_HOME: "/tmp/evil-cache",

11161159

XDG_CONFIG_DIRS: "/tmp/evil-config-dirs",

1160+

XDG_CONFIG_HOME: "/tmp/evil-config",

1161+

XDG_DATA_DIRS: "/tmp/evil-data-dirs",

1162+

XDG_DATA_HOME: "/tmp/evil-data",

1163+

XDG_RUNTIME_DIR: "/tmp/evil-runtime",

1164+

XDG_STATE_HOME: "/tmp/evil-state",

11171165

TF_VAR_admin_cidr: "10.0.0.0/24",

11181166

SAFE_KEY: "ok",

11191167

},

@@ -1134,7 +1182,13 @@ describe("sanitizeHostExecEnvWithDiagnostics", () => {

11341182

"TF_PLUGIN_CACHE_DIR",

11351183

"TF_VAR_ADMIN_CIDR",

11361184

"VIMINIT",

1185+

"XDG_CACHE_HOME",

11371186

"XDG_CONFIG_DIRS",

1187+

"XDG_CONFIG_HOME",

1188+

"XDG_DATA_DIRS",

1189+

"XDG_DATA_HOME",

1190+

"XDG_RUNTIME_DIR",

1191+

"XDG_STATE_HOME",

11381192

]);

11391193

expect(result.rejectedOverrideInvalidKeys).toStrictEqual([]);

11401194

expect(result.env.SAFE_KEY).toBe("ok");

@@ -1149,7 +1203,13 @@ describe("sanitizeHostExecEnvWithDiagnostics", () => {

11491203

expect(result.env.GITHUB_TOKEN).toBeUndefined();

11501204

expect(result.env.DATABASE_URL).toBeUndefined();

11511205

expect(result.env.R_PROFILE_USER).toBeUndefined();

1206+

expect(result.env.XDG_CACHE_HOME).toBeUndefined();

11521207

expect(result.env.XDG_CONFIG_DIRS).toBeUndefined();

1208+

expect(result.env.XDG_CONFIG_HOME).toBeUndefined();

1209+

expect(result.env.XDG_DATA_DIRS).toBeUndefined();

1210+

expect(result.env.XDG_DATA_HOME).toBeUndefined();

1211+

expect(result.env.XDG_RUNTIME_DIR).toBeUndefined();

1212+

expect(result.env.XDG_STATE_HOME).toBeUndefined();

11531213

expect(result.env.TF_VAR_admin_cidr).toBeUndefined();

11541214

});

11551215