harness phase B: the test cluster bootstraps from its own OpenBao #35

Merged
ginjiruu merged 2 commits from bedrock-phase-b into main 2026-11-16 16:23:46 +00:00
Owner

Phase B of the bedrock harness. The test cluster now builds itself from its own OpenBao, following the c1 day-0 order: install, boot, OpenBao, CA set, enrolment, then k3s.

Changes

  • modules/profiles/harness.nix: the OpenBao agents on test-01..03 connect to https://10.30.20.41:8200, the cluster's own OpenBao on test-01, the way c1's agents connect to think-01. Before, they used the workstation OpenBao.

  • lab:install: the hosts install without an enrolment token (LAB_ENROLL=none). lab-node.sh adds the token to fw_cfg only when one was minted.

  • lab:boot now ends with lab:bedrock (harness-openbao-cluster.sh bootstrap), which:

    • brings up OpenBao on test-01..03 and applies vault/sim
    • mints the cluster CA set with pki-cluster-ca.sh, writes the Harbor dummy secret and the canaries
    • enrols each host with the fleet's own bao-enroll.sh.

    k3s starts once the agents have fetched their certificates.

  • vm:check reads its canary from the cluster's OpenBao, and vm:rotate-check rotates the CAs there.

  • The workstation OpenBao (harness-bao.sh) stays, for the routers and for future test clusters that depend on an outside OpenBao.

Coverage change

The install-time fw_cfg enrolment path no longer runs in vm:e2e. Enrolment is now tested the c1 way, after first boot with bao-enroll.sh. The fw_cfg path comes back with the first dependent test cluster.

Tested

The full vm:e2e passes on 57ebcb4, with all 11 stages green. The test cluster went from nothing to Ready using only its own OpenBao, and the reset test waited for that OpenBao after every server reboot.

Phase B of the bedrock harness. The test cluster now builds itself from its own OpenBao, following the c1 day-0 order: install, boot, OpenBao, CA set, enrolment, then k3s. ## Changes - `modules/profiles/harness.nix`: the OpenBao agents on test-01..03 connect to `https://10.30.20.41:8200`, the cluster's own OpenBao on test-01, the way c1's agents connect to think-01. Before, they used the workstation OpenBao. - `lab:install`: the hosts install without an enrolment token (`LAB_ENROLL=none`). `lab-node.sh` adds the token to `fw_cfg` only when one was minted. - `lab:boot` now ends with `lab:bedrock` (`harness-openbao-cluster.sh bootstrap`), which: - brings up OpenBao on test-01..03 and applies `vault/sim` - mints the cluster CA set with `pki-cluster-ca.sh`, writes the Harbor dummy secret and the canaries - enrols each host with the fleet's own `bao-enroll.sh`. k3s starts once the agents have fetched their certificates. - `vm:check` reads its canary from the cluster's OpenBao, and `vm:rotate-check` rotates the CAs there. - The workstation OpenBao (`harness-bao.sh`) stays, for the routers and for future test clusters that depend on an outside OpenBao. ## Coverage change The install-time `fw_cfg` enrolment path no longer runs in `vm:e2e`. Enrolment is now tested the c1 way, after first boot with `bao-enroll.sh`. The `fw_cfg` path comes back with the first dependent test cluster. ## Tested The full `vm:e2e` passes on 57ebcb4, with all 11 stages green. The test cluster went from nothing to Ready using only its own OpenBao, and the reset test waited for that OpenBao after every server reboot.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lab/machine-configs!35
No description provided.