Skip to content
This repository was archived by the owner on May 18, 2021. It is now read-only.

Fix cred process expiration #303

Merged
merged 1 commit into from
Oct 22, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions cmd/cred-process.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,7 @@ func credProcessRun(cmd *cobra.Command, args []string) error {
AccessKeyID: creds.AccessKeyID,
SecretAccessKey: creds.SecretAccessKey,
SessionToken: creds.SessionToken,
// reuse the provided session duration
Expiration: time.Now().Add(p.SessionDuration).Format(time.RFC3339),
Expiration: p.GetExpiration().Format(time.RFC3339),
}

var output []byte
Expand Down