Skip to content

Commit

Permalink
needsSessionToRotate should return true if the profile has mfa_serial
Browse files Browse the repository at this point in the history
  • Loading branch information
jstewmon committed May 17, 2019
1 parent 6f1fb7a commit a47b8b9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vault/rotator.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,5 +237,8 @@ func (r *Rotator) needsSessionToRotate(profileName string) bool {
// TODO: should this comparison be case-insensitive?
return true
}
if sourceProfile.MFASerial != "" {
return true
}
return false
}

0 comments on commit a47b8b9

Please sign in to comment.