qoomon / aws-s3-bucket-browser

Single page application to browse AWS S3 bucket content
https://qoomon.github.io/aws-s3-bucket-browser/index.html?bucket=https://s3.amazonaws.com/spacenet-dataset#
MIT License
246 stars 85 forks source link

Restrict permissions #8

Closed planetahuevo closed 4 years ago

planetahuevo commented 4 years ago

Hi, Amazing project. Thanks!

I am trying to figure out how to add a little layer of security not allowing public access but just limit the view to my hosted html.

Not sure how to achieve this. I am thinking if we can limit the permissions so it will only work form my IP (where the hosted file is) or something like that.

Do you have any suggestions on how to do this?

qoomon commented 4 years ago

You may configure a Bucket Policy, see following aws documentation.

Is that what you are looking for?

planetahuevo commented 4 years ago

That may be a solution. I will need to do some tests. The idea is that have list open to anyone is something I am not that comfortable with. I will let you know what I end up using. Thanks!

qoomon commented 4 years ago

You are right it highly depends on the use case.