mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 16:10:24 +00:00
fix(sandbox): cover home credential bind audit
This commit is contained in:
@@ -1562,6 +1562,28 @@ describe("security audit", () => {
|
||||
{ checkId: "sandbox.dangerous_apparmor_profile", severity: "critical" },
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "home credential bind is treated as dangerous",
|
||||
cfg: {
|
||||
agents: {
|
||||
defaults: {
|
||||
sandbox: {
|
||||
mode: "all",
|
||||
docker: {
|
||||
binds: [path.join(isolatedHome, ".docker", "config.json") + ":/mnt/docker:ro"],
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
} as OpenClawConfig,
|
||||
expectedFindings: [
|
||||
{
|
||||
checkId: "sandbox.dangerous_bind_mount",
|
||||
severity: "critical",
|
||||
title: "Dangerous bind mount in sandbox config",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "container namespace join network mode",
|
||||
cfg: {
|
||||
|
||||
Reference in New Issue
Block a user