Skip to content

Commit

Permalink
Forward rotation requests from standbys (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
catsby authored May 18, 2020
1 parent 99c259c commit 3dceeb3
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions plugin/path_rotate_root_creds.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,24 @@ import (
"context"
"errors"
"fmt"
"github.com/hashicorp/vault-plugin-secrets-ad/plugin/util"
"github.com/hashicorp/vault/sdk/framework"
"github.com/hashicorp/vault/sdk/logical"
"math"
"sync/atomic"
"time"

"github.com/hashicorp/vault-plugin-secrets-ad/plugin/util"
"github.com/hashicorp/vault/sdk/framework"
"github.com/hashicorp/vault/sdk/logical"
)

func (b *backend) pathRotateCredentials() *framework.Path {
return &framework.Path{
Pattern: "rotate-root",
Callbacks: map[logical.Operation]framework.OperationFunc{
logical.ReadOperation: b.pathRotateCredentialsUpdate,
Operations: map[logical.Operation]framework.OperationHandler{
logical.ReadOperation: &framework.PathOperation{
Callback: b.pathRotateCredentialsUpdate,
ForwardPerformanceStandby: true,
ForwardPerformanceSecondary: true,
},
},

HelpSynopsis: pathRotateCredentialsUpdateHelpSyn,
Expand Down

0 comments on commit 3dceeb3

Please sign in to comment.