docs(web-ui): scope dashboard.md to what the hive UI renders
Per mara's review: the hive UI doc covers only what hive-c0re's pages render. Removed the M4TR1X page section (the hive gateway redirects /matrix/ to the swarm matrix client, which the swarm UI's quick links open), the swarm-UI forge/matrix account-linking lines from the CR3D3NTIALS section, the infra-services hivectl paragraph, and the H0M3 Matrix/Forge absence line. Added a single pointer to docs/swarm/ui.md, and stated the account-linking and Matrix quick-link facts there. Refs #3902
This commit is contained in:
parent
6a60312da7
commit
cabde572e9
2 changed files with 37 additions and 37 deletions
|
|
@ -19,6 +19,27 @@ Everything it shows comes from [`swarm-controller`](../../swarm-controller/READM
|
|||
An agent created here or with `swarmctl agent create` starts `paused`; set it
|
||||
`up` from its card.
|
||||
|
||||
### Linking external accounts
|
||||
|
||||
Each agent on `/agents` opens two dialogs that write a credential for it
|
||||
into the swarm secret store through swarm-controller. Both are blind
|
||||
set/update actions: no route lists linked accounts or hands a token back.
|
||||
|
||||
- **link a matrix account** — `PUT /api/hives/{hive}/agents/{agent}/matrix-accounts/{account}`,
|
||||
either a pasted bearer token or a user id + password that
|
||||
swarm-controller logs in with, storing the token it gets back.
|
||||
- **link a forge account** — `PUT /api/hives/{hive}/agents/{agent}/forge-accounts/{label}`
|
||||
with a forge URL and an access token, stored at
|
||||
`swarm/agents/<agent>/forge/<label>`. The agent's
|
||||
`hive-agent-forge-accounts` unit fetches it into
|
||||
`<state>/forge-<label>-token` and `<state>/forge-<label>.json`, the files
|
||||
`hive-forge -f <label>` reads. The unit never deletes a pair: linking
|
||||
the same label again overwrites both files, and a pair whose label the
|
||||
store doesn't list stays untouched.
|
||||
|
||||
Where each credential lives and who reads it:
|
||||
[`credentials.md`](credentials.md).
|
||||
|
||||
## Enabling
|
||||
|
||||
```nix
|
||||
|
|
@ -82,6 +103,13 @@ controller's host — `swarm-authelia.nix`, `hive-matrix.nix`,
|
|||
a nix-only change to that service's module, or an operator adding an entry
|
||||
directly. An empty list hides the button.
|
||||
|
||||
The **Matrix** entry opens the swarm's matrix web client (fluffychat,
|
||||
`services.hyperhive.deploy.matrix.gui.package`) at the homeserver's
|
||||
gateway host, `chat.<swarm domain>` by default. `hive-matrix.nix` adds it
|
||||
only when `services.hyperhive.deploy.matrix.gui.enable` is on and the
|
||||
homeserver has a gateway host, the same condition under which that vhost
|
||||
serves the client at `/`.
|
||||
|
||||
<details><summary>Adding a swarm service name: the two wiring sites</summary>
|
||||
|
||||
Adding a swarm service name means touching two things. Missing the
|
||||
|
|
|
|||
Loading…
Reference in a new issue