mirror of
https://github.com/pgsty/minio.git
synced 2026-07-23 06:00:24 +03:00
support passing signatureAge conditional (#18529)
this PR allows following policy
```
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Deny a presigned URL request if the signature is more than 10 min old",
"Effect": "Deny",
"Action": "s3:*",
"Resource": "arn:aws:s3:::DOC-EXAMPLE-BUCKET1/*",
"Condition": {
"NumericGreaterThan": {
"s3:signatureAge": 600000
}
}
}
]
}
```
This is to basically disable all pre-signed URLs that are older than 10 minutes.
This commit is contained in:
@@ -52,7 +52,7 @@ require (
|
||||
github.com/minio/madmin-go/v3 v3.0.33
|
||||
github.com/minio/minio-go/v7 v7.0.64
|
||||
github.com/minio/mux v1.9.0
|
||||
github.com/minio/pkg/v2 v2.0.3-0.20231107172951-8a60b89ec9b4
|
||||
github.com/minio/pkg/v2 v2.0.4
|
||||
github.com/minio/selfupdate v0.6.0
|
||||
github.com/minio/sha256-simd v1.0.1
|
||||
github.com/minio/simdjson-go v0.4.5
|
||||
|
||||
Reference in New Issue
Block a user