release: MUA 2026.11.20.r036
Read-only shell - Accept a full command line (`command`) and parse it without /bin/sh: quotes, escapes, ~, pipes between allowed programs, ; && ||, globs in absolute paths; 2>&1 and 2>/dev/null are tolerated. Pipeline stages run with strictly single-quoted, pre-validated literals only. - Per-program option policies that understand combined short flags, --opt=value and GNU abbreviations. Closes bypasses: ip abbreviations (ip a a / ip r d / ip link s), dmesg -c/-Tc/--console-level=, ss -tK/-D, date operands, sort -o, uniq output file, file -C. - Block credential files (shadow, SSH private keys, mua.conf, admin token, /proc/*/environ, docker config.v2.json); redact password hashes, private PEM keys and WireGuard keys in output. MUA API key and admin token are never emitted by any tool. - More diagnostic programs (echo, printf, sort, uniq, cut, tr, findmnt, sensors, zpool/zfs read verbs, mdcmd status, ...). grep without matches is reported as no_match instead of an error. Process handling - Spawn every child in its own process group; timeouts kill the whole tree. The MCP hard timeout kills exactly the processes of that call. - Async jobs: command in its own file (exit no longer loses the exit code), new unraid_system_job_cancel, finished jobs pruned after 7 days. Other - Cache toolbox discovery briefly; validate and bound session IDs; /health shows version/port only with a valid token; constant-time admin token check; auto-granted tools are logged and shown in the WebGUI. - Remove the legacy PHP server (mcp/), drop old packages from dist/, pin @types/bun. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f1df7f9f1c
commit
b8d89ffd9c
23 files changed
+1460
-1470
No files matched your search
+1
-1
@@ -62,7 +62,7 @@ test("actual MCP transport advertises new tools and marks failed commands as err
|
||||
return await r.json() as any;
|
||||
};
|
||||
const init = await rpc("initialize", { protocolVersion: "2025-03-26", capabilities: {}, clientInfo: { name: "isolated-test", version: "1" } });
|
||||
expect(init.result.serverInfo.version).toBe("2026.11.05.r035");
|
||||
expect(init.result.serverInfo.version).toBe(JSON.parse(await Bun.file(new URL("../package.json", import.meta.url)).text()).version);
|
||||
const list = await rpc("tools/list", {});
|
||||
expect(list.result.tools.some((t: { name: string }) => t.name === "unraid_share_apply")).toBe(true);
|
||||
const fail = await rpc("tools/call", { name: "unraid_system_shell", arguments: { command: "exit 17" } });
|
||||
|
||||
Reference in new issue
Block a user