From 26ae0e88245d305d1028bb6c3f3285422f172c17 Mon Sep 17 00:00:00 2001 From: Jason O'Donnell <2160810+jasonodonnell@users.noreply.github.com> Date: Fri, 11 Jun 2021 12:21:46 -0400 Subject: [PATCH] Update router to forward creds requests (#76) --- plugin/path_creds.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugin/path_creds.go b/plugin/path_creds.go index 9e88ba3..a3da728 100644 --- a/plugin/path_creds.go +++ b/plugin/path_creds.go @@ -47,8 +47,12 @@ func (b *backend) pathCreds() *framework.Path { Description: "Name of the role", }, }, - Callbacks: map[logical.Operation]framework.OperationFunc{ - logical.ReadOperation: b.credReadOperation, + Operations: map[logical.Operation]framework.OperationHandler{ + logical.ReadOperation: &framework.PathOperation{ + Callback: b.credReadOperation, + ForwardPerformanceStandby: true, + ForwardPerformanceSecondary: true, + }, }, HelpSynopsis: credHelpSynopsis, HelpDescription: credHelpDescription,