feat: add isolated in-process Hermes WebUI test deployment
This commit is contained in:
1 parent
3bb7f9077f
commit
31d1e16dd6
4 files changed
+164
-1
No files matched your search
@@ -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.
|
||||
@@ -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'
|
||||
|
||||
@@ -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.
|
||||
@@ -0,0 +1,41 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<Container version="2">
|
||||
<Name>Hermes-Agent-Web-UI</Name>
|
||||
<Repository>ghcr.io/nesquena/hermes-webui:latest</Repository>
|
||||
<Registry>https://ghcr.io/nesquena/hermes-webui/</Registry>
|
||||
<Support>https://github.com/nesquena/hermes-webui</Support>
|
||||
<Project>https://github.com/nesquena/hermes-webui</Project>
|
||||
<TemplateURL />
|
||||
<Icon>https://raw.githubusercontent.com/nesquena/hermes-webui/refs/heads/master/static/favicon.svg</Icon>
|
||||
<Category>AI</Category>
|
||||
<Network>bridge</Network>
|
||||
<WebUI>http://[IP]:[PORT:8787]/</WebUI>
|
||||
<MyIP />
|
||||
<Shell>bash</Shell>
|
||||
<Privileged>false</Privileged>
|
||||
<ExtraParams>--env-file=/mnt/nvme-storage/appdata/Hermes-Agent-Web-UI/private/runtime.env --cpus=2 --memory=4g --memory-swap=4g --restart=unless-stopped</ExtraParams>
|
||||
<Requires>Published Hermes-WebUI image; existing read-only Hermes source volume; SSH Webtop workspace.</Requires>
|
||||
<PostArgs />
|
||||
<Overview>Separater Test: Hermes Agent direkt im WebUI-Prozess, ohne Gateway-Weiterleitung. Getrennte Konfiguration und Chats; gemeinsamer Webtop-Workspace.</Overview>
|
||||
<Readme>https://github.com/nesquena/hermes-webui</Readme>
|
||||
<Date>2026-10-16</Date>
|
||||
<Changes>2026-10-17: Native in-process Hermes test, isolated appdata, retained old containers stopped.</Changes>
|
||||
<CPUset />
|
||||
<DonateText />
|
||||
<DonateLink />
|
||||
<Config Name="WebUI Port" Target="8787" Default="8787" Mode="tcp" Description="WebUI Port" Type="Port" Display="always" Required="true" Mask="false">8787</Config>
|
||||
<Config Name="Shared Hermes home" Target="/home/hermeswebui/.hermes" Default="/mnt/nvme-storage/appdata/Hermes-Agent-Web-UI/home" Mode="rw" Description="Appdata home" Type="Path" Display="always" Required="true" Mask="false">/mnt/nvme-storage/appdata/Hermes-Agent-Web-UI/home</Config>
|
||||
<Config Name="Persistent application runtime" Target="/app" Default="/mnt/nvme-storage/appdata/Hermes-Agent-Web-UI/app" Mode="rw" Description="Persistent application runtime" Type="Path" Display="always" Required="true" Mask="false">/mnt/nvme-storage/appdata/Hermes-Agent-Web-UI/app</Config>
|
||||
<Config Name="Shared Webtop home / workspace" Target="/config" Default="/mnt/nvme-storage/appdata/Hermes-Workspace" Mode="rw" Description="Own workspace" Type="Path" Display="always" Required="true" Mask="false">/mnt/nvme-storage/appdata/Hermes-Workspace</Config>
|
||||
<Config Name="Dependency cache" Target="/uv_cache" Default="/mnt/nvme-storage/appdata/Hermes-Agent-Web-UI/cache" Mode="rw" Description="Dependency cache" Type="Path" Display="always" Required="true" Mask="false">/mnt/nvme-storage/appdata/Hermes-Agent-Web-UI/cache</Config>
|
||||
<Config Name="WANTED_UID" Target="WANTED_UID" Default="99" Mode="" Description="WANTED_UID" Type="Variable" Display="advanced" Required="true" Mask="false">99</Config>
|
||||
<Config Name="WANTED_GID" Target="WANTED_GID" Default="100" Mode="" Description="WANTED_GID" Type="Variable" Display="advanced" Required="true" Mask="false">100</Config>
|
||||
<Config Name="HERMES_HOME" Target="HERMES_HOME" Default="/home/hermeswebui/.hermes" Mode="" Description="HERMES_HOME" Type="Variable" Display="advanced" Required="true" Mask="false">/home/hermeswebui/.hermes</Config>
|
||||
<Config Name="HERMES_WEBUI_STATE_DIR" Target="HERMES_WEBUI_STATE_DIR" Default="/home/hermeswebui/.hermes/webui" Mode="" Description="HERMES_WEBUI_STATE_DIR" Type="Variable" Display="advanced" Required="true" Mask="false">/home/hermeswebui/.hermes/webui</Config>
|
||||
<Config Name="HERMES_WEBUI_HOST" Target="HERMES_WEBUI_HOST" Default="0.0.0.0" Mode="" Description="HERMES_WEBUI_HOST" Type="Variable" Display="advanced" Required="true" Mask="false">0.0.0.0</Config>
|
||||
<Config Name="HERMES_WEBUI_PORT" Target="HERMES_WEBUI_PORT" Default="8787" Mode="" Description="HERMES_WEBUI_PORT" Type="Variable" Display="advanced" Required="true" Mask="false">8787</Config>
|
||||
<Config Name="TZ" Target="TZ" Default="Europe/Berlin" Mode="" Description="TZ" Type="Variable" Display="advanced" Required="true" Mask="false">Europe/Berlin</Config>
|
||||
<Config Name="Shared Hermes source volume" Target="/home/hermeswebui/.hermes/hermes-agent" Default="hermes-agent-source" Mode="ro" Description="Hermes public source" Type="Path" Display="advanced" Required="true" Mask="false">hermes-agent-source</Config>
|
||||
<Config Name="Compatible Python" Target="UV_PYTHON" Default="3.14" Mode="" Description="Compatible Python" Type="Variable" Display="advanced" Required="true" Mask="false">3.14</Config>
|
||||
<Config Name="Persistent Python installs" Target="UV_PYTHON_INSTALL_DIR" Default="/app/python-runtime" Mode="" Description="Keep managed Python in persistent application directory" Type="Variable" Display="advanced" Required="true" Mask="false">/app/python-runtime</Config>
|
||||
<Config Name="MEDIA_ALLOWED_ROOTS" Target="MEDIA_ALLOWED_ROOTS" Default="/opt/data/cache" Mode="" Description="Upstream media endpoint allowlist for the shared artifact cache" Type="Variable" Display="advanced" Required="true" Mask="false">/opt/data/cache</Config><Config Name="Hermes home absolute-path compatibility" Target="/opt/data" Default="/mnt/nvme-storage/appdata/Hermes-Agent-Web-UI/home" Mode="rw" Description="Same isolated home at the existing absolute paths used by configured tools and old artifacts" Type="Path" Display="advanced" Required="true" Mask="false">/mnt/nvme-storage/appdata/Hermes-Agent-Web-UI/home</Config></Container>
|
||||
Reference in new issue
Block a user