harness phase B: the test cluster bootstraps from its own OpenBao #35
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lab/machine-configs!35
Loading…
Reference in a new issue
No description provided.
Delete branch "bedrock-phase-b"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 tohttps://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.shadds the token tofw_cfgonly when one was minted.lab:bootnow ends withlab:bedrock(harness-openbao-cluster.sh bootstrap), which:vault/simpki-cluster-ca.sh, writes the Harbor dummy secret and the canariesbao-enroll.sh.k3s starts once the agents have fetched their certificates.
vm:checkreads its canary from the cluster's OpenBao, andvm:rotate-checkrotates 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_cfgenrolment path no longer runs invm:e2e. Enrolment is now tested the c1 way, after first boot withbao-enroll.sh. Thefw_cfgpath comes back with the first dependent test cluster.Tested
The full
vm:e2epasses on57ebcb4, 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.