Fix DB static role credential rotation replication issue (#8105)

* Fix DB static role credential rotation replication issue

* Rebased and switched to new path forward options

* Removed unnecesary write to storage
This commit is contained in:
Michel Vocks 2020-01-10 01:45:07 +01:00 committed by Brian Kassouf
parent 154b11bedd
commit 80bc527726

View file

@ -41,8 +41,12 @@ func pathRotateCredentials(b *databaseBackend) []*framework.Path {
},
},
Callbacks: map[logical.Operation]framework.OperationFunc{
logical.UpdateOperation: b.pathRotateRoleCredentialsUpdate(),
Operations: map[logical.Operation]framework.OperationHandler{
logical.UpdateOperation: &framework.PathOperation{
Callback: b.pathRotateRoleCredentialsUpdate(),
ForwardPerformanceStandby: true,
ForwardPerformanceSecondary: true,
},
},
HelpSynopsis: pathCredsCreateReadHelpSyn,