fix agent-logs unit dropdown mismatch, add other hive daemons
Dashboard AGENT log tab sent unit=hive-ag3nt.service (the crate/dir name) but the actual systemd unit is hive-agent.service, so every fetch 400'd against the backend allow-list. Fixed the dropdown value and, per the same issue's request, added the other per-agent daemons (hive-mcp-http, hive-bash-daemon, hive-matrix-daemon) as selectable units, plus hive-priv.service on the SYSTEM tab's host-daemon list. Extended both backend allow-lists (post_journal / post_journal_host) to match, and fixed a stale systemd.services.hive-ag3nt doc reference in agent-hierarchy.md that had the same crate/unit-name confusion.
This commit is contained in:
parent
b87eac0a61
commit
a73216e8be
4 changed files with 21 additions and 9 deletions
|
|
@ -734,7 +734,9 @@ routing is hash-based (`#agent`, `#system`, `#audit`); default is
|
|||
|
||||
**AGENT sub-tab** — per-container journald viewer. Two selects: agent
|
||||
name (populated from `GET /api/state`) and unit filter
|
||||
(`hive-ag3nt.service` / `(full machine journal)`). Fetches
|
||||
(`hive-agent.service` / `hive-mcp-http.service` /
|
||||
`hive-bash-daemon.service` / `hive-matrix-daemon.service` /
|
||||
`(full machine journal)`). Fetches
|
||||
`GET /api/journal/{name}?unit=<unit>&lines=500` on selection change
|
||||
or `↻ refresh`. Output rendered as a `<pre>` block. A `?agent=<name>`
|
||||
and/or `?unit=<svc>` URL param pre-selects the agent + unit on page
|
||||
|
|
@ -743,9 +745,9 @@ deep-link directly to a specific agent's journal. A "fetched N ago"
|
|||
chip appears after the `↻ refresh` button following each successful
|
||||
fetch and ticks every 30 s.
|
||||
|
||||
**SYSTEM sub-tab** — host-side service logs. Unit selector (currently
|
||||
only `hive-c0re.service`). Fetches
|
||||
`GET /api/journal-host?unit=hive-c0re.service&lines=500` on activation
|
||||
**SYSTEM sub-tab** — host-side service logs. Unit selector
|
||||
(`hive-c0re.service` / `hive-priv.service`). Fetches
|
||||
`GET /api/journal-host?unit=<unit>&lines=500` on activation
|
||||
and on `↻ refresh`. Rendered as a `<pre>` block. A "fetched N ago"
|
||||
chip ticks every 30 s. Available to the operator unconditionally (not
|
||||
capability-gated — the endpoint lives on the hive-c0re dashboard,
|
||||
|
|
|
|||
Loading…
Reference in a new issue