xiongxu / s3fs

Automatically exported from code.google.com/p/s3fs
GNU General Public License v2.0
0 stars 0 forks source link

Add support for mounting a bucket anonymously #105

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Buckets can have a policy that grants anonymous access. i.e. no Access Key ID 
or Secret Access Key is required.

Add support for mounting buckets of this type.

Original issue reported on code.google.com by dmoore4...@gmail.com on 27 Oct 2010 at 5:22

GoogleCodeExporter commented 9 years ago
Thanks =)

Original comment by telem...@gmail.com on 27 Oct 2010 at 5:29

GoogleCodeExporter commented 9 years ago
Proved out access to bucket anonymously using Cyberduck. This requires a bucket 
that has policy like this:

{
  "Version":"2008-10-17",
  "Statement":[{
    "Sid":"AddPerm",
        "Effect":"Allow",
      "Principal": {
            "AWS": "*"
         },
      "Action":["s3:GetObject"],
      "Resource":["arn:aws:s3:::bucket/*"
      ]
    }
  ]
}

Note: substitute "bucket" with the name of your bucket.

Original comment by dmoore4...@gmail.com on 27 Oct 2010 at 5:53

GoogleCodeExporter commented 9 years ago
Added support for anonymously mounting a public bucket with commit r221

To use, add the option public_bucket=1 to the command line options or to the 
/etc/fstab entry: e.g.

% s3fs public.suncup.org /mnt/public.suncup.org -o allow_other,public_bucket=1

s3fs#public.suncup.org /mnt/public.suncup.org  fuse 
_netdev,allow_other,use_cache=/tmp,public_bucket=1 0 0

public.suncup.org is a public bucket. Please give it a try and report back.  
(don't wait too long as I will be deleting this bucket soon)

Original comment by dmoore4...@gmail.com on 29 Oct 2010 at 3:39

GoogleCodeExporter commented 9 years ago
Perfect!
fasldkilexs3.txt  file2.txt  file3.txt  filex3.txt  filexs3.txt  hello  HOWTO  
move_me.txt  newdir

Original comment by telem...@gmail.com on 29 Oct 2010 at 9:00

GoogleCodeExporter commented 9 years ago
That's the expected directory listing. Let us know of any other issues.

Original comment by dmoore4...@gmail.com on 29 Oct 2010 at 2:24