From e2d3bbdf50f6a16bf0ecfdf4ae9893db1b9194ed Mon Sep 17 00:00:00 2001 From: Michel Vocks Date: Thu, 9 Jan 2020 16:03:23 +0100 Subject: [PATCH] Backport: Fix DB root rotation replication issue --- 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 bc82b7adbf8a..75e8e48205e0 100644 --- a/builtin/logical/database/path_rotate_credentials.go +++ b/builtin/logical/database/path_rotate_credentials.go @@ -21,8 +21,12 @@ func pathRotateCredentials(b *databaseBackend) []*framework.Path { }, }, - Callbacks: map[logical.Operation]framework.OperationFunc{ - logical.UpdateOperation: b.pathRotateCredentialsUpdate(), + Operations: map[logical.Operation]framework.OperationHandler{ + logical.UpdateOperation: &framework.PathOperation{ + Callback: b.pathRotateCredentialsUpdate(), + ForwardPerformanceSecondary: true, + ForwardPerformanceStandby: true, + }, }, HelpSynopsis: pathCredsCreateReadHelpSyn,