mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 19:46:02 +01:00
docs: add s3:ListBucket to S3 read permissions
The s3:ListBucket permission is required for read operations on S3 binary caches, not just for writes. Without this permission, users get "Access Denied" errors when running nix-build.
This commit is contained in:
parent
d0217ec180
commit
78888ec8a8
1 changed files with 3 additions and 2 deletions
|
|
@ -27,7 +27,8 @@ like the following to be accessible:
|
|||
"Sid": "AllowDirectReads",
|
||||
"Action": [
|
||||
"s3:GetObject",
|
||||
"s3:GetBucketLocation"
|
||||
"s3:GetBucketLocation",
|
||||
"s3:ListBucket"
|
||||
],
|
||||
"Effect": "Allow",
|
||||
"Resource": [
|
||||
|
|
@ -51,7 +52,7 @@ Consult the documentation linked above for further details.
|
|||
|
||||
### Authenticated reads to your S3 binary cache
|
||||
|
||||
Your bucket will need a bucket policy allowing the desired users to perform the `s3:GetObject` and `s3:GetBucketLocation` action on all objects in the bucket.
|
||||
Your bucket will need a bucket policy allowing the desired users to perform the `s3:GetObject`, `s3:GetBucketLocation`, and `s3:ListBucket` actions on all objects in the bucket.
|
||||
The [anonymous policy given above](#anonymous-reads-to-your-s3-compatible-binary-cache) can be updated to have a restricted `Principal` to support this.
|
||||
|
||||
### Authenticated writes to your S3-compatible binary cache
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue