Cluster Details
1. Enable Performance Replication on the Primary
-
Authenticate to the primary cluster:
- Enable the primary replication role:
Enabling the primary replication role will briefly make Vault unavailable. Expect a short service interruption.
-
Generate a wrapped token for the secondary:
Copy the
wrapping_token value; you’ll need it to enable replication on the secondary node.2. Enable Performance Replication on the Secondary
-
Authenticate to the secondary cluster:
-
Initialize the secondary with the wrapped token:
3. Verify Replication Status
Run this command on either node to check the performance replication status:4. Token & Unseal Key Behavior
Once performance replication is active, the secondary cluster adopts the primary’s unseal keys and root tokens.-
Attempting to log in with the old secondary root token fails:
-
Use the primary’s root token to authenticate on the secondary:
5. Replicating Auth Methods, Secrets Engines & Data
All Vault configuration changes—enabled auth methods, secrets engines, user accounts, and KV data—on the primary automatically replicate to the secondary. Example: Enableuserpass auth and create a user on the primary:
Service tokens created on the primary do not replicate. Only Vault’s native auth methods and user credentials are mirrored.