ruby on rails - Using s3 in a healthcare application, private links -
we develop rails-based healthcare application. best way configure our s3 implementation authenticated user has access image?
from documentation,you should use 1 of amazon's "canned" acls.
amazon accepts following canned acls:
:private :public_read :public_read_write :authenticated_read :bucket_owner_read :bucket_owner_full_control
you can specify acl @ bucket creation or later update bucket.
# @ create time, defaults :private when not specified bucket = s3.buckets.create('name', :acl => :public_read) # replacing existing bucket acl bucket.acl = :private
Comments
Post a Comment