Skip to content

Commit 9709154

Browse files
committed
📝 README: Improve AWS user setup
1 parent 11bd261 commit 9709154

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,22 @@ A feature-rich Amazon S3 NGINX-based proxy, running in Docker and Kubernetes.
1313

1414
# Usage
1515

16-
Create AWS S3 access key and secret keys, allowed to download from your buckets. Bucket listing will also be served, so make sure to disable that permission if necessary.
16+
Recommended setup is to create an AWS IAM user for each `s3-nginx-proxy` deployment. You should then attach a policy to exclusively grant it the `GetObject` permission on the required buckets, such as:
17+
```json
18+
{
19+
"Version": "2012-10-17",
20+
"Statement": [
21+
{
22+
"Sid": "VisualEditor0",
23+
"Effect": "Allow",
24+
"Action": "s3:GetObject",
25+
"Resource": "arn:aws:s3:::thepoon.ppy.sh/*"
26+
}
27+
]
28+
}
29+
```
30+
31+
Granting too much permissions may lead to security risks (such as listing the entire bucket content). Be careful!
1732

1833
## Docker
1934

0 commit comments

Comments
 (0)