gateway: serve the hive dashboard on <hive>.hives.<swarm> behind authelia, drop htpasswd
The dashboard, its API, the swagger UI and the agent routes move to their own vhost, `swarm.dashboardDomain` = `<hive>.hives.<swarm.domain>`, under the swarm domain so authelia's session cookie reaches it. `/`, `/api/` and `/api/docs/` ask authelia through `auth_request`, and authelia's `operatorsOnly` rule for each hive's dashboard name lets only the admins group in. The hive domain keeps matrix discovery and redirects every other path to the new name. The name rides as a SAN on the hive's own gateway leaf: the per-hive bao role allows it, and hive-tls asks for it and checks coverage. HTTP Basic auth is gone: the htpasswd writer and its test, the `hivectl gateway` verbs and host-socket requests, the `gateway.auth` options (now a removed-option error), the unauthorized page and the bcrypt dependency. tmpfiles deletes a leftover gateway.htpasswd, which held bcrypt hashes at 0644. c0re hands out dashboard and agent URLs on the new name (HYPERHIVE_DASHBOARD_DOMAIN), and the swarm controller's hive roster carries each hive's dashboard name for the swarm UI's hive list. Closes #3469
This commit is contained in:
parent
09ad7386b2
commit
92559af8e7
47 changed files with 351 additions and 623 deletions
|
|
@ -135,17 +135,13 @@ Later config changes are PRs on `agent-configs/iris`; you merge them on the
|
|||
forge, and the merge deploys them. →
|
||||
[`agent-lifecycle/config-changes.md`](../agent-lifecycle/config-changes.md#config-changes)
|
||||
|
||||
## Optional · Lock the hive dashboard
|
||||
## The hive dashboard
|
||||
|
||||
The per-hive dashboard has no SSO in front of it. To put it behind HTTP
|
||||
Basic auth, set `services.hyperhive.gateway.auth.enable = true` and add
|
||||
logins:
|
||||
The per-hive dashboard answers on `<hive>.hives.<swarm domain>`, behind
|
||||
authelia: log in with the `admins` account you created above. The hive's
|
||||
own domain redirects there.
|
||||
|
||||
```bash
|
||||
echo "hunter2" | hivectl gateway create-user mara --password-stdin
|
||||
```
|
||||
|
||||
→ [`networking/gateway.md`](../networking/gateway.md#http-basic-auth)
|
||||
→ [`networking/gateway.md`](../networking/gateway.md#dashboard-access)
|
||||
|
||||
## Day to day
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue