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

feat: consider Statement Conditions for iam:PassRole as valid in the statement conditions checker #160

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

edyesed
Copy link

@edyesed edyesed commented May 26, 2022

As a user, I believe that the conditions_entries property on a Statement should reflect well-formed conditions when the Action is iam:PassRole.

iam:PassRole uses a string based condition check. The example AWS Docs instruct us to evaluate the attribute aws:PassedToService.

I didn't see a clean way of ARN() ifying the value of aws:PassedToService, though presumably that would be part of a well-formed condition in this scenario. From my understanding, the aws: prefixed items that can appear in an IAM evaluation cannot have user-defined values, and as such maybe it's fine that the value of aws:PassedToService is coming through as "service.amazonaws.com" 🤷

I hope that you'll consider this as an extension to the existing conditional evaluations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant