aboutsummaryrefslogtreecommitdiff
path: root/bucket/README.md
blob: 0b2e313b8667e91fe530a23bc0acd8efe923e4e7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Bucket Policies
Bucket policies apply to buckets and determine the read/write access to them.
This is especially useful for allowing anonymous access of various kinds.

## Policies
The following policies are available:

* fetchonly.json: Similar to ReadOnly in that it allows fetching any object in the bucket anonymously.
  The difference is that it does not allow *listing* bucket objects,
  meaning that the object name must be known ahead of time.

## Using
Apply these policies as so:

1. Download the file.
2. Edit the file, replacing BUCKETNAME with the name of your bucket.
3. `mcli policy set-json ./FILE.json MYMINIO/BUCKETNAME`