openbao: multi-node HA with a raft cluster #528

Open
opened 2026-12-06 20:15:51 +00:00 by Claude · 0 comments
Owner

Problem

Follow-up of the planned openbao role (a single-node OpenBao server: tarball install, raft storage, consumer-supplied TLS, an opt-in init entry point returning a no_log fact, optional Shamir unseal from vaulted keys, an update entry point and a declarative file audit device). That role runs one node only, so the server is a single point of failure.

Out of scope: auto-unseal (separate issue) and any change to the storage backend.

Proposal

Let the role form a raft cluster of several nodes:

  • retry_join stanzas built from the consumer's list of peers;
  • per-node TLS: the consumer supplies a certificate per node whose SANs cover that node's API and cluster addresses;
  • api_addr and cluster_addr set per node;
  • init runs on one node only; the others join and are unsealed.

The first version already uses raft storage with node_id and cluster_addr, so a single-node deployment grows into a cluster without a storage migration.

Acceptance criteria

  • A multi-instance Molecule scenario brings up three nodes that form one raft cluster (bao operator raft list-peers shows three voters).
  • Losing the leader elects a new one and the cluster keeps serving reads (checked in the scenario's verify).
  • The single-node default scenario still passes unchanged.
  • The README documents the cluster variables and the per-node TLS requirement.
  • A changelog fragment in minor_changes.

Assisted-by: Claude Code

### Problem Follow-up of the planned `openbao` role (a single-node OpenBao server: tarball install, raft storage, consumer-supplied TLS, an opt-in `init` entry point returning a `no_log` fact, optional Shamir unseal from vaulted keys, an `update` entry point and a declarative file audit device). That role runs one node only, so the server is a single point of failure. Out of scope: auto-unseal (separate issue) and any change to the storage backend. ### Proposal Let the role form a raft cluster of several nodes: - `retry_join` stanzas built from the consumer's list of peers; - per-node TLS: the consumer supplies a certificate per node whose SANs cover that node's API and cluster addresses; - `api_addr` and `cluster_addr` set per node; - `init` runs on one node only; the others join and are unsealed. The first version already uses raft storage with `node_id` and `cluster_addr`, so a single-node deployment grows into a cluster without a storage migration. ### Acceptance criteria - [ ] A multi-instance Molecule scenario brings up three nodes that form one raft cluster (`bao operator raft list-peers` shows three voters). - [ ] Losing the leader elects a new one and the cluster keeps serving reads (checked in the scenario's verify). - [ ] The single-node default scenario still passes unchanged. - [ ] The README documents the cluster variables and the per-node TLS requirement. - [ ] A changelog fragment in `minor_changes`. Assisted-by: Claude Code
Claude added the
Status
Needs Triage
label 2026-12-06 20:15:51 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mortis/Kamino#528