In order to stop users from uploading to your buckets in minio you can set the bucket to private. However this means files are no longer publicly available via url e.g https://url.com:9000/bucket/files/image.png
To fix this you can set a rule for anonymous user by
Bucket > Anonymous > add Access rule > prefix =”/”, access =”readonly”.
Prefix means which folder should the rule be applied to?
If you use / as the prefix all files in your bucket become accessible. If you set /app only files in the app folder will be accessible
See screenshots below for more details.
Step 1: choose bucket

Step 2: Set access policy to private

Step 3: Go to anonymous tab and set access rule

step 4: set access rule according to your needs
prefix =”/”, access =”readonly”.
Prefix means which folder should the rule be applied to?
If you use / as the prefix all files in your bucket become accessible. If you set /app only files in the app folder will be accessible

Voila! C’est fini
Leave a Reply