flosell / flosell/trailscraper

Preserve resources when guessing actions

Open
#53 0 comments 1 reaction 0 assignees View on GitHub
enhancement guess-feature
Dominant language
Python
Stars
838
Forks
38
Avg merge
2m
Merged PRs (30d)
14

Description

#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
```json
{
"Action": ["s3:PutObject"],
"Effect": "Allow",
"Resource": ["arn:aws:s3:::some-bucket"]
}
```

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

Pitfall: Some actions only support `"*"`!

Contributor guide

Open the contributing guide

Research direction

Start by tracing the action-guessing feature introduced in issue #22 and locate where guessed resources are assigned. Use the provided S3 policy as the expected behavior, then check actions that support only "*" resources. Done means resource ARNs are preserved where appropriate without breaking wildcard-only actions.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, python
Domain
cloud, security
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.