Can you put permissions on S3 file storage?

2020-06-24 06:00发布

问题:

Can you put permissions on files that are uploaded to S3?

Or if someone knows the guild/url to the file they can access it publicly?

If yes, what kind of permissions can we set?

回答1:

Permissions are implemented with a key mechanism. You can make content readable for everyone (no password) or require a password. You grant upload privileges by generating a keyed URI which you can limit to a maximum bandwidth.

Amazon FAQ about access

Amazon documentation on authentication and access control

As dcaunt states, query string authentication requires an expiration date.



回答2:

Not passwords, but you can create links that expire on at a certain time: http://docs.amazonwebservices.com/AmazonS3/2006-03-01/index.html?RESTAuthentication.html



回答3:

I believe you can also generate 'passwords' that are only valid for a certain period of time



标签: amazon-s3