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

fix(bucket): Convert bools to string in policy #1772

Merged
merged 1 commit into from
Jun 16, 2023

Conversation

MisterMX
Copy link
Collaborator

Description of your changes

AWS converts bool values in policy conditions to strings when getting them from the API.

This adds a new policy parser based on structs that can handle AWS policies correctly, including single items instead of lists.

Fixes #1771

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

Using the example provided in #1771. Added it as a unit test as well.

@MisterMX MisterMX force-pushed the fix/issue-1771 branch 5 times, most recently from 4d6eac4 to dac1871 Compare June 13, 2023 16:36
AWS converts bool values in policy conditions to strings when getting
them from the API.

Add a new policy parser based on structs that can handle AWS policies
correctly, including single items instead of lists.

Signed-off-by: Maximilian Blatt (external expert on behalf of DB Netz) <maximilian.blatt-extern@deutschebahn.com>
Copy link
Member

@haarchri haarchri left a comment

Choose a reason for hiding this comment

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

LGTM

@MisterMX MisterMX merged commit fba7bd4 into crossplane-contrib:master Jun 16, 2023
8 checks passed
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.

S3 with Bucket Policy will stuck with reason "Creating" state
2 participants