diff --git a/integrations/hermes-unraid/webtop-workspace/README.md b/integrations/hermes-unraid/webtop-workspace/README.md index a1a74ec..951d1fe 100644 --- a/integrations/hermes-unraid/webtop-workspace/README.md +++ b/integrations/hermes-unraid/webtop-workspace/README.md @@ -237,3 +237,15 @@ not a project-only mount. No worker restart was required. Preserve ACLs in the private backup. The UI uses Hermes profile `terminal.cwd=/config` as its default, not a global startup override that would chown Webtop's home. See the WebUI integration README for the acceptance results and media limitations. + + +## SSH host-key protection after shared-home ACLs — 2026-10-17 + +The native WebUI acceptance found sshd down after the intervening Webtop restart. +`sshd -t` proved its two root-owned private host keys had mode0660, expanded by +the shared-home ACL mask; OpenSSH rejected them as unprotected and loaded no keys. +Restored their0600 mode without reading keys or restarting Webtop. Existing s6 +supervision brought sshd back. A real new-Hermes terminal printf test returned its +exact expected marker with exit0. Added `chmod600` for existing host keys inside +the versioned startup recipe. SSH host private keys are an explicit protected +exception to full-home shared ACL access; do not loosen them when restoring ACLs. diff --git a/integrations/hermes-unraid/webtop-workspace/configure-session.sh b/integrations/hermes-unraid/webtop-workspace/configure-session.sh index 6a4815a..b8963ed 100755 --- a/integrations/hermes-unraid/webtop-workspace/configure-session.sh +++ b/integrations/hermes-unraid/webtop-workspace/configure-session.sh @@ -6,6 +6,8 @@ chown root:root /config/.hermes-workspace/hostkeys chmod 700 /config/.hermes-workspace/hostkeys for kind in ed25519 rsa; do test -f /config/.hermes-workspace/hostkeys/ssh_host_${kind}_key || ssh-keygen -q -t "$kind" -N '' -f /config/.hermes-workspace/hostkeys/ssh_host_${kind}_key + # Shared-workspace ACLs must never make SSH server private keys group-readable. + chmod 600 /config/.hermes-workspace/hostkeys/ssh_host_${kind}_key done usermod -s /bin/bash abc cat > /etc/ssh/sshd_config.d/hermes-workspace.conf <<'EOF' diff --git a/integrations/hermes-unraid/webui/README.md b/integrations/hermes-unraid/webui/README.md index bc2beed..55df0a6 100644 --- a/integrations/hermes-unraid/webui/README.md +++ b/integrations/hermes-unraid/webui/README.md @@ -1,4 +1,9 @@ -# Hermes-WebUI on Unraid — verified layout, 2026-10-16 +# Hermes-WebUI on Unraid + +**Current test deployment, 2026-10-17:** `Hermes-Agent-Web-UI` runs Hermes directly +in-process at the same LAN URL. Previous `Hermes-WebUI` and `Hermes-Agent` are +stopped and retained. See the final section. The gateway layout below records +the preserved previous deployment, not the active chat execution mode. ## Provenance and supported architecture @@ -188,3 +193,106 @@ No local patch, counter estimate, mode switch or service restart was performed for this investigation. Recheck upstream acceptance and actual Runs API metadata before promising reliable context occupancy. Billing input totals sum model calls and are not an interchangeable measure of the current context window. + + +## Direct in-process Hermes test — 2026-10-17 + +User explicitly requested stopping the previous Agent and WebUI and starting a +second, separately named WebUI with embedded/direct Hermes execution. + +- New container/template name: `Hermes-Agent-Web-UI`. +- Template: [my-Hermes-Agent-Web-UI.xml](my-Hermes-Agent-Web-UI.xml), installed at + `/boot/config/plugins/dockerMan/templates-user/my-Hermes-Agent-Web-UI.xml`. +- Same published unmodified WebUI image/digest and existing Hermes source volume + as recorded above. No custom image, application patch or gateway proxy. +- Standard in-process mode: no `HERMES_WEBUI_CHAT_BACKEND=gateway`, Gateway URL, + Runs-API switch or external `HERMES_API_URL` forwarded to the new container. + The upstream internal mode string is `legacy`; it denotes the normal local + execution path, not an old Hermes version. +- Root `/mnt/nvme-storage/appdata/Hermes-Agent-Web-UI` has own `home`, `app`, + dependency `cache` and root-only `private/runtime.env`. +- New home is a copy of the existing Hermes home made after the previous WebUI + stopped; it retains models, skills, memory, MCP definitions and private SSH keys. + The existing WebUI session/preferences directory was copied into `home/webui`. + No old production files were overwritten. Real user work in `/config` remains + shared; the test is not isolated from that workspace's files/actions. +- Home mount `/home/hermeswebui/.hermes`, with the SAME new home also mounted at + `/opt/data` for existing tool paths and copied historical artifact references. + State is `/home/hermeswebui/.hermes/webui`. Source remains mounted RO at + `/home/hermeswebui/.hermes/hermes-agent`; official entrypoint stages/installs it. +- Existing `/mnt/nvme-storage/appdata/Hermes-Workspace` mounted at `/config` RW; + existing authorized UID99/1000 ACLs reused. No worker restart. +- Same LAN address http://192.168.1.2:8787/, bridge network, no socket/GPU/privilege. + Previous UI stopped before taking this port. Existing password copied internally; + no passwords/tokens in template, logs exported to context or Git. +- Resource ceiling 2 CPUs / 4 GiB RAM, swap not above that ceiling. Original UI + ceiling was 2 GiB; native agent/tool subprocesses share this test container limit. + +Native provider metadata correction, in the TEST home only: the three Strata +model entries declare `reasoning_efforts: [none, low, medium, high]`. This is the +WebUI's existing supported per-model capability field. It addresses the unknown +custom model ID, independently of gateway usage persistence. Original provider +configuration is unchanged. Reasoning stays at the existing `medium` setting. + +Verified startup: HTTP health200, native mode, 20 MCP configurations retained, +German server preference, supported Reasoning dropdown visible with None/Low/ +Medium/High, new chat workspace Home `/config`, correct 262144 context capacity. +Own fresh test session `3a32feb2b2ec` is used for the actual inference/tool test. +No broad autonomous task, image regeneration or benchmark is implied. + +The source volume is still independent of the WebUI image: update it using the +upstream documented source refresh when changing Hermes revisions. A Docker image +update by itself does not refresh a source volume mounted over the Agent checkout. + +Back up new `home` and private env encrypted, shared Webtop home with ACLs, installed +new XML and the matching source revision. `app` and dependency cache are +reconstructable through the upstream entrypoint. Full restore is not claimed. +The original two container definitions, original home and original WebUI appdata +remain available stopped; switching back requires an idle test and freeing8787. +Do not simultaneously run both UIs on that port. New test changes to skills, +memory or settings are in its copy and do NOT automatically update the original. +With the separate Gateway stopped, its messaging/API service and cron ticking +are not provided by this browser-chat test; no scheduler parity claim is made. + + +### SSH permission regression found during native acceptance + +First native model test honestly reported that no terminal command ran. Independent +`sshd -t` showed the two existing root-owned SSH host private keys were mode0660 +because the previously approved recursive shared-home ACL had expanded their mask. +After Webtop's subsequent restart, sshd rejected those keys and was not running. +This was a setup regression from the shared-home permission change, not a model +or native-runtime failure. Metadata only was inspected; no private-key content. + +Restored0600 only on `ssh_host_ed25519_key` and `ssh_host_rsa_key`. The existing +supervisor restarted sshd normally; Workspace/container/host were not restarted. +The public `webtop-workspace/configure-session.sh` now applies0600 to existing +host keys at startup as well. This deliberately restricts effective access to +those server keys despite the broader home ACL; do not reapply recursive rw ACLs +without re-securing private keys afterwards. The actual new native Hermes terminal +then returned `HERMES_NATIVE_SSH_OK` with exit0. + +The native context meter is proven nonzero in the own test: capacity262144, +last_prompt_tokens19999, threshold_tokens196608, input_tokens78007, +output_tokens654 after the first (SSH-failing) turn. The browser showed8% plus +cache counters. Billing input78007 is correctly distinct from current occupancy +19999. These counters prove metering, not success of the failed terminal turn. + + +### Final native browser acceptance + +Second turn in own session `3a32feb2b2ec` succeeded after SSH host-key protection: +recorded terminal call `printf HERMES_NATIVE_UI_OK`, final browser answer exactly +`HERMES_NATIVE_UI_OK`. Native UI exposes a real Shell activity card. Final stored +metrics: context_length262144, last_prompt_tokens20578, threshold_tokens196608, +input_tokens119083, output_tokens713. These are actual metering values; cumulative +billing tokens are not the current-context numerator. Browser context ring and +cache counters are visible; graphical Reasoning dropdown contains None/Low/ +Medium/High with existing Medium selected. Screenshot retained as local acceptance +artifact, not private user data in Git. + +Final containers: new `Hermes-Agent-Web-UI` healthy, previous `Hermes-WebUI` stopped, +previous `Hermes-Agent` stopped, shared `Hermes-Workspace` running unchanged apart +from the two SSH host-key mode corrections/start-recipe persistence above. +The previous media-player limitations in MEDIA-2026-10-16.md are not claimed fixed +by switching to in-process chat. No all-MCP, speech-player or full restore test. diff --git a/integrations/hermes-unraid/webui/my-Hermes-Agent-Web-UI.xml b/integrations/hermes-unraid/webui/my-Hermes-Agent-Web-UI.xml new file mode 100644 index 0000000..4990863 --- /dev/null +++ b/integrations/hermes-unraid/webui/my-Hermes-Agent-Web-UI.xml @@ -0,0 +1,41 @@ + + + Hermes-Agent-Web-UI + ghcr.io/nesquena/hermes-webui:latest + https://ghcr.io/nesquena/hermes-webui/ + https://github.com/nesquena/hermes-webui + https://github.com/nesquena/hermes-webui + + https://raw.githubusercontent.com/nesquena/hermes-webui/refs/heads/master/static/favicon.svg + AI + bridge + http://[IP]:[PORT:8787]/ + + bash + false + --env-file=/mnt/nvme-storage/appdata/Hermes-Agent-Web-UI/private/runtime.env --cpus=2 --memory=4g --memory-swap=4g --restart=unless-stopped + Published Hermes-WebUI image; existing read-only Hermes source volume; SSH Webtop workspace. + + Separater Test: Hermes Agent direkt im WebUI-Prozess, ohne Gateway-Weiterleitung. Getrennte Konfiguration und Chats; gemeinsamer Webtop-Workspace. + https://github.com/nesquena/hermes-webui + 2026-10-16 + 2026-10-17: Native in-process Hermes test, isolated appdata, retained old containers stopped. + + + + 8787 + /mnt/nvme-storage/appdata/Hermes-Agent-Web-UI/home + /mnt/nvme-storage/appdata/Hermes-Agent-Web-UI/app + /mnt/nvme-storage/appdata/Hermes-Workspace + /mnt/nvme-storage/appdata/Hermes-Agent-Web-UI/cache + 99 + 100 + /home/hermeswebui/.hermes + /home/hermeswebui/.hermes/webui + 0.0.0.0 + 8787 + Europe/Berlin + hermes-agent-source + 3.14 + /app/python-runtime + /opt/data/cache/mnt/nvme-storage/appdata/Hermes-Agent-Web-UI/home \ No newline at end of file