Support conditions for ListMultipartUploads and ListParts (#5130)

master
Harshavardhana 7 years ago committed by Dee Koder
parent 26e9f78a86
commit dcdb07433a
  1. 9
      cmd/bucket-policy-parser.go

@ -1,5 +1,5 @@
/* /*
* Minio Cloud Storage, (C) 2015, 2016 Minio, Inc. * Minio Cloud Storage, (C) 2015, 2016, 2017 Minio, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -32,9 +32,10 @@ import (
var emptyBucketPolicy = policy.BucketAccessPolicy{} var emptyBucketPolicy = policy.BucketAccessPolicy{}
var conditionKeyActionMap = map[string]set.StringSet{ var conditionKeyActionMap = policy.ConditionKeyMap{
"s3:prefix": set.CreateStringSet("s3:ListBucket"), "s3:prefix": set.CreateStringSet("s3:ListBucket", "s3:ListBucketMultipartUploads"),
"s3:max-keys": set.CreateStringSet("s3:ListBucket"), "s3:max-keys": set.CreateStringSet("s3:ListBucket", "s3:ListBucketMultipartUploads",
"s3:ListMultipartUploadParts"),
} }
// supportedActionMap - lists all the actions supported by minio. // supportedActionMap - lists all the actions supported by minio.

Loading…
Cancel
Save