mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
Forbid requests generated at least 15 min in the past or in the future (#2648)
This commit is contained in:
committed by
Harshavardhana
parent
421cccb1d7
commit
32201a18ab
@@ -17,6 +17,8 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/fatih/color"
|
||||
"github.com/minio/minio/pkg/objcache"
|
||||
)
|
||||
@@ -58,6 +60,11 @@ var (
|
||||
maxFormFieldSize = int64(1024 * 1024)
|
||||
)
|
||||
|
||||
var (
|
||||
// The maximum allowed difference between the request generation time and the server processing time
|
||||
maxSkewTime = 15 * time.Minute
|
||||
)
|
||||
|
||||
// global colors.
|
||||
var (
|
||||
colorBlue = color.New(color.FgBlue).SprintfFunc()
|
||||
|
||||
Reference in New Issue
Block a user