-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apply jdub policy suggestions #11
Comments
I think this is the definitive list of S3 actions (if I'm going to stop using wildcards I want to refer to this): https://docs.aws.amazon.com/AmazonS3/latest/userguide/list_amazons3.html#amazons3-actions-as-permissions |
Extracting the list of actions from that page table: actions = Array.from(
document.querySelector("table").querySelectorAll("tr td:first-of-type")
).map(el => el.innerText).filter(t => t).map(t => 's3:' + t)
console.log(actions.map(action => `- ${action}`).join("\n"))
|
Here's a manual test after removing the Sid:
|
I decided to handle that with a new |
I'm really torn on this one. For read-write access I think you need to be able to delete objects as well. And update their metadata/tags/CORS. As you can see from the list of permissions above, it's a lot - and I'm presuming AWS add even more So I'm leaning towards sticking with the But... wildcards are so obviously gross! I think I'll open a separate issue to think through the implications of this one in even more detail. |
Also fixed issue with custom --policy where the username and policy name still contained read-write - they now contain custom instead. Closes #14 Found this while expanding the tests for the create command.
Applied that change, now the two policies are much more consistent with each other: s3-credentials/s3_credentials/policies.py Lines 1 to 35 in 86861a3
|
I've convinced myself in a comment here that wildcards as currently implemented really are bad: #15 (comment) Closing this issue in favour of that one. |
https://github.com/simonw/s3-credentials/blob/main/s3_credentials/policies.py
Originally posted by @jdub in #7 (comment)
The text was updated successfully, but these errors were encountered: