From 87cd41f87318f7fec67b8e050d2e62474c7c7cf0 Mon Sep 17 00:00:00 2001 From: Michel Vocks Date: Thu, 9 Jan 2020 16:10:22 +0100 Subject: [PATCH] Backport: Fix DB static role credential 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..d17b55fd3062 100644 --- a/builtin/logical/database/path_rotate_credentials.go +++ b/builtin/logical/database/path_rotate_credentials.go @@ -37,8 +37,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,