From f9853a504058ed89f8227f0f8bfd18c08df330f6 Mon Sep 17 00:00:00 2001 From: tilpner Date: Fri, 3 May 2019 14:18:37 +0200 Subject: Add sample minio policies --- policies/paste-bucket.json | 20 ++++++++++++++++++++ policies/paste-user.json | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 policies/paste-bucket.json create mode 100644 policies/paste-user.json diff --git a/policies/paste-bucket.json b/policies/paste-bucket.json new file mode 100644 index 0000000..548ca95 --- /dev/null +++ b/policies/paste-bucket.json @@ -0,0 +1,20 @@ +{ + "Version": "2012-10-17", + "Statement": [ + { + "Action": [ + "s3:GetObject" + ], + "Effect": "Allow", + "Principal": { + "AWS": [ + "*" + ] + }, + "Resource": [ + "arn:aws:s3:::paste/*" + ], + "Sid": "" + } + ] +} diff --git a/policies/paste-user.json b/policies/paste-user.json new file mode 100644 index 0000000..c785ae6 --- /dev/null +++ b/policies/paste-user.json @@ -0,0 +1,39 @@ +{ + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "AWS": [ + "*" + ] + }, + "Action": [ + "s3:GetBucketLocation", + "s3:ListBucket", + "s3:ListBucketMultipartUploads" + ], + "Resource": [ + "arn:aws:s3:::paste" + ] + }, + { + "Effect": "Allow", + "Principal": { + "AWS": [ + "*" + ] + }, + "Action": [ + "s3:AbortMultipartUpload", + "s3:DeleteObject", + "s3:GetObject", + "s3:ListMultipartUploadParts", + "s3:PutObject" + ], + "Resource": [ + "arn:aws:s3:::paste/*" + ] + } + ] +} -- cgit v1.2.3