Joining OpenBao Raft nodes with retry_join, cloud auto-join and DNS SRV

Automatic Raft joining removes manual peer steps when you add OpenBao nodes, but it only works when each node's discovery settings, TLS trust and ports are checked against your environment. This page explains the options and the work involved.

On this page

How OpenBao Raft nodes find each other when a cluster forms

Teams use Raft auto-join so that new OpenBao nodes locate an existing integrated-storage cluster and join it without anyone handling raft peers by hand. This page covers the three discovery approaches the project documents for that job: retry_join stanzas, cloud provider auto-join and DNS SRV discovery. Integrated storage (Raft) is one of the two officially supported HA backends in the OpenBao HA docs, alongside PostgreSQL, so the join mechanism is a core part of how a production cluster forms rather than an optional convenience. The decision belongs jointly to the platform team that builds and rebuilds the nodes and the security team that reviews how nodes are admitted and how their addresses are published.

Cluster formation is a one-time event on paper, but it stops being one as soon as node count grows or nodes are rebuilt after patching, image replacement or a failed host. Each rebuild that requires an operator to find a leader address, run a join command and confirm the new peer is a manual step that can be done wrongly under pressure. Auto-join turns that step into configuration that is written once, reviewed and tested repeatedly. Before you pick a method, decide where your nodes will run and whether they have stable DNS names, cloud tags or only changing IP addresses, because that answer largely determines which discovery style is practical for your environment.

Treat the exact configuration keys as something to confirm, not to copy from this page. The stanza names, the fields each discovery method reads and the behavior when a leader is not yet reachable should be checked against the current OpenBao HA documentation for the version you will run, and your team should test the join sequence in a non-production cluster first. Ask your implementation partner, or your own platform engineers, to write down which method is chosen, who can change the discovery settings and how a join is verified, so that the decision is reviewed as a control rather than left to whoever builds the next node.

Which join method fits your environment

This table compares static addresses, cloud provider auto-join and DNS SRV discovery across the environments where Raft nodes usually run. Read each row against your own infrastructure, then check the column for what you must confirm before choosing. The main takeaway is that the join method follows from how your nodes get stable identities and addresses, not from preference.

EnvironmentStatic retry_join addressesCloud auto-joinDNS SRV discovery
Fixed-address VMsSimple fit: each node lists known peer addresses that rarely changeUsable only if the VMs carry provider tags or metadata that the auto-join method readsWorks if your DNS zone is maintained and SRV records are updated when nodes move
Cloud instances with provider tags or metadataWorks, but addresses change when instances are replaced, so lists need upkeepStrongest fit when tags or metadata reliably identify cluster membersPossible, but only if your cloud DNS publishes and updates SRV records automatically
Internal DNS zone publishing SRV recordsWorks, though it duplicates information the zone already holdsNot required when the zone is the source of truthStrong fit when the zone is owned by your network team and SRV records are monitored
Kubernetes StatefulSetsPossible with stable pod DNS names, but addresses must match the StatefulSet namingDepends on the cluster's cloud integration and the provider keys supported by your OpenBao versionRequires cluster DNS to resolve the expected SRV names for headless services
Mixed or hybrid estatesKeeps one explicit list, which is easy to audit but needs review after each changeRequires a separate method per provider, so confirm each one separatelyCan unify discovery across sites if one zone is authoritative
What to confirm before choosingConfirm the address format and TLS names each node presentsConfirm supported providers and the exact keys in the OpenBao HA docs for your versionConfirm the SRV record format, the DNS version in 2.6 and later, and that port values resolve correctly
Port handlingSet the API and cluster ports explicitly on every nodeConfirm how your version reads the port, since handling changed in 2.7.1Confirm the SRV port matches the listener, because mismatched ports cause failed joins

How a new node joins the Raft cluster

A new OpenBao node starts with its configuration, then uses the discovery method you chose (retry_join entries, a cloud lookup or DNS SRV) to find candidate peers. It contacts a reachable peer over the cluster API with TLS, is added to the Raft configuration, and replicates existing data before it serves as a standby. If discovery fails, the node retries, so check that each candidate address and certificate is reachable from the new node's network before you start it.

Sequence from node start to standby, including the retry path when discovery fails.

Configuring retry_join on each node

This sequence takes a single initialized OpenBao node and grows it into a Raft cluster in which each joining node finds the leader on its own. Each step ends with a check so you know the cluster formed before you move on.

  1. Prepare and initialize the first node

    Start from a node that has the OpenBao configuration in place, with storage "raft" set to a data path that only this node uses and an api_addr and cluster_addr that the other nodes can reach. Run bao operator init once on this node, record the unseal material under your own key custody process, and unseal it. Confirm the node reports as active with bao status before you add any peers, because every later join depends on this node being the working leader.

  2. Set Raft storage path and cluster addresses on joining nodes

    On each joining node, set the storage "raft" path, api_addr and cluster_addr to values that match that node's own hostname or IP, not the first node's. Keep the listener and storage stanzas identical in structure across nodes so that only the addresses differ. Confirm the values resolve from the other nodes with a simple network test before you start the service, since a wrong address here is the most common reason a join silently fails.

  3. Add the retry_join block with your discovery method

    Add one or more retry_join blocks under storage "raft" on each joining node, pointing at the leader's API address. Choose a static address list for a small fixed environment, or a cloud auto-join or DNS SRV entry where your platform already maintains node inventory. Confirm the exact key names, discovery syntax and supported options for your OpenBao version in the documentation before you copy them, because the storage configuration reference is the source of truth for these settings.

  4. Distribute CA and TLS material to every node

    Install the certificate authority bundle and each node's TLS certificate and key where the listener and cluster communication expect them, and confirm the leader's certificate covers the name or address you put in retry_join. Nodes that do not trust each other will fail the join during TLS negotiation even when the addresses are correct. Confirm by making a manual TLS connection from each joining node to the leader's API address and checking that the handshake succeeds with no certificate errors.

  5. Start the joining nodes and unseal them

    Start the OpenBao service on each joining node and let the retry_join logic contact the leader. Joining nodes must be unsealed with the same unseal method as the cluster, so confirm each node's seal configuration before startup. Check the service logs for join messages and watch for repeated retry attempts, which usually point to an address, certificate or port mismatch rather than a Raft fault.

  6. Verify membership with the Raft peer list

    Run bao operator raft list-peers against the leader and confirm that every joining node appears with a unique node ID and the expected address. Check the voter column as well, since a new node may join as a non-voter depending on your Autopilot and join settings. If a node is missing, compare its logs against its retry_join entry before changing anything else.

  7. Confirm standby status on the health endpoint

    Query /sys/health on each joining node and confirm it reports a standby state, with the leader reporting active. Use the default status codes as your baseline for any load balancer probes you configure later. A joining node that reports sealed or uninitialized has not completed the join, so return to the earlier steps and check its storage path and seal configuration.

Securing discovery, TLS trust and join credentials

Auto-join removes manual steps, but it also decides which addresses a node trusts and which identity it presents when it joins. The cards below cover the places where discovery, certificates, cloud permissions, DNS records and membership changes can let the wrong node or the wrong cluster into your Raft group.

Attacker-controlled discovery results

Any discovery source, whether a cloud tag query, a DNS SRV lookup or a static list, can return addresses that an attacker has influenced. Treat every returned address as untrusted until the TLS handshake with the peer succeeds and the peer presents a certificate your CA issued. Check which principals can create instances with the cluster tag or write DNS records, and restrict those rights to the team that runs OpenBao. Confirm in a lab that a node with a wrong address fails to join rather than joining silently.

HA docs

Peer certificate trust and CA scope

Nodes verify each other over TLS, so the certificate authority that signs node certificates defines who may join. Use a CA dedicated to OpenBao cluster nodes rather than a general corporate CA, and keep the signing key out of the cluster itself. Check that each node certificate carries the names and IP addresses that peers will use to reach it, and that expired or revoked certificates cannot rejoin. Write down the rotation procedure before the first certificate expires.

Cloud identity and join permissions

Cloud auto-join works only if the joining instance can call the provider API to list peers, which usually means an instance profile or service account with read access to tags or instance metadata. Grant only the describe or list permissions the discovery method needs, scope them to the cluster's accounts and regions, and avoid broad administrator roles on OpenBao hosts. Review these policies whenever the instance role changes, because a wider role can expose the peer list to any workload on the host.

DNS SRV record ownership and change control

DNS SRV discovery trusts whatever records the zone publishes, so record writes are a security control, not just an operations task. Name a single owning team for the OpenBao SRV records, restrict write access in the DNS provider, and route changes through the same review used for production firewall rules. Monitor the records for unexpected additions or removals, and confirm that a deleted node's record is removed promptly so the address cannot be reused by an unrelated host.

Joining the wrong cluster after address reuse

Cloud instances and IP addresses are reused quickly, so a retry_join target may point at a host that now belongs to a different OpenBao cluster or to a different environment. Give each cluster a distinct cluster name and separate storage paths, and use per-environment CA chains so a node from staging cannot satisfy production trust checks. Before each join, confirm the target's cluster identity with the operator tooling and keep staging and production discovery tags or DNS zones apart.

Audit logging of membership changes

Membership changes are the moments when a cluster's trust boundary moves, so record who or what initiated each one. Enable OpenBao audit devices, forward them to a log system your security team reads, and alert on unexpected peer additions or removals. Compare the peer list from list-peers with your inventory after each change, and record the approving change ticket alongside the event so an auditor can trace each join back to an approved request.

Storage docs

Cloud auto-join versus DNS SRV by environment

On cloud-hosted virtual machines, a node usually finds its peers by querying the provider API for instances that share a tag, label or instance group. The platform team controls the discovery filter, and a narrowly scoped cloud role lets each node read that inventory without static peer addresses. Review the OpenBao high availability documentation for the auto-join syntax your release supports.

  • Discovery inputs: the provider, region and a tag or label that marks cluster members, set in the retry_join configuration.
  • IAM ownership: a read-only role that can list instances, attached to each OpenBao VM and nothing broader.
  • Tagging discipline: an untagged or mistagged instance can join the wrong cluster or be missed during scale-out.
  • Failure modes to test: an autoscaling replacement node, a zone outage, and an instance that boots without its role attached.
  • Address and port handling: confirm the advertised address and ports for each node, since port handling in this path was fixed in 2.7.1.

Before go-live, confirm which providers your version supports for auto-join and how joins behave when the provider API is unreachable.

What the 2.7.1 port handling fix changes for existing clusters

OpenBao 2.7.1 includes a fix to port handling in auto-join. If your Raft nodes join through auto-join on 2.6 or 2.7.0, review the address and port values in your join configuration and plan a patch to 2.7.1 (or the fixed 2.6 release). OpenBao v2.7.1 was released on October 1, 2026, and v2.6.4 was released the same day for the previous minor line, so the fixed build for your line should be taken from the same release set. Do not assume that a cluster which joined successfully on an older build has correct port handling for future joins, especially when nodes are replaced or added later.

Start with the OpenBao releases page and read the change notes for the exact scope of the port handling change before you schedule anything. Confirm which auto-join forms it touches (retry_join stanzas, cloud provider discovery, or DNS SRV discovery), whether it changes how an explicit port is read or how a default port is applied, and whether any configuration you already run needs editing after the upgrade. Record the answers in your change ticket. If the notes are unclear for your configuration, ask the project or your implementation partner before the change window, not during it.

Test the patched join path on a non-production cluster that mirrors your production configuration, including the same discovery method and the same port layout. Rehearse adding a node through auto-join and confirm it becomes a healthy voter or non-voter as your design intends. Before touching production, take a Raft snapshot and confirm you can restore it, so your rollback path is real rather than assumed. Keep the previous binary available, and write down the order in which nodes will be patched so the cluster keeps its quorum throughout.

Limits to confirm before relying on auto-join

Auto-join removes manual steps, but it only works when the discovery method, version and cluster design match your environment. The cards below list what to confirm in the OpenBao releases and HA documentation before you write the final stanzas.

Supported cloud providers and discovery keys

Cloud auto-join depends on which providers and tag or key names the release accepts. Confirm the exact discovery parameters for your provider in the current configuration reference, and test them against a non-production instance. Do not assume a provider works because another one does. A wrong tag key or filter typically fails silently, so the node stays alone until you check the logs.

HA docs

DNS SRV record format and resolver behavior

DNS SRV discovery requires a record name, port and target layout that your resolver publishes and that nodes can query. Confirm the exact record format the release expects, including the service label and how the port is read. Also test how your resolver caches answers and what happens when a record lists a node that is not yet running. Stale records can send joins to the wrong address.

OpenBao releases

Minimum version for each discovery method

SRV discovery was added in 2.6, and the port handling fix shipped in 2.7.1. Check the release notes for the version you plan to run before choosing a method. A mixed-version cluster during an upgrade can behave differently across nodes, so confirm that every node runs a version with the discovery behavior you need.

Release notes

Voter count the cluster targets

Auto-join decides how nodes find each other, not how many should vote. Settle the voter count before you write the join configuration, because it determines how many peers must be reachable for a quorum to form. Use the sibling sizing guidance to decide between three and five voters, and to plan which nodes join as non-voters.

Automation without a provisioning tool

Confirm whether your team can join nodes automatically when no configuration management, orchestrator or image pipeline is present. Retry_join runs when the server starts, so a node that boots before its peers exist will keep retrying. Decide who unseals new nodes, where the initial root material is stored, and how a replacement node is brought in without manual peer commands.

Discovery behavior when a peer is down

Test formation with one peer intentionally offline. Confirm how many retries a node makes, how long it waits between attempts, and whether a partially formed cluster can still elect a leader. Record the expected log messages so on-call engineers can tell a healthy retry loop from a broken discovery record. Confirm these behaviors in the HA documentation for your release.

HA docs

What buyers ask about Raft auto-join setup and support

How much effort does Raft auto-join setup take?

Effort depends mainly on how many environments need a cluster, which discovery method each one uses and how much automation already exists. One environment on one cloud provider, managed with infrastructure as code, is a small change. Several environments, a mix of cloud and on-premises nodes, or DNS SRV records owned by another team add coordination work. Testing scope also drives effort: join behavior, node replacement and restarts should each be verified before production. The build is a one-time cost, while upgrades and reviews recur. Ask for the quote to list each environment, the discovery method chosen for each, the test cases included and the handover material.

How long does it take to join a first OpenBao Raft cluster?

The join itself is usually quick once the configuration is correct, so most of the elapsed time goes to preparation and approvals. The main variables are how fast network rules, DNS records or cloud identity permissions are granted, whether TLS certificate material already exists, and how often change windows occur. First-time problems with certificate names or blocked cluster ports can also add cycles. No duration is stated here. Ask for a written timeline that separates client dependencies from DeployOpen work, names the change windows you need, and states what happens if an approval arrives late.

What does the client need to provide for auto-join?

The client provides access and decisions, which are often the longest items. For cloud auto-join, this means an identity with permission to describe the instances that hold cluster members. For DNS SRV, it means permission to create or update the service records in the zone. Every node also needs TLS material from your certificate authority, with names that match the addresses nodes use to reach each other. Firewall rules for the cluster traffic, change windows and named owners for network, DNS, cloud and security approvals are also required. Confirm these owners in the written scope before work begins.

Can an internal team configure retry_join on its own?

A capable internal team can do it alone if it has the right skills and time to test. The team needs working knowledge of Raft consensus and quorum, OpenBao server configuration, TLS certificate issuance, the cloud or DNS system used for discovery, and service management on the host operating system. The main risk is an incorrect bootstrap order or certificate mismatch that leaves nodes unable to join, with recovery depending on snapshots and knowledge of peer state. The OpenBao high availability docs explain the supported HA model and are a sound starting point. Compare your team's skills against this list before deciding.

Will DeployOpen take over OpenBao upgrades after the cluster is live?

Yes, ongoing support, upgrades and continuous testing are available as retainers, so upgrades can be taken on after the initial build. A retainer for this work would typically cover reviewing release notes for each version, such as the 2.7.0 and 2.7.1 releases, planning the node-by-node sequence, verifying that retry_join and discovery settings still work afterward and documenting the result. Retainer scope, version coverage, upgrade cadence and whether testing sits inside or outside the retainer should all appear in writing. Ask what happens when a security advisory requires an unplanned upgrade.

Which discovery method should we pick for OpenBao nodes?

Choose the method that matches where the nodes run and who controls the platform. Cloud auto-join suits nodes that run on a provider with instance identity and tags you can query. DNS SRV, added in OpenBao 2.6, suits environments where one managed DNS name should represent cluster members. Static retry_join addresses are the simplest option for a small set of fixed hosts, but they need editing when hosts change. Mixed environments often combine methods. Test the chosen method in a non-production environment that mirrors production networking, and record which team owns each input so changes are reviewed.

Does the 2.7.1 port handling fix affect existing clusters?

It may, depending on how your join addresses and listener ports are configured, so check the release notes before deciding. OpenBao v2.7.1 was released on October 1, 2026, and its changes are listed on the OpenBao releases page. Review any cluster that sets custom API or cluster addresses, uses port mapping through load balancers or containers, or relies on automatic join across networks. Confirm with your own test cluster whether the fixed behavior changes your joins. Ask for the version review to appear in the written scope so the decision is recorded.

How DeployOpen scopes and delivers Raft auto-join

DeployOpen plans OpenBao Raft auto-join as part of the cluster design, not as an afterthought. We scope the join method against your network, cloud and DNS setup, build it in a test environment you control, and hand over the configuration and runbooks your team needs to operate it.

How we scope

  • Confirm which join method fits your network: retry_join with fixed addresses, cloud provider discovery or DNS SRV.
  • Map node addresses, TLS certificates, load balancer and port rules that each join path depends on.
  • Agree the scope, deliverables and timeline in writing before any configuration work starts.

How we build

  • Write the retry_join or discovery stanzas for each node and test them against your actual networks.
  • Verify that new nodes join as Raft peers, elect a leader and reach the expected voter count.
  • Test failure cases such as a node restart, a changed address and a blocked port before go-live.

How we hand over

  • Deliver the tested configuration files, with each join setting explained in terms your team can review.
  • Document the join sequence, the verification commands and the expected peer list for each environment.
  • Walk your platform and security teams through the setup so they can review and maintain it.

How we support

  • Support upgrades to newer OpenBao releases, including changes to join behavior such as port handling fixes.
  • Offer ongoing support, upgrades and continuous testing as a retainer after the initial handover.
  • Re-test join behavior when cloud, DNS or network configuration changes in your environment.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.