Skip to main content
Integrate Vault storage using the built-in Raft consensus protocol for a high-availability cluster without external dependencies like Consul. This approach simplifies operations, reduces network hops, and ensures every node holds a complete data replica.

Why Choose Integrated Storage (Raft)

Deploying the Integrated Storage Backend
  • Raft Protocol: Leader election and data replication ported from Consul directly into Vault.
  • High Availability: A 3–5 node cluster tolerates up to two node failures, since each node holds a full data copy.
  • Simplified Operations: No separate Consul cluster to provision, monitor, or troubleshoot.
  • Built-in Snapshots: Automated data retention snapshots; Enterprise users can leverage the Vault 1.6+ snapshot agent.
  • Official Support: HashiCorp fully supports both Integrated Storage (Raft) and Consul backends in Enterprise.

Deployment Topology

This diagram shows five Vault nodes (A–E) forming a Raft cluster communicating over TCP port 8201:
Network Diagram: Vault Integrated Storage Cluster

Vault Configuration Example

Below is a sample HCL file for a Vault node with integrated storage. Make sure each node_id is unique across the cluster:
The retry_join block supports various providers (AWS, Azure, GCP) or static IP/hostname lists. Adjust to your environment.

Joining and Managing the Raft Cluster

Auto-joining via AWS

Vault nodes configured with the retry_join block will discover and join the leader automatically based on AWS tags.

Manual Join

When auto-join isn’t available, add followers manually:
Replace <leader_node_address> with your leader’s Vault API endpoint.
Run the join command only on standby nodes. Do not execute it on the leader to avoid election issues.

Viewing Cluster Membership

List Raft peers and their voting status:
Sample output:

Conclusion

By configuring Vault with its integrated Raft storage backend, you gain:
  • A clear, multi-node topology without external dependencies.
  • An HCL configuration template for integrated storage with AWS KMS sealing.
  • Commands for automatic and manual cluster enrollment.
  • Techniques to monitor and list your Raft peers.
Continue exploring Vault’s authentication methods, secrets engines, and advanced features in the next modules.

Watch Video

Practice Lab