Skip to content

Commit

Permalink
adding DR cluster promotion policy
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan Krausen committed Feb 10, 2022
1 parent 3e7b146 commit 6704cd3
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions vault/policies/dr-promotion.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
### dr-secondary-promotion Vault policy

# To promote a DR cluster to a DR primary
path "sys/replication/dr/secondary/promote" {
capabilities = [ "update" ]
}

# To update which primary cluster to point to for replication
path "sys/replication/dr/secondary/update-primary" {
capabilities = [ "update" ]
}

### Next two endpoints only required with Raft storage ###

# To read the current autopilot status
path "sys/storage/raft/autopilot/state" {
capabilities = [ "update" , "read" ]
}

# To remove a vault node from the raft cluster if using immutable upgrades
path "/sys/storage/raft/remove-peer" {
capabilities = [ "create", "update" ]
}

0 comments on commit 6704cd3

Please sign in to comment.