From 7ebb303571a239476b13d77ceaa438107bd0f934 Mon Sep 17 00:00:00 2001 From: Michel Vocks Date: Fri, 10 Jan 2020 01:45:07 +0100 Subject: [PATCH] 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 --- builtin/logical/database/path_rotate_credentials.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/builtin/logical/database/path_rotate_credentials.go b/builtin/logical/database/path_rotate_credentials.go index 75e8e48205e0..5955860e16bb 100644 --- a/builtin/logical/database/path_rotate_credentials.go +++ b/builtin/logical/database/path_rotate_credentials.go @@ -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,