Skip to content

Commit

Permalink
Reload raft TLS keys on active startup (#11660) (#11663)
Browse files Browse the repository at this point in the history
  • Loading branch information
briankassouf authored May 19, 2021
1 parent 814ad56 commit fff6f65
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vault/raft.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,12 @@ func (c *Core) setupRaftActiveNode(ctx context.Context) error {
raftBackend.SetupAutopilot(c.activeContext, autopilotConfig, c.raftFollowerStates, disableAutopilot)

c.pendingRaftPeers = &sync.Map{}

// Reload the raft TLS keys to ensure we are using the latest version.
if err := c.checkRaftTLSKeyUpgrades(ctx); err != nil {
return err
}

return c.startPeriodicRaftTLSRotate(ctx)
}

Expand Down

0 comments on commit fff6f65

Please sign in to comment.