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
+14
-4
@@ -2,13 +2,13 @@
|
||||
<!DOCTYPE PLUGIN [
|
||||
<!ENTITY name "mua">
|
||||
<!ENTITY author "Michael">
|
||||
<!ENTITY version "2026.11.05.r035">
|
||||
<!ENTITY version "2026.11.20.r036">
|
||||
<!ENTITY launch "Settings/mua">
|
||||
<!ENTITY pluginURL "https://git.casaderoll.de/michael/MUA-Mikes-Unraid-Agent/raw/branch/main/plugin/mua.plg">
|
||||
<!ENTITY pluginLOC "/boot/config/plugins/&name;">
|
||||
<!ENTITY emhttpLOC "/usr/local/emhttp/plugins/&name;">
|
||||
<!ENTITY txzURL "https://git.casaderoll.de/michael/MUA-Mikes-Unraid-Agent/raw/branch/main/dist/mua-2026.11.05.r035-x86_64-1.txz">
|
||||
<!ENTITY txzSHA256 "7a861d2a0b917b3d09e96f9ec97fd72fb070ba2fdcbbf4456ee9832d972d23b1">
|
||||
<!ENTITY txzURL "https://git.casaderoll.de/michael/MUA-Mikes-Unraid-Agent/raw/branch/main/dist/mua-2026.11.20.r036-x86_64-1.txz">
|
||||
<!ENTITY txzSHA256 "625e56d3725e40479ec89e38c738728bf7e84724de5404dde8f5a43ebfec157d">
|
||||
]>
|
||||
|
||||
<PLUGIN name="&name;"
|
||||
@@ -23,6 +23,16 @@
|
||||
>
|
||||
|
||||
<CHANGES>
|
||||
### 2026.11.20.r036
|
||||
- Readonly-Shell versteht jetzt eine normale Befehlszeile (`command`): Quotes, Pipes zwischen erlaubten Programmen, `;`/`&&`/`||`, Globs in absoluten Pfaden; `2>&1` wird toleriert. Kleine Modelle kommen so in einem Aufruf zum Ergebnis.
|
||||
- Schließt Umgehungen der Readonly-Shell: `ip`-Abkürzungen (`ip a a`, `ip r d`, `ip link s`), `dmesg -c`/`-Tc`/`--console-level=`, `ss -tK`/`-D`, `date`-Operanden, `sort -o`, `uniq` mit Ausgabedatei, `file -C`. Optionen werden je Programm inkl. kombinierter Kurzflags und GNU-Abkürzungen geprüft.
|
||||
- Dateien mit Zugangsdaten (`/etc/shadow`, SSH-Private-Keys, `mua.conf`, Admin-Token, `/proc/*/environ`, Docker-`config.v2.json`) sind in der Readonly-Shell gesperrt; Passwort-Hashes, private PEM-Schlüssel und WireGuard-Keys werden in Ausgaben geschwärzt. MUA-API-Key und Admin-Token erscheinen in keiner Tool-Ausgabe.
|
||||
- Mehr Diagnoseprogramme: echo, printf, sort, uniq, cut, tr, tac, nl, strings, md5sum, which, basename, dirname, nproc, lscpu, lsusb, sensors, findmnt, zpool/zfs (nur Lesebefehle), `mdcmd status`. `grep` ohne Treffer gilt nicht mehr als Fehler.
|
||||
- Timeouts beenden die ganze Prozessgruppe statt nur der Shell; der harte MCP-Timeout beendet gezielt die Prozesse des betroffenen Aufrufs.
|
||||
- Async-Jobs: `exit` im Skript verliert den Exit-Code nicht mehr; neues Werkzeug `unraid_system_job_cancel`; abgeschlossene Jobs werden nach 7 Tagen aus `/tmp/mua-jobs` entfernt.
|
||||
- Toolbox-Erkennung wird kurz gecacht (weniger `docker ps` pro Aufruf); Session-IDs werden validiert und begrenzt; `/health` zeigt Version/Port nur mit Token; automatisch ergänzte Freigaben werden geloggt und in der WebGUI angezeigt.
|
||||
- Alter PHP-Server (`mcp/`) entfernt; alte Pakete aus `dist/` entfernt.
|
||||
|
||||
### 2026.11.05.r035
|
||||
- Neuer expliziter Modus „Unraid-WebGUI-Zertifikat verwenden“: keine manuellen Zertifikatspfade nötig; bisherige Pfade bleiben als Expertenoption erhalten.
|
||||
- Leitet verwendete Bundles aus der erzeugten nginx-Konfiguration und Management-Laufzeitdaten ab, nicht aus beliebigen PEM-Dateien oder Änderungszeiten.
|
||||
@@ -212,7 +222,7 @@ Das .txz enthält:
|
||||
install/doinst.sh (läuft nach Installation)
|
||||
===========================================
|
||||
-->
|
||||
<FILE Name="/boot/config/plugins/&name;/mua-2026.11.05.r035-x86_64-1.txz" Run="upgradepkg --install-new" Mode="755" Min="7.0.0">
|
||||
<FILE Name="/boot/config/plugins/&name;/mua-2026.11.20.r036-x86_64-1.txz" Run="upgradepkg --install-new" Mode="755" Min="7.0.0">
|
||||
<URL>&txzURL;</URL>
|
||||
<SHA256>&txzSHA256;</SHA256>
|
||||
</FILE>
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "mua",
|
||||
"author": "Michael",
|
||||
"version": "2026.11.05.r035",
|
||||
"version": "2026.11.20.r036",
|
||||
"minver": "7.0.0",
|
||||
"pluginDirectory": "/usr/local/emhttp/plugins/mua",
|
||||
"configDirectory": "/boot/config/plugins/mua",
|
||||
|
||||
Reference in new issue
Block a user