Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/hivectl/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas 72f5e39278 hive-tls: stage bao pki root in every hive's trust bundle
A self-signed hive fronting no swarm service name never filled
`$svcroot` (/var/lib/hive-tls/swarm-services-root.pem): the only writer
was `swarm-services-cert`'s issuance, which exits early on
`want_svc=0`. So those hives' trust-bundle.pem lacked the store's `pki`
root, even though every other hive's swarm-service names chain to it.

On `want_svc=0`, `swarm-services-cert` now reads the root from the
store's unauthenticated `GET /v1/pki/ca/pem`, over the hive's existing
BAO_ADDR, `deploy.bao.serverCaFile` and reader identity
(`deploy.bao.clientCertFile`/`clientKeyFile`) at the TLS layer only; no
login. It writes `$svcroot` and restarts `hive-tls-ca` when the root
changed, as the issuing path already does. The daily
`swarm-services-cert-renew` timer runs the same script, so the copy
follows a root rotation.

The gateway no longer `Requires=` `swarm-services-cert` on such a host:
nginx reads nothing that unit writes there, and the fetch retries
against a sealed store.

`hivectl peer-config` prints the root as step 2 of the self-signed
instructions: the swarm's service names are issued under it, not the
swarm root.

No new option. Refs #4588.
2026-10-04 14:37:50 +02:00
..
agents.rs Make agent creation swarm-only and refuse a name placed on another hive 2026-09-29 15:47:40 +02:00
approvals.rs split hivectl main.rs into per-domain modules (#2509) 2026-07-16 11:28:43 +02:00
choom.rs hive-c0re: grant hive-admin group a polkit rule for choom 2026-09-07 23:27:15 +02:00
cli.rs github: PATs live in swarm bao; the agent fetches them itself 2026-10-02 17:48:27 +02:00
client.rs host.sock: give HostResponse a wire-schema version, warn on mismatch 2026-09-07 14:08:30 +02:00
completions.rs split hivectl main.rs into per-domain modules (#2509) 2026-07-16 11:28:43 +02:00
dag_progress.rs feat(#3245): gate rustdoc in nix flake check, and clear the workspace 2026-08-14 02:30:55 +02:00
forge.rs hivectl: drop forge create-user; SSO makes a human's forge account 2026-09-25 08:29:56 +02:00
gateway.rs split hivectl main.rs into per-domain modules (#2509) 2026-07-16 11:28:43 +02:00
main.rs github: PATs live in swarm bao; the agent fetches them itself 2026-10-02 17:48:27 +02:00
matrix.rs matrix: swarm-controller is the only minter 2026-09-30 00:46:46 +02:00
open.rs matrix: serve the web client unconditionally; link it from the swarm domain 2026-10-02 20:02:02 +02:00
power.rs hivectl: batch QueueNodes polling by id set, drop remaining dag wording 2026-08-03 20:35:24 +02:00
quota.rs hivectl: rename hivectl agents to hivectl agent <name> <verb> 2026-07-27 19:07:18 +02:00
subvol.rs hivectl: batch QueueNodes polling by id set, drop remaining dag wording 2026-08-03 20:35:24 +02:00
util.rs github: PATs live in swarm bao; the agent fetches them itself 2026-10-02 17:48:27 +02:00
watch.rs swarm: show subagent terminals in the swarm UI 2026-10-03 01:34:01 +02:00
wg.rs hive-tls: stage bao pki root in every hive's trust bundle 2026-10-04 14:37:50 +02:00