Skip to content

Commit

Permalink
don't check dr secondary for token create
Browse files Browse the repository at this point in the history
  • Loading branch information
swayne275 committed Nov 16, 2021
1 parent 4e9d777 commit c036a1a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions vault/dynamic_system_view.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,7 @@ func (e extendedSystemViewImpl) SudoPrivilege(ctx context.Context, path string,
// Resolve the token policy
te, err := e.core.tokenStore.Lookup(ctx, token)
if err != nil {
if !e.core.IsDRSecondary() {
e.core.logger.Error("failed to lookup sudo token", "error", err)
}
e.core.logger.Error("failed to lookup sudo token", "error", err)
return false
}

Expand Down

0 comments on commit c036a1a

Please sign in to comment.