Git Product home page Git Product logo

Comments (5)

simonw avatar simonw commented on July 19, 2024

There are 50 s3 read and 10 s3 list permissions listed here: https://iam-definitions.vercel.app/iam/privileges?service__exact=s3&_sort=rowid&_facet=access_level&access_level__in=Read,List&_nocol=resource_types&_nocol=access_level

https://iam-definitions.vercel.app/iam?sql=select+%27-+%5Bs3%3A%27+%7C%7C+privilege+%7C%7C+%27%5D%28%27+%7C%7C+api_documentation_link+%7C%7C+%27%29%27+as+name+from+privileges+where+%22access_level%22+in+%28%27Read%27%2C+%27List%27%29+and+%22service%22+%3D+%3Ap1&p0=Read&p1=s3

from s3-credentials.

simonw avatar simonw commented on July 19, 2024

AWS are dropping Torrent support: https://github.com/awsdocs/amazon-s3-userguide/blob/0d1759880ccb1818ab0f14129ba1321c519d2ac1/doc_source/S3Torrent.md - so I won't include GetObjectTorrent or GetObjectVersionTorrent.

from s3-credentials.

simonw avatar simonw commented on July 19, 2024

I'm going with:

s3:GetObject
s3:GetObjectAcl
s3:GetObjectLegalHold
s3:GetObjectRetention
s3:GetObjectTagging

And from the List family:

s3:ListBucket

I decided NOT to include the "get version" ones:

s3:GetObjectVersion
s3:GetObjectVersionAcl
s3:GetObjectVersionForReplication
s3:GetObjectVersionTagging
s3:ListBucketVersions

I'm not including these because it feels like it would be a surprise if you said "this client has read-only permissions" and the client could then retrieve information about previous versions of objects in the bucket - when you updated them you may have done so to remove information that you didn't want visible, for example.

from s3-credentials.

simonw avatar simonw commented on July 19, 2024

Also not including the ones relating to multi-part uploads:

s3:ListBucketMultipartUploads
s3:ListMultipartUploadParts

Those seem like they should be reserved for clients that are writing to the bucket and may need to continue an upload.

from s3-credentials.

simonw avatar simonw commented on July 19, 2024

I'm going to add GetBucketLocation too, see #15 (comment)

from s3-credentials.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.