Skip to content
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

Preserve resources when guessing actions #53

Open
flosell opened this issue Jun 10, 2018 · 0 comments
Open

Preserve resources when guessing actions #53

flosell opened this issue Jun 10, 2018 · 0 comments
Labels
enhancement guess-feature Issues regarding the guessing of related events

Comments

@flosell
Copy link
Owner

flosell commented Jun 10, 2018

#22 introduced a feature to guess actions that are similar to an existing policy. It currently always guesses * resources.
Extend this feature so that resources are preserved as appropriate:

Input

{
  "Action": ["s3:PutObject"],
  "Effect": "Allow",
  "Resource": ["arn:aws:s3:::some-bucket"]
}

Expected guess:

{
  "Action": [ "s3:DeleteObject","s3:GetObject","s3:ListObjects"],
  "Effect": "Allow",
  "Resource": ["arn:aws:s3:::some-bucket"]
}

Pitfall: Some actions only support "*"!

@flosell flosell added the guess-feature Issues regarding the guessing of related events label Jul 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement guess-feature Issues regarding the guessing of related events
Projects
None yet
Development

No branches or pull requests

1 participant