mirror of
https://github.com/minio/minio.git
synced 2025-11-08 21:24:55 -05:00
feat: increase allowed maximum STS expiration timeout to 365 days (#12704)
This commit is contained in:
@@ -197,8 +197,8 @@ func GetDefaultExpiration(dsecs string) (time.Duration, error) {
|
||||
|
||||
// The duration, in seconds, of the role session.
|
||||
// The value can range from 900 seconds (15 minutes)
|
||||
// up to 7 days.
|
||||
if expirySecs < 900 || expirySecs > 604800 {
|
||||
// up to 365 days.
|
||||
if expirySecs < 900 || expirySecs > 31536000 {
|
||||
return 0, auth.ErrInvalidDuration
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user