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

Special case for "Principal": "*" in IAM policy comparison #153

Merged
merged 3 commits into from
Oct 13, 2020

Conversation

tremble
Copy link
Contributor

@tremble tremble commented Aug 29, 2020

SUMMARY

Fixes: #149

The IAM policy documentation ( https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#principal-anonymous ) explicitly states that
"Principal": "*" is equivalent to "Principal" : { "AWS" : "*" }

MinIO explicitly converts these "Principal": "*" in the background to "Principal" : { "AWS" : "*" }. Since the two policies are explicitly defined as equal, we need a special case to avoid getting caught out when trying to wait for the policy to be updated.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

plugins/module_utils/ec2.py

ADDITIONAL INFORMATION

@ansibullbot
Copy link

@ansibullbot ansibullbot added affects_2.10 bug This issue/PR relates to a bug community_review integration tests/integration module_utils module_utils needs_triage plugins plugin (any type) tests tests labels Sep 9, 2020
@tremble tremble requested a review from jillr September 19, 2020 04:15
Copy link
Collaborator

@jillr jillr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @tremble !

@jillr jillr merged commit f00c6f6 into ansible-collections:main Oct 13, 2020
@tremble tremble deleted the issues/149 branch May 28, 2021 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects_2.10 bug This issue/PR relates to a bug community_review integration tests/integration module_utils module_utils needs_triage plugins plugin (any type) tests tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bucket policy failed to apply in the expected time
3 participants